Package de.xima.fc.dao.impl
Class PostfachDao
- java.lang.Object
-
- de.xima.cmn.dao.AbstractDao<T,Long,IEntityContext>
-
- de.xima.fc.dao.impl.GenericDao<E>
-
- de.xima.fc.dao.impl.MandantDependentBaseDao<Postfach>
-
- de.xima.fc.dao.impl.PostfachDao
-
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<Postfach,Long,IEntityContext>
,IGenericDao<Postfach>
,IMandantDependentBaseDao<Postfach>
,IPostfachDao
public class PostfachDao extends MandantDependentBaseDao<Postfach> implements IPostfachDao
-
-
Constructor Summary
Constructors Constructor Description PostfachDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
clear(IEntityContext ec, Mandant man, Postfach postfach)
Deprecated.void
clear(IEntityContext ec, Postfach postfach)
String
findUniqueName(IEntityContext ec, Mandant client, String candidate, Postfach exclude)
Returns a name that is not taken by anotherPostfach
in the given client other than the excluded inbox.List<Postfach>
getAllByBenutzergruppe(IEntityContext ec, BenutzerGruppe benutzerGruppe)
List<Postfach>
getAllByClient(IEntityContext ec, Mandant client)
Returns all inboxes of the givenMandant
Postfach
getByUUID(IEntityContext ec, Mandant client, String uuid)
Returns the inbox with the given UUIDPostfach
getByUUID(IEntityContext ec, Mandant client, UUID uuid)
Returns the inbox with the given UUIDSet<de.xima.cmn.dao.interfaces.IEntity<Long>>
getEntityRefs(IEntityContext ec, Postfach inbox)
protected IFCDaoActionHook<Postfach>
getPostActionHook()
List<Postfach>
getPostfachByBenutzer(IEntityContext ec, Benutzer benutzer)
protected IFCDaoActionHook<Postfach>
getPreActionHook()
boolean
isNameExisiting(IEntityContext ec, Mandant client, String name)
Returns whether or not the given inbox name exists within the given 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
read
-
-
-
-
Method Detail
-
getEntityRefs
public Set<de.xima.cmn.dao.interfaces.IEntity<Long>> getEntityRefs(IEntityContext ec, Postfach inbox)
- Specified by:
getEntityRefs
in interfaceIGenericDao<Postfach>
- Overrides:
getEntityRefs
in classGenericDao<Postfach>
-
clear
public void clear(IEntityContext ec, Postfach postfach)
- Specified by:
clear
in interfaceIPostfachDao
-
clear
@Deprecated public void clear(IEntityContext ec, Mandant man, Postfach postfach)
Deprecated.- Specified by:
clear
in interfaceIPostfachDao
-
getPostfachByBenutzer
public List<Postfach> getPostfachByBenutzer(IEntityContext ec, Benutzer benutzer)
- Specified by:
getPostfachByBenutzer
in interfaceIPostfachDao
-
getPreActionHook
protected IFCDaoActionHook<Postfach> getPreActionHook()
- Overrides:
getPreActionHook
in classGenericDao<Postfach>
-
getPostActionHook
protected IFCDaoActionHook<Postfach> getPostActionHook()
- Overrides:
getPostActionHook
in classGenericDao<Postfach>
-
getAllByBenutzergruppe
public List<Postfach> getAllByBenutzergruppe(IEntityContext ec, BenutzerGruppe benutzerGruppe)
- Specified by:
getAllByBenutzergruppe
in interfaceIPostfachDao
-
getAllByClient
public List<Postfach> getAllByClient(IEntityContext ec, Mandant client)
Description copied from interface:IPostfachDao
Returns all inboxes of the givenMandant
- Specified by:
getAllByClient
in interfaceIPostfachDao
- Parameters:
ec
-EntityContext
the entity context in which the action is to be performedclient
-Mandant
whose inboxes should be looked for- Returns:
List
ofPostfach
s of the givenMandant
-
getByUUID
public Postfach getByUUID(IEntityContext ec, Mandant client, String uuid)
Description copied from interface:IPostfachDao
Returns the inbox with the given UUID- Specified by:
getByUUID
in interfaceIPostfachDao
- Parameters:
ec
-IEntityContext
to useclient
-Mandant
context in which to look for inboxuuid
-String
UUID of the inbox- Returns:
Postfach
for the given UUID and client
-
getByUUID
public Postfach getByUUID(IEntityContext ec, Mandant client, UUID uuid)
Description copied from interface:IPostfachDao
Returns the inbox with the given UUID- Specified by:
getByUUID
in interfaceIPostfachDao
- Parameters:
ec
-IEntityContext
to useclient
-Mandant
context in which to look for inboxuuid
-UUID
UUID of the inbox- Returns:
Postfach
for the given UUID and client
-
findUniqueName
public String findUniqueName(IEntityContext ec, Mandant client, String candidate, Postfach exclude)
Description copied from interface:IPostfachDao
Returns a name that is not taken by anotherPostfach
in the given client other than the excluded inbox. An index will be added to the candidate if necessary.- Specified by:
findUniqueName
in interfaceIPostfachDao
- Parameters:
ec
-IEntityContext
to be usedclient
-Mandant
for which a unique inbox name should be generatedcandidate
-String
inbox name candiate to be made uniqueexclude
-Postfach
inbox to be excluded from search- Returns:
- unique inbox name in the context of the given client
-
isNameExisiting
public boolean isNameExisiting(IEntityContext ec, Mandant client, String name)
Description copied from interface:IPostfachDao
Returns whether or not the given inbox name exists within the given client- Specified by:
isNameExisiting
in interfaceIPostfachDao
- Parameters:
ec
-IEntityContext
to be usedclient
-Mandant
for which to check uniquenessname
- An inbox name to check- Returns:
- whether or not the given name is unique
-
-