public class BasicUser extends Object implements UserContext, Comparable<Object>
| Modifier and Type | Field and Description |
|---|---|
protected Authentication |
authentication |
protected String |
authenticationType |
| Constructor and Description |
|---|
BasicUser(Authentication auth,
String authenticationType,
String identifier) |
BasicUser(String authenticationType) |
BasicUser(String authenticationType,
String identifier) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
boolean |
equals(Object o) |
String |
getAuthenticationType()
Returns the original authentication type as specified in getCloud
|
String |
getIdentifier()
Gets the unique identifier for this user.
|
String |
getOwnerField()
Gets the owner field value of new objects created by this user.
|
Rank |
getRank()
Gets the rank of this user.
|
int |
hashCode() |
boolean |
isValid()
Is valid
|
String |
toString()
Gets a string representation of this user context (for debugging)
|
protected final String authenticationType
protected Authentication authentication
public BasicUser(String authenticationType)
public BasicUser(Authentication auth, String authenticationType, String identifier)
public String getIdentifier()
getIdentifier in interface UserContextpublic String getOwnerField()
getOwnerField in interface UserContextpublic Rank getRank() throws SecurityException
getRank in interface UserContextSecurityExceptionpublic String toString()
public boolean isValid()
UserContextisValid in interface UserContexttrue if the user is still valid.
false if the user is expired..public String getAuthenticationType()
UserContextgetAuthenticationType in interface UserContextCloudContext.getCloud(java.lang.String)public int compareTo(Object o)
compareTo in interface Comparable<Object>MMBase 1.9-SNAPSHOT - ${javadoctimestamp}