public class UserDescriptor extends Object implements Principal
Modifier and Type | Field and Description |
---|---|
static String |
OBJECT_TYPE
Represents the type name of a User object.
|
Constructor and Description |
---|
UserDescriptor()
Zero-arg constructor for a UserDescriptor.
|
UserDescriptor(String userId)
Constructor
|
UserDescriptor(String identifier,
String userId,
String principalId,
String principalName)
Constructor
|
UserDescriptor(String identifier,
String userId,
String principalId,
String principalName,
String displayName)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicate whether some other object is "equal to" this one.
|
String |
getDisplayName()
Get the displayName of this UserDescriptor.
|
String |
getIdentifier()
Get the identifier of this UserDescriptor.
|
String |
getObjectType()
Get the objectType of this userDescriptor.
|
String |
getPrincipalId()
Get the principalId of this userDescriptor.
|
String |
getPrincipalName()
Get the principal name of this userDescriptor.
|
String |
getUserId()
Get the userId of this UserDescriptor.
|
int |
hashCode()
Return a hash code value for the object.
|
void |
setDisplayName(String displayName)
Set the displayName of this UserDescriptor.
|
String |
toString()
Return a string representation of the object.
|
public static final String OBJECT_TYPE
public UserDescriptor()
public UserDescriptor(String userId)
userId
- the user id of this userpublic UserDescriptor(String identifier, String userId, String principalId, String principalName)
identifier
- the unique identifier of this useruserId
- the user id of this userprincipalId
- the principal identifier of this userprincipalName
- the principal name of this userpublic UserDescriptor(String identifier, String userId, String principalId, String principalName, String displayName)
identifier
- the unique identifier of this useruserId
- the user id of this userprincipalId
- the principal identifier of this userprincipalName
- the principal name of this userdisplayName
- the display name of this userpublic String getIdentifier()
getIdentifier
in interface Identifiable
public String getUserId()
public String getDisplayName()
public void setDisplayName(String displayName)
displayName
- the displayName to setpublic String getObjectType()
getObjectType
in interface Identifiable
public String getPrincipalId()
getPrincipalId
in interface AclPrincipal
public String getPrincipalName()
getPrincipalName
in interface AclPrincipal
public int hashCode()
hashCode
in interface AclPrincipal
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in interface AclPrincipal
equals
in class Object
obj
- to be comparedtrue
if the objects are equal, false
otherwiseObject.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
Copyright (c) 2017, SAS Institute Inc., Cary, NC, USA