Package de.xima.fc.dao.impl
Class ClientAuthenticatorDao
- java.lang.Object
 - 
- de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
 - 
- de.xima.fc.dao.impl.GenericDao<E>
 - 
- de.xima.fc.dao.impl.MandantDependentBaseDao<ClientAuthenticator>
 - 
- de.xima.fc.dao.impl.ClientAuthenticatorDao
 
 
 
 
 
- 
- All Implemented Interfaces:
 de.xima.cmn.dao.interfaces.IAbstractDao<ClientAuthenticator,Long,IEntityContext>,IClientAuthenticatorDao,IGenericDao<ClientAuthenticator>,IMandantDependentBaseDao<ClientAuthenticator>
public class ClientAuthenticatorDao extends MandantDependentBaseDao<ClientAuthenticator> implements IClientAuthenticatorDao
The default implementation ofIClientAuthenticatorDaothat can be accessed viaDaoProvider.- Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ClientAuthenticatorDao()Creates a new instance of this DAO. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringfindUniqueName(IEntityContext ec, String candidate, Mandant client, ClientAuthenticator exclude)Returns a name that is not taken by anotherClientAuthenticatorin the given client.ClientAuthenticatorgetByCallback(IEntityContext ec, UUID callbackUuid)Finds the client authenticator by its callback UUID.ClientAuthenticatorgetByUuid(IEntityContext ec, Mandant client, UUID uuid)Set<de.xima.cmn.dao.interfaces.IEntity<Long>>getEntityRefs(IEntityContext ec, ClientAuthenticator authenticator)Returns a set of entities that reference the given entity and depend on it.protected IFCDaoActionHook<ClientAuthenticator>getPostActionHook()protected IFCDaoActionHook<ClientAuthenticator>getPreActionHook()booleanisNameExisiting(IEntityContext ec, Mandant client, String name)Returns whether or not the given client authenticator name exists within the gieven client.- 
Methods inherited from class de.xima.fc.dao.impl.GenericDao
read 
- 
Methods 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, update 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
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, read 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
ClientAuthenticatorDao
public ClientAuthenticatorDao()
Creates a new instance of this DAO. Normally you should use the singleton instance provided byDaoProvider.CLIENTAUTHENTICATOR_DAO. 
 - 
 
- 
Method Detail
- 
getByUuid
public ClientAuthenticator getByUuid(IEntityContext ec, Mandant client, UUID uuid)
- Specified by:
 getByUuidin interfaceIClientAuthenticatorDao- Parameters:
 ec- Current entity context for accessing the database.client- Client where to search for the authenticator.uuid- UUID of the authenticator to retrieve.- Returns:
 - The authenticator with the given UUID that belongs to the client, or 
nullwhen no such authenticator exist. 
 
- 
getByCallback
public ClientAuthenticator getByCallback(IEntityContext ec, UUID callbackUuid)
Description copied from interface:IClientAuthenticatorDaoFinds the client authenticator by its callback UUID.- Specified by:
 getByCallbackin interfaceIClientAuthenticatorDao- Parameters:
 ec- Current entity context for accessing the database.callbackUuid- Callback UUID of the authenticator to retrieve.- Returns:
 - The authenticator with the given callback UUID, or 
nullwhen no such authenticator exist. 
 
- 
findUniqueName
public String findUniqueName(IEntityContext ec, String candidate, Mandant client, ClientAuthenticator exclude)
Description copied from interface:IClientAuthenticatorDaoReturns a name that is not taken by anotherClientAuthenticatorin the given client. An index will be added to the candidate if necessary.- Specified by:
 findUniqueNamein interfaceIClientAuthenticatorDao- Parameters:
 ec-IEntityContextto be usedcandidate-Stringauthenticator name candidate to be made uniqueclient-Mandantto look in for unique nameexclude-ClientAuthenticatorclient resource to be excluded from the search. May benull.- Returns:
 - unique client authenticator name within the system
 
 
- 
isNameExisiting
public boolean isNameExisiting(IEntityContext ec, Mandant client, String name)
Description copied from interface:IClientAuthenticatorDaoReturns whether or not the given client authenticator name exists within the gieven client.- Specified by:
 isNameExisitingin interfaceIClientAuthenticatorDao- Parameters:
 ec-IEntityContextto be usedclient-Mandantto look in for the namename-Stringauthenticator name to check- Returns:
 - whether or not the given name is unique
 
 
- 
getPreActionHook
protected IFCDaoActionHook<ClientAuthenticator> getPreActionHook()
- Overrides:
 getPreActionHookin classGenericDao<ClientAuthenticator>
 
- 
getPostActionHook
protected IFCDaoActionHook<ClientAuthenticator> getPostActionHook()
- Overrides:
 getPostActionHookin classGenericDao<ClientAuthenticator>
 
- 
getEntityRefs
public Set<de.xima.cmn.dao.interfaces.IEntity<Long>> getEntityRefs(IEntityContext ec, ClientAuthenticator authenticator)
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<ClientAuthenticator>- Overrides:
 getEntityRefsin classGenericDao<ClientAuthenticator>- Parameters:
 ec- entity context for database transactions.authenticator- to get references for.- Returns:
 - a set of entities that reference the given entity and depend on it.
 
 
 - 
 
 -