Package de.xima.fc.dao.impl
Class UserIdentityDao
java.lang.Object
de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<UserIdentity,,Long, IEntityContext> IGenericDao<UserIdentity>,IUserIdentityDao
Implementation of the
IUserIdentityDao for reading and writing UserIdentity entities.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Field Summary
FieldsFields inherited from class de.xima.cmn.dao.AbstractDao
entityClass, LOG -
Constructor Summary
Constructors -
Method Summary
Modifier 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.getEntityRefs(IEntityContext ec, UserIdentity entity) Returns a set of entities that reference the given entity and depend on it.getExisting(IEntityContext ec, UserIdentity identity) Gets another user identity with the same identifier information (client/identifier) if it exists.protected IFCDaoActionHook<UserIdentity>protected IFCDaoActionHook<UserIdentity>booleanisExisting(IEntityContext ec, UserIdentity identity) Checks whether or not another user identity exists with the same identifier information (client/identifier).Methods inherited from class de.xima.fc.dao.impl.GenericDao
readMethods inherited from class de.xima.cmn.dao.AbstractDao
all, bulkDelete, bulkUpdate, cb, checkLockingVersion, cq, create, create, delete, delete, deleteAll, executePagedDaoAction, getAttributes, getAttributes, getSingleAttributes, getSingleAttributes, getTransactionHandler, notifyListener, notifyListener, read, registerListener, registerListener, registerListener, resultTotalCount, setTransactionHandler, singleElement, unregisterListener, unregisterListener, unregisterListener, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 de.xima.fc.dao.interfaces.IGenericDao
count, findAll, findSingle, read
-
Field Details
-
EC_ATTR_UPDATED_FORM_RECORD_USER_REFS
- See Also:
-
-
Constructor Details
-
UserIdentityDao
public UserIdentityDao()
-
-
Method Details
-
getPreActionHook
- Overrides:
getPreActionHookin classGenericDao<UserIdentity>
-
getPostActionHook
- Overrides:
getPostActionHookin classGenericDao<UserIdentity>
-
getByCallback
Description copied from interface:IUserIdentityDaoFinds the user identity by the given callback information. The callback information includes the client name which identifies theSystemAuthenticatororauthenticator typeand the user identity identifier.- Specified by:
getByCallbackin interfaceIUserIdentityDao- Parameters:
ec- Entity context for accessing the database.identifier- Identifier of the user identity.clientName- Identifies theSystemAuthenticatoror authenticator type.- Returns:
- The user identity matching the callback information.
-
getByUuid
Description copied from interface:IUserIdentityDaoFinds the user identity with the given UUID.- Specified by:
getByUuidin interfaceIUserIdentityDao- Parameters:
ec- entity context for accessing the database.uuid- UUID of the user identity.- Returns:
- The user identity with the given UUID.
-
getByUuid
Description copied from interface:IUserIdentityDaoFinds the user identity with the given UUID.- Specified by:
getByUuidin interfaceIUserIdentityDao- Parameters:
ec- entity context for accessing the database.uuid- of the user identity.- Returns:
- The user identity with the given UUID.
-
getByClientName
Description copied from interface:IUserIdentityDaoReturns all user identities that use the client with the provided name.- Specified by:
getByClientNamein interfaceIUserIdentityDao- 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.
-
getEntityRefs
public Set<de.xima.cmn.dao.interfaces.IEntity<Long>> getEntityRefs(IEntityContext ec, UserIdentity entity) Description copied from interface:IGenericDaoReturns a set of entities that reference the given entity and depend on it. An entity can usually not be deleted if it is still being referenced by and depended on by other entities.- Specified by:
getEntityRefsin interfaceIGenericDao<UserIdentity>- Overrides:
getEntityRefsin classGenericDao<UserIdentity>- Parameters:
ec- entity context for database transactions.entity- to get references for.- Returns:
- a set of entities that reference the given entity and depend on it.
-
getExisting
Description copied from interface:IUserIdentityDaoGets another user identity with the same identifier information (client/identifier) if it exists.- Specified by:
getExistingin interfaceIUserIdentityDao- 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.
-
isExisting
Description copied from interface:IUserIdentityDaoChecks whether or not another user identity exists with the same identifier information (client/identifier).- Specified by:
isExistingin interfaceIUserIdentityDao- 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) andfalseotherwise.
-
assertUserIdentity
Description copied from interface:IUserIdentityDaoChecks if the user identity can be persisted (create/update). If the state of the user identity does not allow persisting than aDatabaseAccessExceptionwill be thrown.- Specified by:
assertUserIdentityin interfaceIUserIdentityDao- Parameters:
ec- entity context for accessing the database.identity- to check.
-