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
public interface IUserIdentityDao extends IGenericDao<UserIdentity>
DAO for reading and writingUserIdentity
entities.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
assertUserIdentity(IEntityContext ec, UserIdentity identity)
Checks if the user identity can be persisted (create/update).UserIdentity
getByCallback(IEntityContext ec, String identifier, String clientName)
Finds the user identity by the given callback information.List<UserIdentity>
getByClientName(IEntityContext ec, String clientName)
Returns all user identities that use the client with the provided name.UserIdentity
getByUuid(IEntityContext ec, String uuid)
Finds the user identity with the given UUID.UserIdentity
getByUuid(IEntityContext ec, UUID uuid)
Finds the user identity with the given UUID.UserIdentity
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 Detail
-
getByCallback
@Nullable UserIdentity getByCallback(IEntityContext ec, String identifier, String clientName)
Finds the user identity by the given callback information. The callback information includes the client name which identifies theSystemAuthenticator
,ClientAuthenticator
orauthenticator type
and the user identity identifier.- Parameters:
ec
- Entity context for accessing the database.identifier
- Identifier of the user identity.clientName
- Identifies theSystemAuthenticator
,ClientAuthenticator
or authenticator type.- Returns:
- The user identity matching the callback information.
-
getByUuid
@Nullable UserIdentity getByUuid(IEntityContext ec, String uuid)
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
@Nullable UserIdentity getByUuid(IEntityContext ec, UUID uuid)
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
List<UserIdentity> getByClientName(IEntityContext ec, String clientName)
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
@Nullable UserIdentity getExisting(IEntityContext ec, UserIdentity identity)
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
boolean isExisting(IEntityContext ec, UserIdentity identity)
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
void assertUserIdentity(IEntityContext ec, UserIdentity identity)
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.
-
-