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 einesBenutzer
festzulegen. JederBenutzer
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 mehrereModul
e. Diese beinhalten Vorlagen fürEntityberechtigung
en, welche in die Rolle kopiert werden.- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_ALLOW_REST
static String
ATTR_BENUTZER
static String
ATTR_BERECHTIGUNGEN
static String
ATTR_CLIENT_DASHBOARD
static String
ATTR_MODULE
static String
ATTR_PROPERTIES
static String
ATTR_ROLLENTYP
static String
COL_TYPE
static String
COL_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 void
addBenutzer(Benutzer benutzer)
Deprecated.void
addBerechtigungen(Entityberechtigung berechtigungen)
Deprecated.UseaddModule(EModule)
instead.void
addModul(Modul modul)
Deprecated.UsesetModuleNames(Set)
andEModule
instead.boolean
addModule(EModule module)
Deprecated.Boolean
getAllowRest()
List<Benutzer>
getBenutzer()
Deprecated.List<Entityberechtigung>
getBerechtigungen()
Deprecated.String
getBeschreibung()
String
getClientDashboard()
Boolean
getDeletable()
Getter für deletableString
getDescription()
Long
getId()
List<Modul>
getModule()
Deprecated.UsegetModuleNames()
andEModule
instead.Set<String>
getModuleNames()
Deprecated.String
getName()
String
getProperties()
RolleProperties
getPropertiesModel()
boolean
getRoleProperty(EAccessProperty prop)
boolean
getRoleProperty(String key)
ERollenTyp
getRollenTyp()
String
getUUID()
Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.UUID
getUUIDObject()
Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.void
removeBenutzer(Benutzer benutzer)
Deprecated.void
removeBerechtigungen(Entityberechtigung berechtigungen)
Deprecated.UseremoveModule(EModule)
instead.void
removeModul(Modul modul)
Deprecated.UsesetModuleNames(Set)
andEModule
instead.boolean
removeModule(EModule module)
Deprecated.void
setAllowRest(Boolean allowRest)
void
setBenutzer(List<Benutzer> benutzer)
Deprecated.void
setBerechtigungen(List<Entityberechtigung> berechtigungen)
Deprecated.UsesetModuleNames(Set)
instead.void
setBeschreibung(String beschreibung)
void
setClientDashboard(String clientDashboard)
void
setDescription(String description)
void
setModule(List<Modul> module)
Deprecated.UsesetModuleNames(Set)
andEModule
instead.void
setModuleNames(Set<String> moduleNames)
void
setName(String name)
void
setProperties(String properties)
void
setPropertiesModel(RolleProperties properties)
void
setRollenTyp(ERollenTyp rollenTyp)
void
setUUID(String uuid)
Sets the UUID (universal unique identifier) that uniquely identifies this type of entity.void
setUUIDObject(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:IUUIDEntity
Gets 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 scopes
orproject scope
.- Specified by:
getUUID
in interfaceIUUIDEntity
- Returns:
- The UUID of the entity.
-
setUUID
public void setUUID(String uuid)
Description copied from interface:IUUIDEntity
Sets 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 scopes
orproject scope
.- Specified by:
setUUID
in interfaceIUUIDEntity
- Parameters:
uuid
- The UUID of the entity.
-
getUUIDObject
public UUID getUUIDObject()
Description copied from interface:IUUIDEntity
Gets 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 scopes
orproject scope
.- Specified by:
getUUIDObject
in 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:
getName
in 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.
null
or 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.null
or 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:
getBeschreibung
in interfaceIDescriptionProviding
-
setBeschreibung
public void setBeschreibung(String beschreibung)
-
getDescription
public String getDescription()
- Specified by:
getDescription
in 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()
andEModule
instead.
-
setModule
@Deprecated public void setModule(List<Modul> module)
Deprecated.UsesetModuleNames(Set)
andEModule
instead.
-
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)
andEModule
instead.
-
removeModul
@Deprecated public void removeModul(Modul modul)
Deprecated.UsesetModuleNames(Set)
andEModule
instead.
-
addBerechtigungen
@Deprecated public void addBerechtigungen(Entityberechtigung berechtigungen)
Deprecated.UseaddModule(EModule)
instead.
-
removeBerechtigungen
@Deprecated public void removeBerechtigungen(Entityberechtigung berechtigungen)
Deprecated.UseremoveModule(EModule)
instead.
-
-