Class AuthorialSender
- java.lang.Object
-
- no.digipost.api.client.representations.sender.AuthorialSender
-
public final class AuthorialSender extends java.lang.ObjectThe 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-IDorsender 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 classAuthorialSender.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)SenderIdgetAccountId()SenderOrganizationgetOrganization()inthashCode()booleanis(AuthorialSender.Type type)static AuthorialSenderresolve(BrokerId brokerId, MayHaveSender mayHaveAuthorialSender)java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-