Interface IDirectClientAuthorizationDao
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<DirectClientAuthorization, Long, IEntityContext>, IClientAuthorizationDao<DirectClientAuthorization>, IGenericDao<DirectClientAuthorization>
- All Known Implementing Classes:
DirectClientAuthorizationDao
public interface IDirectClientAuthorizationDao
extends IClientAuthorizationDao<DirectClientAuthorization>
DAO for reading and writing
DirectClientAuthorization entities.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Method Summary
Modifier and TypeMethodDescriptiongetAllByClient(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.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 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
getAllByClient, getByUuid, getByUuidMethods inherited from interface IGenericDao
count, createOrUpdate, findAll, findSingle, getEntityRefs, read
-
Method Details
-
getAllByClientId
Finds all authorizations for client with the given ID.- 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
List<DirectClientAuthorization> getAllByClient(IEntityContext ec, Mandant client, boolean acceptedOnly) Finds all authorizations for a given client scope.- 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
Finds the direct client authorization with the given invitation UUID.- Parameters:
ec- Entity context for database transactions.invitationUuid- invitation UUID of the client authorization.- Returns:
- The direct client authorization with the given invitation UUID.
-
hasUnacceptedClientInvitations
Checks whether the given user profile has not yet accepted client invitations.- Parameters:
ec- entity context for database transactions.userProfile- to check- Returns:
trueif there are not yet accepted client invitations andfalseotherwise.
-
hasUnacceptedClientInvitations
-
getUnacceptedClientInvitations
List<DirectClientAuthorization> getUnacceptedClientInvitations(IEntityContext ec, UserProfile userProfile) Returns the direct client authorizations for the given user profile that have not yet been accepted.- Parameters:
ec- entity context for database transactions.userProfile- to check- Returns:
- List of not yet accepted direct client authorizations.
-