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 aMandant- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_ACCESS_EXPIRE_INSTANTstatic StringATTR_ACCESS_GRANTED_BYstatic StringATTR_ACCESS_GRANTED_INSTANTstatic StringATTR_ROLESstatic StringATTR_USER_GROUPSstatic StringCOL_ACCESS_EXPIRE_TIMESTAMPstatic StringCOL_ACCESS_GRANTED_BYstatic StringCOL_ACCESS_GRANTED_TIMESTAMP-
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.IMandantDependent
ATTR_CLIENT, 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, NULLABLE_UUID_TYPE, TYPE_NAME_UUID
-
-
Constructor Summary
Constructors Constructor Description AClientAuthorization()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddRole(Rolle role)booleanaddUserGroup(BenutzerGruppe userGroup)InstantgetAccessExpireInstant()StringgetAccessGrantedBy()InstantgetAccessGrantedInstant()MandantgetClient()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.voidsetAccessExpireInstant(Instant accessExpireInstant)voidsetAccessGrantedBy(String accessGrantedBy)voidsetAccessGrantedInstant(Instant accessGrantedInstant)voidsetId(Long id)!!!WARNING: Currently values biggerInteger.MAX_VALUEor lower thenInteger.MIN_VALUEwill be altered to null!!!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
-
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.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 Detail
-
COL_ACCESS_GRANTED_BY
public static final String COL_ACCESS_GRANTED_BY
- See Also:
- Constant Field Values
-
COL_ACCESS_GRANTED_TIMESTAMP
public static final String COL_ACCESS_GRANTED_TIMESTAMP
- See Also:
- Constant Field Values
-
COL_ACCESS_EXPIRE_TIMESTAMP
public static final String COL_ACCESS_EXPIRE_TIMESTAMP
- See Also:
- Constant Field Values
-
ATTR_ACCESS_GRANTED_BY
public static final String ATTR_ACCESS_GRANTED_BY
- See Also:
- Constant Field Values
-
ATTR_ACCESS_GRANTED_INSTANT
public static final String ATTR_ACCESS_GRANTED_INSTANT
- See Also:
- Constant Field Values
-
ATTR_ACCESS_EXPIRE_INSTANT
public static final String ATTR_ACCESS_EXPIRE_INSTANT
- See Also:
- Constant Field Values
-
ATTR_ROLES
public static final String ATTR_ROLES
- See Also:
- Constant Field Values
-
ATTR_USER_GROUPS
public static final String ATTR_USER_GROUPS
- See Also:
- Constant Field Values
-
-
Method Detail
-
setId
public void setId(Long id)
Description copied from class:AbstractEntity!!!WARNING: Currently values biggerInteger.MAX_VALUEor lower thenInteger.MIN_VALUEwill be altered to null!!!- Specified by:
setIdin interfacede.xima.cmn.dao.interfaces.IEntity<Long>- Overrides:
setIdin classAbstractEntity- Parameters:
id-Longthe database-id to set
-
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)
-
getClient
public Mandant getClient()
- Specified by:
getClientin interfaceIClientAuthorization- Returns:
- the client for which this authorization is configured.
-
getAccessGrantedBy
public String getAccessGrantedBy()
- Specified by:
getAccessGrantedByin interfaceIEntityClientAuthorization- Returns:
- the display name of user that granted the access initially via this authorization configuration.
-
setAccessGrantedBy
public void setAccessGrantedBy(String accessGrantedBy)
-
getAccessGrantedInstant
public Instant getAccessGrantedInstant()
- Specified by:
getAccessGrantedInstantin interfaceIEntityClientAuthorization- Returns:
- the instant this authorization configuration was initially granted.
-
setAccessGrantedInstant
public void setAccessGrantedInstant(Instant accessGrantedInstant)
-
getAccessExpireInstant
public Instant getAccessExpireInstant()
- Specified by:
getAccessExpireInstantin interfaceIEntityClientAuthorization- Returns:
- the instant this authorization configuration will expire.
-
setAccessExpireInstant
public void setAccessExpireInstant(Instant accessExpireInstant)
-
addRole
public boolean addRole(Rolle role)
-
addUserGroup
public boolean addUserGroup(BenutzerGruppe userGroup)
-
-