Class Rolle
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>, de.xima.cmn.dao.interfaces.ILockableEntity<Long>, IDescriptionProviding, ILockingVersionProviding, IMandantDependent, INameProviding, ITransferable, ITransferableEntity, ITransferableLockableEntity, IUUIDEntity, Serializable, Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
- Direct Known Subclasses:
VirtualRolle
@Entity
public class Rolle
extends AClientDependentEntity
implements INameProviding, IDescriptionProviding, IUUIDEntity
Die Klasse Rolle dient dazu, die Rechte eines
Benutzer festzulegen. Jeder Benutzer referenziert eine
Rolle, in welcher die Berechtigungen für den Zugriff auf eine Entität festgelegt sind. Zusätzlich dazu referenziert
eine Rolle ein oder mehrere Module. Diese beinhalten Vorlagen für Entityberechtigungen, welche in die
Rolle kopiert werden.- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class AClientDependentEntity
COL_CLIENTID, mandantFields inherited from class AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersionFields inherited from class AbstractEntity
COL_ID, idFields inherited from interface IDescriptionProviding
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION, COL_DESCRIPTIONFields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_IDFields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSIONFields inherited from interface IMandantDependent
ATTR_CLIENT, ATTR_MANDANT, COL_CLIENT_IDFields inherited from interface INameProviding
ATTR_NAME, COL_NAMEFields inherited from interface ITransferableEntity
IMPORT_ID, INVALID_IDFields inherited from interface IUUIDEntity
ATTR_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBenutzer(Benutzer benutzer) Deprecated.voidaddBerechtigungen(Entityberechtigung berechtigungen) Deprecated.voidDeprecated.UsesetModuleNames(Set)andEModuleinstead.booleanDeprecated.Deprecated.Deprecated.Getter für deletablegetId()Deprecated.UsegetModuleNames()andEModuleinstead.Deprecated.getName()booleanbooleangetRoleProperty(String key) getUUID()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidremoveBenutzer(Benutzer benutzer) Deprecated.voidremoveBerechtigungen(Entityberechtigung berechtigungen) Deprecated.UseremoveModule(EModule)instead.voidremoveModul(Modul modul) Deprecated.UsesetModuleNames(Set)andEModuleinstead.booleanremoveModule(EModule module) Deprecated.voidsetAllowRest(Boolean allowRest) voidsetBenutzer(List<Benutzer> benutzer) Deprecated.voidsetBerechtigungen(List<Entityberechtigung> berechtigungen) Deprecated.UsesetModuleNames(Set)instead.voidsetBeschreibung(String beschreibung) voidsetClientDashboard(String clientDashboard) voidsetDescription(String description) voidDeprecated.UsesetModuleNames(Set)andEModuleinstead.voidsetModuleNames(Set<String> moduleNames) voidvoidsetProperties(String properties) voidsetPropertiesModel(RolleProperties properties) voidsetRollenTyp(ERollenTyp rollenTyp) voidSets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(UUID uuid) Methods inherited from class AClientDependentEntity
getMandant, setMandantMethods inherited from class AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toStringMethods inherited from class AbstractEntity
asIntValue, isPersisted, setId, setIdMethods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCodeMethods inherited from interface Comparable
compareToMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersisted, setId
-
Field Details
-
ATTR_ROLLENTYP
- See Also:
-
ATTR_MODULE
- See Also:
-
ATTR_ALLOW_REST
- See Also:
-
ATTR_BENUTZER
- See Also:
-
ATTR_PROPERTIES
- See Also:
-
ATTR_BERECHTIGUNGEN
- See Also:
-
ATTR_CLIENT_DASHBOARD
- See Also:
-
COL_UUID
- See Also:
-
COL_TYPE
- See Also:
-
-
Constructor Details
-
Rolle
public Rolle()
-
-
Method Details
-
getId
-
getUUID
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
getUUIDin interfaceIUUIDEntity- Returns:
- The UUID of the entity.
-
setUUID
Description copied from interface:IUUIDEntitySets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
setUUIDin interfaceIUUIDEntity- Parameters:
uuid- The UUID of the entity.
-
getUUIDObject
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
getUUIDObjectin interfaceIUUIDEntity- Returns:
- The UUID of the entity.
-
setUUIDObject
-
getDeletable
-
getRollenTyp
-
setRollenTyp
-
getName
- Specified by:
getNamein interfaceINameProviding- Returns:
- The name of this object.
-
setName
-
getClientDashboard
- Returns:
- The name of the client dashboard plugin to be used for this role.
nullor empty for the default dashboard.
-
setClientDashboard
- Parameters:
clientDashboard- The name of the client dashboard plugin to be used for this role.nullor empty for the default dashboard.
-
getModuleNames
Deprecated. -
setModuleNames
-
getBerechtigungen
Deprecated. -
setBerechtigungen
Deprecated.UsesetModuleNames(Set)instead. -
getBeschreibung
- Specified by:
getBeschreibungin interfaceIDescriptionProviding
-
setBeschreibung
-
getDescription
- Specified by:
getDescriptionin interfaceIDescriptionProviding- Returns:
- A human-readable description for this object.
-
setDescription
-
getAllowRest
-
setAllowRest
-
getProperties
-
setProperties
-
getPropertiesModel
-
setPropertiesModel
-
getBenutzer
Deprecated. -
setBenutzer
Deprecated.Ersetzen der der Benutzerlist mit der übergebenen Liste- Parameters:
benutzer- - der Benutzer, der der Rolle hinzugefügt wurde
-
getModule
Deprecated.UsegetModuleNames()andEModuleinstead. -
setModule
Deprecated.UsesetModuleNames(Set)andEModuleinstead. -
addModule
Deprecated. -
removeModule
Deprecated. -
getRoleProperty
-
getRoleProperty
-
addBenutzer
Deprecated. -
removeBenutzer
Deprecated. -
addModul
Deprecated.UsesetModuleNames(Set)andEModuleinstead. -
removeModul
Deprecated.UsesetModuleNames(Set)andEModuleinstead. -
addBerechtigungen
Deprecated.UseaddModule(EModule)instead. -
removeBerechtigungen
Deprecated.UseremoveModule(EModule)instead.
-
addModule(EModule)instead.