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()booleangetId()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.inthashCode()Returns the hash code value for theRepositoryRole.booleanisValid()Returns true if the object is valid.voidsetCreationDate(Long timestamp) voidsetLastModified(Long timestamp) voidDeprecated.Do not use this for "normal" code.voidvoidsetVerbs(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:ModelObjectReturns the unique id of the model object- Specified by:
getIdin interfaceModelObject- Specified by:
getIdin interfacecom.github.sdorra.ssp.PermissionObject
-
setLastModified
- Specified by:
setLastModifiedin interfaceModelObject
-
getCreationDate
- Specified by:
getCreationDatein interfaceModelObject
-
setCreationDate
- Specified by:
setCreationDatein interfaceModelObject
-
getLastModified
Description copied from interface:LastModifiedAwareReturns a timestamp of the last modified date.- Specified by:
getLastModifiedin interfaceLastModifiedAware
-
getType
Description copied from interface:TypedObjectReturns the type of the object.- Specified by:
getTypein interfaceTypedObject
-
setType
-
isValid
public boolean isValid()Description copied from interface:ValidateableReturns true if the object is valid.- Specified by:
isValidin interfaceValidateable
-
setName
Deprecated.Do not use this for "normal" code. UseRepositoryRole(String, Collection, String)instead.Use this for creation only. This will throw anIllegalStateExceptionwhen 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 anIllegalStateExceptionwhen modified.- Throws:
IllegalStateException- when modified after the value has been set once.
-
clone
-
getEntityName
- Specified by:
getEntityNamein interfaceAuditLogEntity
-