Package de.xima.fc.dao.interfaces
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 writingDirectClientAuthorization
entities.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<DirectClientAuthorization>
getAllByClient(IEntityContext ec, Mandant client, boolean acceptedOnly)
Finds all authorizations for a given client scope.DirectClientAuthorization
getByInvitationUuid(IEntityContext ec, UUID invitationUuid)
Finds the direct client authorization with the given invitation UUID.List<DirectClientAuthorization>
getUnacceptedClientInvitations(IEntityContext ec, UserProfile userProfile)
Returns the direct client authorizations for the given user profile that have not yet been accepted.boolean
hasUnacceptedClientInvitations(IEntityContext ec, UserProfile userProfile)
Checks whether the given user profile has not yet accepted client invitations.-
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, update
-
Methods inherited from interface de.xima.fc.dao.interfaces.IClientAuthorizationDao
getAllByClient, getByUuid, getByUuid
-
Methods inherited from interface de.xima.fc.dao.interfaces.IGenericDao
count, findAll, findSingle, getEntityRefs, read
-
-
-
-
Method Detail
-
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
DirectClientAuthorization getByInvitationUuid(IEntityContext ec, UUID invitationUuid)
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
boolean hasUnacceptedClientInvitations(IEntityContext ec, UserProfile userProfile)
Checks whether the given user profile has not yet accepted client invitations.- Parameters:
ec
- entity context for database transactions.userProfile
- to check- Returns:
true
if there are not yet accepted client invitations andfalse
otherwise.
-
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.
-
-