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 boolean
equals(Object another)
Returns true if the object passed matches the principal represented in this implementation.String
getName()
return the name of the principal.int
hashCode()
return a hashcode for the principal.String
toString()
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.
-
-