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 SummaryModifier and TypeMethodDescriptionvoidassertUserIdentity(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.booleanisExisting(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.IAbstractDaoall, 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 de.xima.fc.dao.interfaces.IGenericDaocount, findAll, findSingle, getEntityRefs, read
- 
Method Details- 
getByCallbackFinds the user identity by the given callback information. The callback information includes the client name which identifies theSystemAuthenticatororauthenticator typeand the user identity identifier.- Parameters:
- ec- Entity context for accessing the database.
- identifier- Identifier of the user identity.
- clientName- Identifies the- SystemAuthenticatoror authenticator type.
- Returns:
- The user identity matching the callback information.
 
- 
getByUuidFinds 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.
 
- 
getByUuidFinds 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.
 
- 
getByClientNameReturns 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.
 
- 
getExistingGets 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 nullotherwise.
 
- 
isExistingChecks 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:
- trueif there exists another user identity with the same identifier information (client/identifier) and- falseotherwise.
 
- 
assertUserIdentityChecks if the user identity can be persisted (create/update). If the state of the user identity does not allow persisting than aDatabaseAccessExceptionwill 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.
 
 
-