Package de.xima.fc.dao.impl
Class BenutzerGruppeDao
- java.lang.Object
-
- de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
-
- de.xima.fc.dao.impl.GenericDao<E>
-
- de.xima.fc.dao.impl.MandantDependentBaseDao<BenutzerGruppe>
-
- de.xima.fc.dao.impl.BenutzerGruppeDao
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<BenutzerGruppe,Long,IEntityContext>
,IBenutzerGruppeDao
,IGenericDao<BenutzerGruppe>
,IMandantDependentBaseDao<BenutzerGruppe>
public class BenutzerGruppeDao extends MandantDependentBaseDao<BenutzerGruppe> implements IBenutzerGruppeDao
-
-
Constructor Summary
Constructors Constructor Description BenutzerGruppeDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
findUniqueName(IEntityContext ec, Mandant client, String candidate, BenutzerGruppe exclude)
Returns a name that is not taken by anotherBenutzerGruppe
in the given client other than the excluded user group.List<BenutzerGruppe>
getAllByProject(IEntityContext ec, Projekt project)
Returns all user groups being referenced by the given projectMap<String,BenutzerGruppe>
getBenutzerGruppeByMandant(IEntityContext ec, Mandant mandant)
BenutzerGruppe
getByUUID(IEntityContext ec, Mandant client, String uuid)
Returns the user group with the given UUID stringBenutzerGruppe
getByUUID(IEntityContext ec, Mandant client, UUID uuid)
Returns the user group with the given UUIDprotected IFCDaoActionHook<BenutzerGruppe>
getPostActionHook()
protected IFCDaoActionHook<BenutzerGruppe>
getPreActionHook()
boolean
isNameExisiting(IEntityContext ec, Mandant client, String name)
Returns whether or not the given user group name exists within the given client-
Methods inherited from class de.xima.fc.dao.impl.GenericDao
getEntityRefs, 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
getEntityRefs, read
-
-
-
-
Method Detail
-
getBenutzerGruppeByMandant
public Map<String,BenutzerGruppe> getBenutzerGruppeByMandant(IEntityContext ec, Mandant mandant)
- Specified by:
getBenutzerGruppeByMandant
in interfaceIBenutzerGruppeDao
-
getAllByProject
public List<BenutzerGruppe> getAllByProject(IEntityContext ec, Projekt project)
Description copied from interface:IBenutzerGruppeDao
Returns all user groups being referenced by the given project- Specified by:
getAllByProject
in interfaceIBenutzerGruppeDao
- Parameters:
ec
-IEntityContext
to be usedproject
-Projekt
project to search for user groups- Returns:
List
ofBenutzerGruppe
s that are being referenced by the project
-
getByUUID
public BenutzerGruppe getByUUID(IEntityContext ec, Mandant client, String uuid)
Description copied from interface:IBenutzerGruppeDao
Returns the user group with the given UUID string- Specified by:
getByUUID
in interfaceIBenutzerGruppeDao
- Parameters:
ec
-IEntityContext
to useclient
-Mandant
context in which to look for user groupuuid
-String
UUID string of the user group- Returns:
BenutzerGruppe
for the given UUID and client
-
getByUUID
public BenutzerGruppe getByUUID(IEntityContext ec, Mandant client, UUID uuid)
Description copied from interface:IBenutzerGruppeDao
Returns the user group with the given UUID- Specified by:
getByUUID
in interfaceIBenutzerGruppeDao
- Parameters:
ec
-IEntityContext
to useclient
-Mandant
context in which to look for user groupuuid
-UUID
UUID of the user group- Returns:
BenutzerGruppe
for the given UUID and client
-
findUniqueName
public String findUniqueName(IEntityContext ec, Mandant client, String candidate, BenutzerGruppe exclude)
Description copied from interface:IBenutzerGruppeDao
Returns a name that is not taken by anotherBenutzerGruppe
in the given client other than the excluded user group. An index will be added to the candidate if necessary.- Specified by:
findUniqueName
in interfaceIBenutzerGruppeDao
- Parameters:
ec
-IEntityContext
to be usedclient
-Mandant
for which a unique user group name should be generatedcandidate
-String
user group name candidate to be made uniqueexclude
-BenutzerGruppe
user group to be excluded from search- Returns:
- unique user group name in the context of the given client
-
isNameExisiting
public boolean isNameExisiting(IEntityContext ec, Mandant client, String name)
Description copied from interface:IBenutzerGruppeDao
Returns whether or not the given user group name exists within the given client- Specified by:
isNameExisiting
in interfaceIBenutzerGruppeDao
- Parameters:
ec
-IEntityContext
to be usedclient
-Mandant
for which to check uniquenessname
- User group name to check- Returns:
- whether or not the given name is unique
-
getPreActionHook
protected IFCDaoActionHook<BenutzerGruppe> getPreActionHook()
- Overrides:
getPreActionHook
in classGenericDao<BenutzerGruppe>
-
getPostActionHook
protected IFCDaoActionHook<BenutzerGruppe> getPostActionHook()
- Overrides:
getPostActionHook
in classGenericDao<BenutzerGruppe>
-
-