Package de.xima.fc.entities
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 einesBenutzerfestzulegen. JederBenutzerreferenziert eine Rolle, in welcher die Berechtigungen für den Zugriff auf eine Entität festgelegt sind. Zusätzlich dazu referenziert eine Rolle ein oder mehrereModule. Diese beinhalten Vorlagen fürEntityberechtigungen, welche in die Rolle kopiert werden.- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_ALLOW_RESTstatic StringATTR_BENUTZERstatic StringATTR_BERECHTIGUNGENstatic StringATTR_CLIENT_DASHBOARDstatic StringATTR_MODULEstatic StringATTR_PROPERTIESstatic StringATTR_ROLLENTYPstatic StringCOL_TYPEstatic StringCOL_UUID-
Fields inherited from class de.xima.fc.entities.AClientDependentEntity
COL_CLIENTID, mandant
-
Fields inherited from class de.xima.fc.entities.AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersion
-
Fields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, id
-
Fields inherited from interface de.xima.fc.entities.interfaces.IDescriptionProviding
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION, COL_DESCRIPTION
-
Fields inherited from interface de.xima.fc.entities.interfaces.IMandantDependent
ATTR_MANDANT, COL_CLIENT_ID
-
Fields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAME
-
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
-
Fields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
ATTR_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID
-
-
Constructor Summary
Constructors Constructor Description Rolle()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddBenutzer(Benutzer benutzer)Deprecated.voidaddBerechtigungen(Entityberechtigung berechtigungen)Deprecated.UseaddModule(EModule)instead.voidaddModul(Modul modul)Deprecated.UsesetModuleNames(Set)andEModuleinstead.booleanaddModule(EModule module)Deprecated.BooleangetAllowRest()List<Benutzer>getBenutzer()Deprecated.List<Entityberechtigung>getBerechtigungen()Deprecated.StringgetBeschreibung()StringgetClientDashboard()BooleangetDeletable()Getter für deletableStringgetDescription()LonggetId()List<Modul>getModule()Deprecated.UsegetModuleNames()andEModuleinstead.Set<String>getModuleNames()Deprecated.StringgetName()StringgetProperties()RollePropertiesgetPropertiesModel()booleangetRoleProperty(EAccessProperty prop)booleangetRoleProperty(String key)ERollenTypgetRollenTyp()StringgetUUID()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.UUIDgetUUIDObject()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)voidsetModule(List<Modul> module)Deprecated.UsesetModuleNames(Set)andEModuleinstead.voidsetModuleNames(Set<String> moduleNames)voidsetName(String name)voidsetProperties(String properties)voidsetPropertiesModel(RolleProperties properties)voidsetRollenTyp(ERollenTyp rollenTyp)voidsetUUID(String uuid)Sets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(UUID uuid)-
Methods inherited from class de.xima.fc.entities.AClientDependentEntity
getMandant, setMandant
-
Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toString
-
Methods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId, setId
-
Methods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
ATTR_ROLLENTYP
public static final String ATTR_ROLLENTYP
- See Also:
- Constant Field Values
-
ATTR_MODULE
public static final String ATTR_MODULE
- See Also:
- Constant Field Values
-
ATTR_ALLOW_REST
public static final String ATTR_ALLOW_REST
- See Also:
- Constant Field Values
-
ATTR_BENUTZER
public static final String ATTR_BENUTZER
- See Also:
- Constant Field Values
-
ATTR_PROPERTIES
public static final String ATTR_PROPERTIES
- See Also:
- Constant Field Values
-
ATTR_BERECHTIGUNGEN
public static final String ATTR_BERECHTIGUNGEN
- See Also:
- Constant Field Values
-
ATTR_CLIENT_DASHBOARD
public static final String ATTR_CLIENT_DASHBOARD
- See Also:
- Constant Field Values
-
COL_UUID
public static final String COL_UUID
- See Also:
- Constant Field Values
-
COL_TYPE
public static final String COL_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUUID
public String 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
public void setUUID(String uuid)
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
public UUID 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
public void setUUIDObject(UUID uuid)
-
getRollenTyp
public ERollenTyp getRollenTyp()
-
setRollenTyp
public void setRollenTyp(ERollenTyp rollenTyp)
-
getName
public String getName()
- Specified by:
getNamein interfaceINameProviding- Returns:
- The name of this object.
-
setName
public void setName(String name)
-
getClientDashboard
public String getClientDashboard()
- Returns:
- The name of the client dashboard plugin to be used for this role.
nullor empty for the default dashboard.
-
setClientDashboard
public void setClientDashboard(String clientDashboard)
- Parameters:
clientDashboard- The name of the client dashboard plugin to be used for this role.nullor empty for the default dashboard.
-
getModuleNames
@Deprecated public Set<String> getModuleNames()
Deprecated.
-
getBerechtigungen
@Deprecated public List<Entityberechtigung> getBerechtigungen()
Deprecated.
-
setBerechtigungen
@Deprecated public void setBerechtigungen(List<Entityberechtigung> berechtigungen)
Deprecated.UsesetModuleNames(Set)instead.
-
getBeschreibung
public String getBeschreibung()
- Specified by:
getBeschreibungin interfaceIDescriptionProviding
-
setBeschreibung
public void setBeschreibung(String beschreibung)
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceIDescriptionProviding- Returns:
- A human-readable description for this object.
-
setDescription
public void setDescription(String description)
-
getAllowRest
public Boolean getAllowRest()
-
setAllowRest
public void setAllowRest(Boolean allowRest)
-
getProperties
public String getProperties()
-
setProperties
public void setProperties(String properties)
-
getPropertiesModel
public RolleProperties getPropertiesModel()
-
setPropertiesModel
public void setPropertiesModel(RolleProperties properties)
-
getBenutzer
@Deprecated public List<Benutzer> getBenutzer()
Deprecated.
-
setBenutzer
@Deprecated public void setBenutzer(List<Benutzer> benutzer)
Deprecated.Ersetzen der der Benutzerlist mit der übergebenen Liste- Parameters:
benutzer- - der Benutzer, der der Rolle hinzugefügt wurde
-
getModule
@Deprecated public List<Modul> getModule()
Deprecated.UsegetModuleNames()andEModuleinstead.
-
setModule
@Deprecated public void setModule(List<Modul> module)
Deprecated.UsesetModuleNames(Set)andEModuleinstead.
-
addModule
@Deprecated public boolean addModule(EModule module)
Deprecated.
-
removeModule
@Deprecated public boolean removeModule(EModule module)
Deprecated.
-
getRoleProperty
public boolean getRoleProperty(EAccessProperty prop)
-
getRoleProperty
public boolean getRoleProperty(String key)
-
addBenutzer
@Deprecated public void addBenutzer(Benutzer benutzer)
Deprecated.
-
removeBenutzer
@Deprecated public void removeBenutzer(Benutzer benutzer)
Deprecated.
-
addModul
@Deprecated public void addModul(Modul modul)
Deprecated.UsesetModuleNames(Set)andEModuleinstead.
-
removeModul
@Deprecated public void removeModul(Modul modul)
Deprecated.UsesetModuleNames(Set)andEModuleinstead.
-
addBerechtigungen
@Deprecated public void addBerechtigungen(Entityberechtigung berechtigungen)
Deprecated.UseaddModule(EModule)instead.
-
removeBerechtigungen
@Deprecated public void removeBerechtigungen(Entityberechtigung berechtigungen)
Deprecated.UseremoveModule(EModule)instead.
-
-