Package de.xima.fc.dao.interfaces
Interface IUserIdentityDao
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<UserIdentity,
,Long, IEntityContext> IGenericDao<UserIdentity>
- All Known Implementing Classes:
UserIdentityDao
DAO for reading and writing
UserIdentity
entities.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Method Summary
Modifier and TypeMethodDescriptionvoid
assertUserIdentity
(IEntityContext ec, UserIdentity identity) Checks if the user identity can be persisted (create/update).getByCallback
(IEntityContext ec, String identifier, String clientName) Finds the user identity by the given callback information.getByClientName
(IEntityContext ec, String clientName) Returns all user identities that use the client with the provided name.getByUuid
(IEntityContext ec, String uuid) Finds the user identity with the given UUID.getByUuid
(IEntityContext ec, UUID uuid) Finds the user identity with the given UUID.getExisting
(IEntityContext ec, UserIdentity identity) Gets another user identity with the same identifier information (client/identifier) if it exists.boolean
isExisting
(IEntityContext ec, UserIdentity identity) Checks whether or not another user identity exists with the same identifier information (client/identifier).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.IGenericDao
count, findAll, findSingle, getEntityRefs, read
-
Method Details
-
getByCallback
Finds the user identity by the given callback information. The callback information includes the client name which identifies theSystemAuthenticator
orauthenticator type
and the user identity identifier.- Parameters:
ec
- Entity context for accessing the database.identifier
- Identifier of the user identity.clientName
- Identifies theSystemAuthenticator
or authenticator type.- Returns:
- The user identity matching the callback information.
-
getByUuid
Finds the user identity with the given UUID.- Parameters:
ec
- entity context for accessing the database.uuid
- UUID of the user identity.- Returns:
- The user identity with the given UUID.
-
getByUuid
Finds the user identity with the given UUID.- Parameters:
ec
- entity context for accessing the database.uuid
- of the user identity.- Returns:
- The user identity with the given UUID.
-
getByClientName
Returns all user identities that use the client with the provided name.- Parameters:
ec
- entity context for accessing the database.clientName
- Name of the security client- Returns:
- List of all user identities that use the client with the provided name.
-
getExisting
Gets another user identity with the same identifier information (client/identifier) if it exists.- Parameters:
ec
- entity context for accessing the database.identity
- to check.- Returns:
- the user identity with the same identifier information (client/identifier) if it exists and
null
otherwise.
-
isExisting
Checks whether or not another user identity exists with the same identifier information (client/identifier).- Parameters:
ec
- entity context for accessing the database.identity
- to check.- Returns:
true
if there exists another user identity with the same identifier information (client/identifier) andfalse
otherwise.
-
assertUserIdentity
Checks if the user identity can be persisted (create/update). If the state of the user identity does not allow persisting than aDatabaseAccessException
will be thrown.- Parameters:
ec
- entity context for accessing the database.identity
- to check.- Throws:
de.xima.cmn.dao.exceptions.DatabaseAccessException
- if the user identity can't be persisted.
-