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, TYPE_NAME_UUID 
 - 
 
- 
Constructor Summary
Constructors Constructor Description Rolle() 
- 
Method Summary
- 
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()
- Specified by:
 getUUIDin interfaceIUUIDEntity- Returns:
 - UUID (Universal Unique Identifier) that identifies this type of entity. Usually is unique within a context,
 e.g. 
Mandant,Projekt, ... 
 
- 
setUUID
public void setUUID(String uuid)
- Specified by:
 setUUIDin interfaceIUUIDEntity
 
- 
getUUIDObject
public UUID getUUIDObject()
- Specified by:
 getUUIDObjectin interfaceIUUIDEntity
 
- 
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.
 
- 
addModule
public boolean addModule(EModule module)
 
- 
removeModule
public boolean removeModule(EModule module)
 
- 
getBerechtigungen
public List<Entityberechtigung> getBerechtigungen()
 
- 
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()
 
- 
getRoleProperty
public boolean getRoleProperty(EAccessProperty prop)
 
- 
getRoleProperty
public boolean getRoleProperty(String key)
 
- 
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
 
- 
addBenutzer
@Deprecated public void addBenutzer(Benutzer benutzer)
Deprecated. 
- 
removeBenutzer
@Deprecated public void removeBenutzer(Benutzer benutzer)
Deprecated. 
- 
getModule
@Deprecated public List<Modul> getModule()
Deprecated.UsegetModuleNames()andEModuleinstead. 
- 
setModule
@Deprecated public void setModule(List<Modul> module)
Deprecated.UsesetModuleNames(Set)andEModuleinstead. 
- 
addModul
@Deprecated public void addModul(Modul modul)
Deprecated.UsesetModuleNames(Set)andEModuleinstead. 
- 
removeModul
@Deprecated public void removeModul(Modul modul)
Deprecated.UsesetModuleNames(Set)andEModuleinstead. 
- 
setBerechtigungen
@Deprecated public void setBerechtigungen(List<Entityberechtigung> berechtigungen)
Deprecated.UsesetModuleNames(Set)instead. 
- 
addBerechtigungen
@Deprecated public void addBerechtigungen(Entityberechtigung berechtigungen)
Deprecated.UseaddModule(EModule)instead. 
- 
removeBerechtigungen
@Deprecated public void removeBerechtigungen(Entityberechtigung berechtigungen)
Deprecated.UseremoveModule(EModule)instead. 
 - 
 
 -