|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.kernel.security.PartyPrincipal
A Principal that stores a numeric ID, such as a party ID.
Field Summary | |
static String |
versionId
|
Constructor Summary | |
PartyPrincipal(BigDecimal id)
Creates a new PartyPrincipal that stores the given ID. |
Method Summary | |
boolean |
equals(Object that)
Returns true if the given object is a
PartyPrincipal with the same ID. |
BigDecimal |
getID()
Returns the stored ID. |
String |
getName()
Returns the ID number as a string. |
int |
hashCode()
Returns the hashCode of the stored ID number. |
String |
toString()
Same as getName() . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String versionId
Constructor Detail |
public PartyPrincipal(BigDecimal id)
Method Detail |
public BigDecimal getID()
public String getName()
getName
in interface Principal
public String toString()
getName()
.
toString
in interface Principal
getName()
.public boolean equals(Object that)
true
if the given object is a
PartyPrincipal
with the same ID.
equals
in interface Principal
true
if the given object is a
PartyPrincipal
with the same ID.public int hashCode()
hashCode
of the stored ID number.
hashCode
in interface Principal
hashCode
of the stored ID number.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |