Class 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 Details

  • Constructor Details

    • AClientAuthorization

      public AClientAuthorization()
  • Method Details

    • setId

      public void setId(Long id)
      Description copied from class: AbstractEntity
      !!!WARNING: Currently values bigger Integer.MAX_VALUE or lower then Integer.MIN_VALUE will be altered to null!!!
      Specified by:
      setId in interface de.xima.cmn.dao.interfaces.IEntity<Long>
      Overrides:
      setId in class AbstractEntity
      Parameters:
      id - Long the database-id to set
    • 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 example client scopes or project scope.
      Specified by:
      getUUID in interface IUUIDEntity
      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 example client scopes or project scope.
      Specified by:
      setUUID in interface IUUIDEntity
      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 example client scopes or project scope.
      Specified by:
      getUUIDObject in interface IUUIDEntity
      Returns:
      The UUID of the entity.
    • setUUIDObject

      public void setUUIDObject(UUID uuid)
    • getClient

      public Mandant getClient()
      Specified by:
      getClient in interface IClientAuthorization
      Returns:
      the client for which this authorization is configured.
    • getAccessGrantedBy

      public String getAccessGrantedBy()
      Specified by:
      getAccessGrantedBy in interface IEntityClientAuthorization
      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:
      getAccessGrantedInstant in interface IEntityClientAuthorization
      Returns:
      the instant this authorization configuration was initially granted.
    • setAccessGrantedInstant

      public void setAccessGrantedInstant(Instant accessGrantedInstant)
    • getAccessExpireInstant

      public Instant getAccessExpireInstant()
      Specified by:
      getAccessExpireInstant in interface IEntityClientAuthorization
      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)