Package org.nuxeo.ecm.platform.login
Class PrincipalImpl
- java.lang.Object
-
- org.nuxeo.ecm.platform.login.PrincipalImpl
-
-
Constructor Summary
Constructors Constructor Description PrincipalImpl(String user)Construct a principal from a string user name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object another)Returns true if the object passed matches the principal represented in this implementation.StringgetName()return the name of the principal.inthashCode()return a hashcode for the principal.StringtoString()Prints a stringified version of the principal.
-
-
-
Constructor Detail
-
PrincipalImpl
public PrincipalImpl(String user)
Construct a principal from a string user name.- Parameters:
user- The string form of the principal name.
-
-
Method Detail
-
equals
public boolean equals(Object another)
Returns true if the object passed matches the principal represented in this implementation.
-
toString
public String toString()
Prints a stringified version of the principal.
-
hashCode
public int hashCode()
return a hashcode for the principal.
-
-