Class AuthorialSender
- java.lang.Object
-
- no.digipost.api.client.representations.sender.AuthorialSender
-
public final class AuthorialSender extends java.lang.Object
The authorial sender of a message, i.e. what the receiver sees as the sender. It is resolved based on the broker ID, and the optional presence of either asender-ID
orsender organization
. If neither of those are present, the broker ID is used as the authorial sender.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthorialSender.Type
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
SenderId
getAccountId()
SenderOrganization
getOrganization()
int
hashCode()
boolean
is(AuthorialSender.Type type)
static AuthorialSender
resolve(BrokerId brokerId, MayHaveSender mayHaveAuthorialSender)
java.lang.String
toString()
-
-
-
Method Detail
-
resolve
public static AuthorialSender resolve(BrokerId brokerId, MayHaveSender mayHaveAuthorialSender)
-
is
public boolean is(AuthorialSender.Type type)
-
getAccountId
public SenderId getAccountId()
-
getOrganization
public SenderOrganization getOrganization()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-