Package org.opencms.file.history
Class CmsHistoryPrincipal
java.lang.Object
org.opencms.security.CmsPrincipal
org.opencms.file.history.CmsHistoryPrincipal
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<I_CmsPrincipal>,Principal,I_CmsPrincipal
Describes an OpenCms historical principal entry.
- Since:
- 6.9.1
- See Also:
-
Field Summary
Fields inherited from class org.opencms.security.CmsPrincipal
m_description, m_flags, m_id, m_nameFields inherited from interface org.opencms.security.I_CmsPrincipal
FLAG_CORE_LIMIT, FLAG_DISABLED, FLAG_ENABLED, FLAG_GROUP_ROLE, FLAG_GROUP_VIRTUAL, FLAG_USER_MANAGED, FLAG_USER_WEBUSER, PRINCIPAL_GROUP, PRINCIPAL_USER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks if the provided principal name is valid and can be used as an argument value forI_CmsPrincipal.setName(String).clone()longReturns the date the user was deleted.getDescription(Locale locale) Returns the description of this principal.getEmail()Returns the email address of this deleted user, if this principal is a user.getType()Returns the principal type.Returns the id of user that deleted this user.booleanisGroup()Returnstrueif this principal is of type.CmsGroupbooleanisUser()Returnstrueif this principal is of type.CmsUserMethods inherited from class org.opencms.security.CmsPrincipal
compareTo, equals, filterCoreFlag, filterCoreGroups, filterCoreUsers, filterFlag, getDescription, getDisplayName, getDisplayName, getFlags, getId, getName, getOuFqn, getPrefixedGroup, getPrefixedName, getPrefixedUser, getSimpleName, getType, hashCode, isEnabled, readPrefixedPrincipal, readPrincipal, readPrincipal, readPrincipal, readPrincipalIncludingHistory, setDescription, setEnabled, setFlags, setName
-
Constructor Details
-
CmsHistoryPrincipal
public CmsHistoryPrincipal(CmsUUID id, String name, String description, String email, String type, CmsUUID userDeleted, long dateDeleted) Default constructor.- Parameters:
id- the unique id of this principalname- the fully qualified namedescription- the descriptionemail- the email addresstype- the principal typeuserDeleted- the id of user that deleted this principaldateDeleted- the date the principal was deleted
-
-
Method Details
-
checkName
Description copied from interface:I_CmsPrincipalChecks if the provided principal name is valid and can be used as an argument value forI_CmsPrincipal.setName(String).- Specified by:
checkNamein interfaceI_CmsPrincipal- Parameters:
name- the principal name to check- See Also:
-
clone
-
getDateDeleted
Returns the date the user was deleted.- Returns:
- the date the user was deleted
-
getDescription
Description copied from interface:I_CmsPrincipalReturns the description of this principal.- Specified by:
getDescriptionin interfaceI_CmsPrincipal- Parameters:
locale- locale of the description- Returns:
- the description of this principal
- See Also:
-
getEmail
Returns the email address of this deleted user, if this principal is a user.- Returns:
- the email address of this deleted user
-
getType
Returns the principal type.- Returns:
- the principal type
-
getUserDeleted
Returns the id of user that deleted this user.- Returns:
- the id of user that deleted this user
-
isGroup
Description copied from interface:I_CmsPrincipalReturnstrueif this principal is of type.CmsGroup- Specified by:
isGroupin interfaceI_CmsPrincipal- Overrides:
isGroupin classCmsPrincipal- Returns:
trueif this principal is of typeCmsGroup- See Also:
-
isUser
Description copied from interface:I_CmsPrincipalReturnstrueif this principal is of type.CmsUser- Specified by:
isUserin interfaceI_CmsPrincipal- Overrides:
isUserin classCmsPrincipal- Returns:
trueif this principal is of typeCmsUser- See Also:
-