Package com.sas.lsaf.security.user
Class UserDescriptor
java.lang.Object
com.sas.lsaf.core.AbstractIdentifiable
com.sas.lsaf.security.user.UserDescriptor
- All Implemented Interfaces:
Identifiable,Principal,Serializable
- Direct Known Subclasses:
User
Lightweight representation of a user account defined in the system. A User account has a unique user ID that can be
used to login and to identify the user in the system.
- Since:
- 1.2
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUserDescriptor(String id, String userId, String displayName) It is not intended or recommended that the consumer of this API construct these objects.UserDescriptor(String id, String userId, String displayName, String createdBy, Date created, String lastModifiedBy, Date lastModified) It is not intended or recommended that the consumer of this API construct these objects. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the date the user was created.Gets the user who created the user.Returns the display name for a user account.Gets the date on which the user was last modified.Gets the user who last modified the user.Returns the principal identifier of a user or group.Returns the principal name of a user or group.Returns the user identifier for a user account.inthashCode()voidsetDisplayName(String displayName) Sets the display name for a user account.toString()Methods inherited from class com.sas.lsaf.core.AbstractIdentifiable
getId, getTypeIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sas.lsaf.core.Identifiable
getId, getTypeId
-
Constructor Details
-
UserDescriptor
It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the user descriptors returned by the API.- Parameters:
id- the unique identifier of the user account.userId- the user identifier of the user account.displayName- the display name of the user account.
-
UserDescriptor
public UserDescriptor(String id, String userId, String displayName, String createdBy, Date created, String lastModifiedBy, Date lastModified) It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the user descriptors returned by the API.- Parameters:
id- the unique identifier of the user account.userId- the user identifier of the user account.displayName- the display name of the user account.createdBy- The user who created the user.created- The date on which the user was created.lastModifiedBy- The user who last modified the user.lastModified- The date on which the user was last modified.
-
-
Method Details
-
getUserId
Returns the user identifier for a user account. User identifiers are unique for each the user account in the system.- Returns:
- The user identifier for the user account.
-
getDisplayName
Returns the display name for a user account.- Returns:
- The display name for a user account.
-
setDisplayName
Sets the display name for a user account.- Parameters:
displayName- the display name for a user account.
-
getPrincipalId
Description copied from interface:PrincipalReturns the principal identifier of a user or group. This uniquely identifies the principal within the system.- Specified by:
getPrincipalIdin interfacePrincipal- Returns:
- The principal identifier of a user or group.
-
getPrincipalName
Description copied from interface:PrincipalReturns the principal name of a user or group. This may not uniquely identify the principal and should only be used for display purposes.- Specified by:
getPrincipalNamein interfacePrincipal- Returns:
- The principal name of a user or group.
-
getCreated
Gets the date the user was created.- Returns:
- The date the user was created.
-
getCreatedBy
Gets the user who created the user.- Returns:
- The user who created the user.
-
getLastModified
Gets the date on which the user was last modified.- Returns:
- The date on which the user was last modified.
-
getLastModifiedBy
Gets the user who last modified the user.- Returns:
- The user who last modified the user.
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacePrincipal- Overrides:
hashCodein classAbstractIdentifiable
-
equals
- Specified by:
equalsin interfacePrincipal- Overrides:
equalsin classAbstractIdentifiable
-
toString
- Overrides:
toStringin classAbstractIdentifiable
-