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()
boolean
copyProperties
(User user) boolean
copyProperties
(User user, boolean copyPassword) boolean
Get the entity name which is used for the audit loggetId()
Returns the unique id of the model objectint
hashCode()
boolean
isValid()
Returns true if the object is valid.toString()
Methods inherited from class sonia.scm.BasicPropertiesAware
getProperties, getProperty, removeProperty, setProperties, setProperty
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface sonia.scm.LastModifiedAware
getLastModified
Methods inherited from interface sonia.scm.ModelObject
getCreationDate, setCreationDate, setLastModified
Methods inherited from interface sonia.scm.ReducedModelObject
getDisplayName
Methods inherited from interface sonia.scm.TypedObject
getType
-
Constructor Details
-
User
-
User
-
User
-
-
Method Details
-
clone
-
copyProperties
-
copyProperties
-
equals
- Specified by:
equals
in interfacePrincipal
- Overrides:
equals
in classBasicPropertiesAware
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacePrincipal
- Overrides:
hashCode
in classBasicPropertiesAware
-
toString
-
isValid
public boolean isValid()Description copied from interface:Validateable
Returns true if the object is valid.- Specified by:
isValid
in interfaceValidateable
-
getId
Description copied from interface:ModelObject
Returns the unique id of the model object- Specified by:
getId
in interfaceModelObject
- Specified by:
getId
in interfacecom.github.sdorra.ssp.PermissionObject
- Specified by:
getId
in interfaceReducedModelObject
-
getEntityName
Get the entity name which is used for the audit log- Specified by:
getEntityName
in interfaceAuditLogEntity
- Since:
- 2.43.0
-