Package sonia.scm.repository
Class RepositoryRole
java.lang.Object
sonia.scm.repository.RepositoryRole
- All Implemented Interfaces:
com.github.sdorra.ssp.PermissionObject
,Serializable
,Cloneable
,AuditLogEntity
,LastModifiedAware
,ModelObject
,TypedObject
,Validateable
@StaticPermissions(value="repositoryRole",
permissions={},
globalPermissions="write")
public class RepositoryRole
extends Object
implements ModelObject, com.github.sdorra.ssp.PermissionObject, AuditLogEntity
Custom role with specific permissions related to
Repository
.
This object should be immutable, but could not be due to mapstruct.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Do not use this for "normal" code.RepositoryRole
(String name, Collection<String> verbs, String type) -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getId()
Returns the unique id of the model objectReturns a timestamp of the last modified date.getName()
getType()
Returns the type of the object.getVerbs()
Returns the verb of the role.int
hashCode()
Returns the hash code value for theRepositoryRole
.boolean
isValid()
Returns true if the object is valid.void
setCreationDate
(Long timestamp) void
setLastModified
(Long timestamp) void
Deprecated.Do not use this for "normal" code.void
void
setVerbs
(Collection<String> verbs) Deprecated.Do not use this for "normal" code.toString()
-
Constructor Details
-
RepositoryRole
Deprecated.Do not use this for "normal" code. UseRepositoryRole(String, Collection, String)
instead.This constructor exists for mapstruct and JAXB, only -- do not use this in "normal" code. -
RepositoryRole
-
-
Method Details
-
equals
-
hashCode
public int hashCode()Returns the hash code value for theRepositoryRole
. -
toString
-
getName
-
getVerbs
Returns the verb of the role. -
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
-
setLastModified
- Specified by:
setLastModified
in interfaceModelObject
-
getCreationDate
- Specified by:
getCreationDate
in interfaceModelObject
-
setCreationDate
- Specified by:
setCreationDate
in interfaceModelObject
-
getLastModified
Description copied from interface:LastModifiedAware
Returns a timestamp of the last modified date.- Specified by:
getLastModified
in interfaceLastModifiedAware
-
getType
Description copied from interface:TypedObject
Returns the type of the object.- Specified by:
getType
in interfaceTypedObject
-
setType
-
isValid
public boolean isValid()Description copied from interface:Validateable
Returns true if the object is valid.- Specified by:
isValid
in interfaceValidateable
-
setName
Deprecated.Do not use this for "normal" code. UseRepositoryRole(String, Collection, String)
instead.Use this for creation only. This will throw anIllegalStateException
when modified.- Throws:
IllegalStateException
- when modified after the value has been set once.
-
setVerbs
Deprecated.Do not use this for "normal" code. UseRepositoryRole(String, Collection, String)
instead.Use this for creation only. This will throw anIllegalStateException
when modified.- Throws:
IllegalStateException
- when modified after the value has been set once.
-
clone
-
getEntityName
- Specified by:
getEntityName
in interfaceAuditLogEntity
-