Package de.xima.fc.dao.impl
Class SystemAuthenticatorDao
- java.lang.Object
-
- de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
-
- de.xima.fc.dao.impl.GenericDao<E>
-
- de.xima.fc.dao.impl.MandantDependentBaseDao<SystemAuthenticator>
-
- de.xima.fc.dao.impl.SystemAuthenticatorDao
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<SystemAuthenticator,Long,IEntityContext>
,IGenericDao<SystemAuthenticator>
,IMandantDependentBaseDao<SystemAuthenticator>
,ISystemAuthenticatorDao
public class SystemAuthenticatorDao extends MandantDependentBaseDao<SystemAuthenticator> implements ISystemAuthenticatorDao
The default implementation ofISystemAuthenticatorDao
that can be accessed viaDaoProvider
.- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description SystemAuthenticatorDao()
Creates a new instance of this DAO.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
findUniqueName(IEntityContext ec, String candidate, SystemAuthenticator exclude)
Returns a name that is not taken by anotherSystemAuthenticator
within the system.SystemAuthenticator
getByCallback(IEntityContext ec, UUID callbackUuid)
Finds the system authenticator by its callback UUID.SystemAuthenticator
getByUuid(IEntityContext ec, UUID uuid)
Set<de.xima.cmn.dao.interfaces.IEntity<Long>>
getEntityRefs(IEntityContext ec, SystemAuthenticator authenticator)
Returns a set of entities that reference the given entity and depend on it.protected IFCDaoActionHook<SystemAuthenticator>
getPostActionHook()
protected IFCDaoActionHook<SystemAuthenticator>
getPreActionHook()
boolean
isNameExisiting(IEntityContext ec, String name)
Returns whether or not the given system authenticator name exists within system-
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
-
SystemAuthenticatorDao
public SystemAuthenticatorDao()
Creates a new instance of this DAO. Normally you should use the singleton instance provided byDaoProvider.SYSTEMAUTHENTICATOR_DAO
.
-
-
Method Detail
-
getPreActionHook
protected IFCDaoActionHook<SystemAuthenticator> getPreActionHook()
- Overrides:
getPreActionHook
in classGenericDao<SystemAuthenticator>
-
getPostActionHook
protected IFCDaoActionHook<SystemAuthenticator> getPostActionHook()
- Overrides:
getPostActionHook
in classGenericDao<SystemAuthenticator>
-
getByUuid
public SystemAuthenticator getByUuid(IEntityContext ec, UUID uuid)
- Specified by:
getByUuid
in interfaceISystemAuthenticatorDao
- Parameters:
ec
- Current entity context for accessing the database.uuid
- UUID of the authenticator to retrieve.- Returns:
- The authenticator with the given UUID, or
null
when no such authenticator exist.
-
getByCallback
public SystemAuthenticator getByCallback(IEntityContext ec, UUID callbackUuid)
Description copied from interface:ISystemAuthenticatorDao
Finds the system authenticator by its callback UUID.- Specified by:
getByCallback
in interfaceISystemAuthenticatorDao
- 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
null
when no such authenticator exist.
-
findUniqueName
public String findUniqueName(IEntityContext ec, String candidate, SystemAuthenticator exclude)
Description copied from interface:ISystemAuthenticatorDao
Returns a name that is not taken by anotherSystemAuthenticator
within the system. An index will be added to the candidate if necessary.- Specified by:
findUniqueName
in interfaceISystemAuthenticatorDao
- Parameters:
ec
-IEntityContext
to be usedcandidate
-String
authenticator name candidate to be made uniqueexclude
-SystemAuthenticator
client resource to be excluded from the search. May benull
.- Returns:
- unique system authenticator name within the system
-
isNameExisiting
public boolean isNameExisiting(IEntityContext ec, String name)
Description copied from interface:ISystemAuthenticatorDao
Returns whether or not the given system authenticator name exists within system- Specified by:
isNameExisiting
in interfaceISystemAuthenticatorDao
- Parameters:
ec
-IEntityContext
to be usedname
-String
authenticator name to check- Returns:
- whether or not the given name is unique
-
getEntityRefs
public Set<de.xima.cmn.dao.interfaces.IEntity<Long>> getEntityRefs(IEntityContext ec, SystemAuthenticator authenticator)
Description copied from interface:IGenericDao
Returns 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:
getEntityRefs
in interfaceIGenericDao<SystemAuthenticator>
- Overrides:
getEntityRefs
in classGenericDao<SystemAuthenticator>
- 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.
-
-