Package de.xima.fc.api.entity
Class DirectClientAuthorizationAPI
java.lang.Object
de.xima.fc.api.ASubAPI
de.xima.fc.api.entity.AEntityAPI<DirectClientAuthorization>
de.xima.fc.api.entity.DirectClientAuthorizationAPI
API class for reading and writing
DirectClientAuthorization
entities.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Field Summary
Fields inherited from class de.xima.fc.api.entity.AEntityAPI
entityClass
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetByInvitationUuid
(UserContext uc, UUID invitationUuid) Finds the direct client authorization with the given invitation UUID.getUnacceptedClientInvitations
(UserContext uc, UserProfile userProfile) Returns the direct client authorizations for the given user profile that have not yet been accepted.boolean
hasUnacceptedClientInvitations
(UserContext uc, UserProfile userProfile) Checks whether the given user profile has unaccepted client invitations.Methods inherited from class de.xima.fc.api.entity.AEntityAPI
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, update
Methods inherited from class de.xima.fc.api.ASubAPI
getHandlerProvider
-
Constructor Details
-
DirectClientAuthorizationAPI
public DirectClientAuthorizationAPI()
-
-
Method Details
-
getByInvitationUuid
Finds the direct client authorization with the given invitation UUID.- Parameters:
uc
- User 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 unaccepted client invitations.- Parameters:
uc
- User context for database transactions.userProfile
- to check- Returns:
true
if there are unaccepted client invitations andfalse
otherwise.
-
getUnacceptedClientInvitations
public List<DirectClientAuthorization> getUnacceptedClientInvitations(UserContext uc, UserProfile userProfile) Returns the direct client authorizations for the given user profile that have not yet been accepted.- Parameters:
uc
- User context for database transactions.userProfile
- to check- Returns:
- list of unaccepted direct client authorizations.
-