Package de.xima.fc.entities
Class AClientAuthorization
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
de.xima.fc.entities.AbstractEntity
de.xima.fc.entities.AbstractLockableEntity
de.xima.fc.entities.ALockableEntity
de.xima.fc.entities.AClientDependentEntity
de.xima.fc.entities.AClientAuthorization
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>
,de.xima.cmn.dao.interfaces.ILockableEntity<Long>
,IEntityClientAuthorization
,ILockingVersionProviding
,IMandantDependent
,INameProviding
,ITransferable
,ITransferableEntity
,ITransferableLockableEntity
,IUUIDEntity
,IClientAuthorization
,Serializable
,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
- Direct Known Subclasses:
DirectClientAuthorization
,IndirectClientAuthorization
@MappedSuperclass
public abstract class AClientAuthorization
extends AClientDependentEntity
implements IEntityClientAuthorization
Abstract base class for authorizations of a
Mandant
- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
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.cmn.dao.interfaces.IEntity
ATTR_ID
Fields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSION
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, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, TYPE_NAME_UUID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addUserGroup
(BenutzerGruppe userGroup) getUUID()
void
setAccessExpireInstant
(Instant accessExpireInstant) void
setAccessGrantedBy
(String accessGrantedBy) void
setAccessGrantedInstant
(Instant accessGrantedInstant) void
!!!void
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
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
Methods inherited from interface de.xima.fc.interfaces.auth.IClientAuthorization
getRoles, getUserGroups
Methods inherited from interface de.xima.cmn.dao.interfaces.IEntity
getId, isPersisted
Methods inherited from interface de.xima.fc.entities.interfaces.IEntityClientAuthorization
getDisplayName
Methods inherited from interface de.xima.fc.entities.interfaces.IMandantDependent
getMandant, setMandant
Methods inherited from interface de.xima.fc.entities.interfaces.INameProviding
getName
-
Field Details
-
COL_ACCESS_GRANTED_BY
- See Also:
-
COL_ACCESS_GRANTED_TIMESTAMP
- See Also:
-
COL_ACCESS_EXPIRE_TIMESTAMP
- See Also:
-
ATTR_ACCESS_GRANTED_BY
- See Also:
-
ATTR_ACCESS_GRANTED_INSTANT
- See Also:
-
ATTR_ACCESS_EXPIRE_INSTANT
- See Also:
-
ATTR_ROLES
- See Also:
-
ATTR_USER_GROUPS
- See Also:
-
-
Constructor Details
-
AClientAuthorization
public AClientAuthorization()
-
-
Method Details
-
setId
Description copied from class:AbstractEntity
!!!WARNING: Currently values biggerInteger.MAX_VALUE
or lower thenInteger.MIN_VALUE
will be altered to null!!!- Specified by:
setId
in interfacede.xima.cmn.dao.interfaces.IEntity<Long>
- Overrides:
setId
in classAbstractEntity
- Parameters:
id
-Long
the database-id to set
-
getUUID
- Specified by:
getUUID
in interfaceIUUIDEntity
- Returns:
- UUID (Universal Unique Identifier) that identifies this type of entity. Usually is unique within a
context, e.g.
Mandant
,Projekt
, ...
-
setUUID
- Specified by:
setUUID
in interfaceIUUIDEntity
-
getUUIDObject
- Specified by:
getUUIDObject
in interfaceIUUIDEntity
-
setUUIDObject
-
getClient
- Specified by:
getClient
in interfaceIClientAuthorization
- Returns:
- the client for which this authorization is configured.
-
getAccessGrantedBy
- Specified by:
getAccessGrantedBy
in interfaceIEntityClientAuthorization
- Returns:
- the display name of user that granted the access initially via this authorization configuration.
-
setAccessGrantedBy
-
getAccessGrantedInstant
- Specified by:
getAccessGrantedInstant
in interfaceIEntityClientAuthorization
- Returns:
- the instant this authorization configuration was initially granted.
-
setAccessGrantedInstant
-
getAccessExpireInstant
- Specified by:
getAccessExpireInstant
in interfaceIEntityClientAuthorization
- Returns:
- the instant this authorization configuration will expire.
-
setAccessExpireInstant
-
addRole
-
addUserGroup
-