Package sonia.scm.user
Class User
java.lang.Object
sonia.scm.BasicPropertiesAware
sonia.scm.user.User
- All Implemented Interfaces:
com.github.sdorra.ssp.PermissionObject,Serializable,Cloneable,Principal,AuditLogEntity,LastModifiedAware,ModelObject,PropertiesAware,ReducedModelObject,TypedObject,Validateable
@StaticPermissions(value="user",
globalPermissions={"create","list","autocomplete"},
permissions={"read","modify","delete","changePassword","changePublicKeys","changeApiKeys"},
custom=true,
customGlobal=true)
@IndexedType(permission="user:list")
public class User
extends BasicPropertiesAware
implements Principal, ModelObject, com.github.sdorra.ssp.PermissionObject, ReducedModelObject, AuditLogEntity
- See Also:
-
Field Summary
Fields inherited from class sonia.scm.BasicPropertiesAware
properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleancopyProperties(User user) booleancopyProperties(User user, boolean copyPassword) booleanGet the entity name which is used for the audit loggetId()Returns the unique id of the model objectinthashCode()booleanisValid()Returns true if the object is valid.toString()Methods inherited from class sonia.scm.BasicPropertiesAware
getProperties, getProperty, removeProperty, setProperties, setPropertyMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface sonia.scm.LastModifiedAware
getLastModifiedMethods inherited from interface sonia.scm.ModelObject
getCreationDate, setCreationDate, setLastModifiedMethods inherited from interface sonia.scm.ReducedModelObject
getDisplayNameMethods inherited from interface sonia.scm.TypedObject
getType
-
Constructor Details
-
User
-
User
-
User
-
-
Method Details
-
clone
-
copyProperties
-
copyProperties
-
equals
- Specified by:
equalsin interfacePrincipal- Overrides:
equalsin classBasicPropertiesAware
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacePrincipal- Overrides:
hashCodein classBasicPropertiesAware
-
toString
-
isValid
public boolean isValid()Description copied from interface:ValidateableReturns true if the object is valid.- Specified by:
isValidin interfaceValidateable
-
getId
Description copied from interface:ModelObjectReturns the unique id of the model object- Specified by:
getIdin interfaceModelObject- Specified by:
getIdin interfacecom.github.sdorra.ssp.PermissionObject- Specified by:
getIdin interfaceReducedModelObject
-
getEntityName
Get the entity name which is used for the audit log- Specified by:
getEntityNamein interfaceAuditLogEntity- Since:
- 2.43.0
-