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 StringfindUniqueName(IEntityContext ec, Mandant client, String candidate, BenutzerGruppe exclude)Returns a name that is not taken by anotherBenutzerGruppein 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)BenutzerGruppegetByUUID(IEntityContext ec, Mandant client, String uuid)Returns the user group with the given UUID stringBenutzerGruppegetByUUID(IEntityContext ec, Mandant client, UUID uuid)Returns the user group with the given UUIDprotected IFCDaoActionHook<BenutzerGruppe>getPostActionHook()protected IFCDaoActionHook<BenutzerGruppe>getPreActionHook()booleanisNameExisiting(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
count, findAll, findSingle, getEntityRefs, read
-
-
-
-
Method Detail
-
getBenutzerGruppeByMandant
public Map<String,BenutzerGruppe> getBenutzerGruppeByMandant(IEntityContext ec, Mandant mandant)
- Specified by:
getBenutzerGruppeByMandantin interfaceIBenutzerGruppeDao
-
getAllByProject
public List<BenutzerGruppe> getAllByProject(IEntityContext ec, Projekt project)
Description copied from interface:IBenutzerGruppeDaoReturns all user groups being referenced by the given project- Specified by:
getAllByProjectin interfaceIBenutzerGruppeDao- Parameters:
ec-IEntityContextto be usedproject-Projektproject to search for user groups- Returns:
ListofBenutzerGruppes that are being referenced by the project
-
getByUUID
public BenutzerGruppe getByUUID(IEntityContext ec, Mandant client, String uuid)
Description copied from interface:IBenutzerGruppeDaoReturns the user group with the given UUID string- Specified by:
getByUUIDin interfaceIBenutzerGruppeDao- Parameters:
ec-IEntityContextto useclient-Mandantcontext in which to look for user groupuuid-StringUUID string of the user group- Returns:
BenutzerGruppefor the given UUID and client
-
getByUUID
public BenutzerGruppe getByUUID(IEntityContext ec, Mandant client, UUID uuid)
Description copied from interface:IBenutzerGruppeDaoReturns the user group with the given UUID- Specified by:
getByUUIDin interfaceIBenutzerGruppeDao- Parameters:
ec-IEntityContextto useclient-Mandantcontext in which to look for user groupuuid-UUIDUUID of the user group- Returns:
BenutzerGruppefor the given UUID and client
-
findUniqueName
public String findUniqueName(IEntityContext ec, Mandant client, String candidate, BenutzerGruppe exclude)
Description copied from interface:IBenutzerGruppeDaoReturns a name that is not taken by anotherBenutzerGruppein the given client other than the excluded user group. An index will be added to the candidate if necessary.- Specified by:
findUniqueNamein interfaceIBenutzerGruppeDao- Parameters:
ec-IEntityContextto be usedclient-Mandantfor which a unique user group name should be generatedcandidate-Stringuser group name candidate to be made uniqueexclude-BenutzerGruppeuser 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:IBenutzerGruppeDaoReturns whether or not the given user group name exists within the given client- Specified by:
isNameExisitingin interfaceIBenutzerGruppeDao- Parameters:
ec-IEntityContextto be usedclient-Mandantfor which to check uniquenessname- User group name to check- Returns:
- whether or not the given name is unique
-
getPreActionHook
protected IFCDaoActionHook<BenutzerGruppe> getPreActionHook()
- Overrides:
getPreActionHookin classGenericDao<BenutzerGruppe>
-
getPostActionHook
protected IFCDaoActionHook<BenutzerGruppe> getPostActionHook()
- Overrides:
getPostActionHookin classGenericDao<BenutzerGruppe>
-
-