Class DirectClientAuthorizationDao
java.lang.Object
de.xima.cmn.dao.AbstractDao<DirectClientAuthorization, Long, IEntityContext>
de.xima.fc.dao.impl.GenericDao<DirectClientAuthorization>
de.xima.fc.dao.impl.DirectClientAuthorizationDao
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<DirectClientAuthorization, Long, IEntityContext>, IClientAuthorizationDao<DirectClientAuthorization>, IDirectClientAuthorizationDao, IGenericDao<DirectClientAuthorization>
public class DirectClientAuthorizationDao
extends GenericDao<DirectClientAuthorization>
implements IDirectClientAuthorizationDao
Implementation of the
IDirectClientAuthorizationDao for reading and writing DirectClientAuthorization
entities.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Field Summary
Fields inherited from class de.xima.cmn.dao.AbstractDao
entityClass, LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllByClient(IEntityContext ec, Mandant client) Finds all authorizations for a given client scope.getAllByClient(IEntityContext ec, Mandant client, boolean acceptedOnly) Finds all authorizations for a given client scope.getAllByClientId(IEntityContext ec, long clientId) Finds all authorizations for client with the given ID.getByInvitationUuid(IEntityContext ec, UUID invitationUuid) Finds the direct client authorization with the given invitation UUID.protected IFCDaoActionHook<DirectClientAuthorization> protected IFCDaoActionHook<DirectClientAuthorization> getUnacceptedClientInvitations(IEntityContext ec, UserProfile userProfile) Returns the direct client authorizations for the given user profile that have not yet been accepted.booleanhasUnacceptedClientInvitations(IEntityContext ec, UserProfile userProfile) Checks whether the given user profile has not yet accepted client invitations.booleanhasUnacceptedClientInvitations(IEntityContext ec, String userMail) Methods inherited from class GenericDao
getEntityRefs, readMethods inherited from class de.xima.cmn.dao.AbstractDao
all, bulkDelete, bulkUpdate, cb, checkLockingVersion, cq, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, notifyListener, notifyListener, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, updateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.xima.cmn.dao.interfaces.IAbstractDao
all, bulkDelete, bulkUpdate, checkLockingVersion, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, updateMethods inherited from interface IClientAuthorizationDao
getByUuid, getByUuidMethods inherited from interface IGenericDao
count, createOrUpdate, findAll, findSingle, getEntityRefs, read
-
Constructor Details
-
DirectClientAuthorizationDao
public DirectClientAuthorizationDao()Creates a new instance of this DAO. Normally you should use the singleton instance provided byDaoProvider.DIRECTCLIENTAUTHORIZATION_DAO.
-
-
Method Details
-
getAllByClientId
Description copied from interface:IDirectClientAuthorizationDaoFinds all authorizations for client with the given ID.- Specified by:
getAllByClientIdin interfaceIDirectClientAuthorizationDao- Parameters:
ec- Entity context for accessing the databaseclientId- Client ID where to look for users.- Returns:
- A list with all authorizations from the given client ID.
-
getAllByClient
Description copied from interface:IClientAuthorizationDaoFinds all authorizations for a given client scope.- Specified by:
getAllByClientin interfaceIClientAuthorizationDao<DirectClientAuthorization>- Parameters:
ec- Entity context for accessing the databaseclient- Client scope where to look for users.- Returns:
- A list with all authorizations from the given client scope.
-
getAllByClient
public List<DirectClientAuthorization> getAllByClient(IEntityContext ec, Mandant client, boolean acceptedOnly) Description copied from interface:IDirectClientAuthorizationDaoFinds all authorizations for a given client scope.- Specified by:
getAllByClientin interfaceIDirectClientAuthorizationDao- Parameters:
ec- Entity context for accessing the databaseclient- Client scope where to look for users.acceptedOnly- Iftrue, returns only those users that have accepted the invitation, seeDirectClientAuthorization.isInvitationAccepted().- Returns:
- A list with all authorizations from the given client scope.
-
getByInvitationUuid
Description copied from interface:IDirectClientAuthorizationDaoFinds the direct client authorization with the given invitation UUID.- Specified by:
getByInvitationUuidin interfaceIDirectClientAuthorizationDao- Parameters:
ec- Entity context for database transactions.invitationUuid- invitation UUID of the client authorization.- Returns:
- The direct client authorization with the given invitation UUID.
-
getUnacceptedClientInvitations
public List<DirectClientAuthorization> getUnacceptedClientInvitations(IEntityContext ec, UserProfile userProfile) Description copied from interface:IDirectClientAuthorizationDaoReturns the direct client authorizations for the given user profile that have not yet been accepted.- Specified by:
getUnacceptedClientInvitationsin interfaceIDirectClientAuthorizationDao- Parameters:
ec- entity context for database transactions.userProfile- to check- Returns:
- List of not yet accepted direct client authorizations.
-
hasUnacceptedClientInvitations
Description copied from interface:IDirectClientAuthorizationDaoChecks whether the given user profile has not yet accepted client invitations.- Specified by:
hasUnacceptedClientInvitationsin interfaceIDirectClientAuthorizationDao- Parameters:
ec- entity context for database transactions.userProfile- to check- Returns:
trueif there are not yet accepted client invitations andfalseotherwise.
-
hasUnacceptedClientInvitations
- Specified by:
hasUnacceptedClientInvitationsin interfaceIDirectClientAuthorizationDao
-
getPreActionHook
- Overrides:
getPreActionHookin classGenericDao<DirectClientAuthorization>
-
getPostActionHook
- Overrides:
getPostActionHookin classGenericDao<DirectClientAuthorization>
-