public class BenutzerGruppeDao extends MandantDependentBaseDao<BenutzerGruppe> implements IBenutzerGruppeDao
Constructor and Description |
---|
BenutzerGruppeDao() |
Modifier and Type | Method and Description |
---|---|
String |
findUniqueName(IEntityContext ec,
Mandant client,
String candidate,
BenutzerGruppe exclude)
Returns a name that is not taken by another
BenutzerGruppe 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 project
|
Map<String,BenutzerGruppe> |
getBenutzerGruppeByMandant(IEntityContext ec,
Mandant mandant) |
BenutzerGruppe |
getByUUID(IEntityContext ec,
Mandant client,
String uuid)
Returns the user group with the given UUID string
|
BenutzerGruppe |
getByUUID(IEntityContext ec,
Mandant client,
UUID uuid)
Returns the user group with the given UUID
|
protected 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
|
getEntityRefs, read
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEntityRefs, read
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
public Map<String,BenutzerGruppe> getBenutzerGruppeByMandant(IEntityContext ec, Mandant mandant)
getBenutzerGruppeByMandant
in interface IBenutzerGruppeDao
public List<BenutzerGruppe> getAllByProject(IEntityContext ec, Projekt project)
IBenutzerGruppeDao
getAllByProject
in interface IBenutzerGruppeDao
ec
- IEntityContext
to be usedproject
- Projekt
project to search for user groupsList
of BenutzerGruppe
s that are being referenced by the projectpublic BenutzerGruppe getByUUID(IEntityContext ec, Mandant client, String uuid)
IBenutzerGruppeDao
getByUUID
in interface IBenutzerGruppeDao
ec
- IEntityContext
to useclient
- Mandant
context in which to look for user groupuuid
- String
UUID string of the user groupBenutzerGruppe
for the given UUID and clientpublic BenutzerGruppe getByUUID(IEntityContext ec, Mandant client, UUID uuid)
IBenutzerGruppeDao
getByUUID
in interface IBenutzerGruppeDao
ec
- IEntityContext
to useclient
- Mandant
context in which to look for user groupuuid
- UUID
UUID of the user groupBenutzerGruppe
for the given UUID and clientpublic String findUniqueName(IEntityContext ec, Mandant client, String candidate, BenutzerGruppe exclude)
IBenutzerGruppeDao
BenutzerGruppe
in the given client other than the excluded user
group. An index will be added to the candidate if necessary.findUniqueName
in interface IBenutzerGruppeDao
ec
- IEntityContext
to be usedclient
- Mandant
for which a unique user group name should be generatedcandidate
- String
user group name candiate to be made uniqueexclude
- BenutzerGruppe
user group to be excluded from searchpublic boolean isNameExisiting(IEntityContext ec, Mandant client, String name)
IBenutzerGruppeDao
isNameExisiting
in interface IBenutzerGruppeDao
ec
- IEntityContext
to be usedclient
- Mandant
for which to check uniquenessprotected IFCDaoActionHook<BenutzerGruppe> getPreActionHook()
getPreActionHook
in class GenericDao<BenutzerGruppe>
protected IFCDaoActionHook<BenutzerGruppe> getPostActionHook()
getPostActionHook
in class GenericDao<BenutzerGruppe>
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.