public class TextbausteinDao extends MandantDependentBaseDao<Textbaustein> implements ITextbausteinDao
Constructor and Description |
---|
TextbausteinDao() |
Modifier and Type | Method and Description |
---|---|
String |
findUniqueName(IEntityContext ec,
Mandant client,
String candidate)
Returns a name that is not taken by another
Textbaustein in the given client. |
String |
findUniqueName(IEntityContext ec,
Mandant client,
String candidate,
Textbaustein exclude)
Returns a name that is not taken by another
Textbaustein in the given client other than the excluded
template. |
List<Textbaustein> |
getAll(IEntityContext ec,
Mandant mandant) |
List<Textbaustein> |
getAllByKat(IEntityContext ec,
Mandant mandant,
ETextbausteinKategorie kategorie) |
List<Textbaustein> |
getAllByProject(IEntityContext ec,
Projekt project)
Returns all templates that are being used by the given project
|
Textbaustein |
getByKatAndName(IEntityContext ec,
Mandant mandant,
ETextbausteinKategorie kategorie,
String name) |
Textbaustein |
getByMsgCode(IEntityContext ec,
Mandant m,
String msgCode) |
Textbaustein |
getByName(IEntityContext ec,
Mandant mandant,
String name) |
Textbaustein |
getByUUID(IEntityContext ec,
Mandant client,
String uuid)
Returns the template with the given UUID string
|
Textbaustein |
getByUUID(IEntityContext ec,
Mandant client,
UUID uuid)
Returns the template with the given UUID
|
Set<de.xima.cmn.dao.interfaces.IEntity<Long>> |
getEntityRefs(IEntityContext ec,
Textbaustein template) |
protected IFCDaoActionHook<Textbaustein> |
getPostActionHook() |
protected IFCDaoActionHook<Textbaustein> |
getPreActionHook() |
Textbaustein |
getTextbausteinByMsgCode(IEntityContext ec,
Mandant m,
ETextbausteinMsgCode msgCode) |
boolean |
isNameExisiting(IEntityContext ec,
Mandant client,
String name)
Returns whether or not the given template name exists within the given client
|
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
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 Set<de.xima.cmn.dao.interfaces.IEntity<Long>> getEntityRefs(IEntityContext ec, Textbaustein template)
getEntityRefs
in interface IGenericDao<Textbaustein>
getEntityRefs
in class GenericDao<Textbaustein>
public Textbaustein getTextbausteinByMsgCode(IEntityContext ec, Mandant m, ETextbausteinMsgCode msgCode)
getTextbausteinByMsgCode
in interface ITextbausteinDao
public List<Textbaustein> getAll(IEntityContext ec, Mandant mandant)
getAll
in interface ITextbausteinDao
public Textbaustein getByName(IEntityContext ec, Mandant mandant, String name)
getByName
in interface ITextbausteinDao
public List<Textbaustein> getAllByKat(IEntityContext ec, Mandant mandant, ETextbausteinKategorie kategorie)
getAllByKat
in interface ITextbausteinDao
public Textbaustein getByMsgCode(IEntityContext ec, Mandant m, String msgCode)
getByMsgCode
in interface ITextbausteinDao
public Textbaustein getByKatAndName(IEntityContext ec, Mandant mandant, ETextbausteinKategorie kategorie, String name)
getByKatAndName
in interface ITextbausteinDao
public Textbaustein getByUUID(IEntityContext ec, Mandant client, String uuid)
ITextbausteinDao
getByUUID
in interface ITextbausteinDao
ec
- IEntityContext
to useclient
- Mandant
context in which to look for templateuuid
- String
UUID of the templateTextbaustein
for the given UUID and clientpublic Textbaustein getByUUID(IEntityContext ec, Mandant client, UUID uuid)
ITextbausteinDao
getByUUID
in interface ITextbausteinDao
ec
- IEntityContext
to useclient
- Mandant
context in which to look for templateuuid
- UUID
UUID of the templateTextbaustein
for the given UUID and clientpublic List<Textbaustein> getAllByProject(IEntityContext ec, Projekt project)
ITextbausteinDao
getAllByProject
in interface ITextbausteinDao
ec
- IEntityContext
to be usedproject
- Projekt
project to search for templatesList
of Textbaustein
s that are being used by the projectpublic String findUniqueName(IEntityContext ec, Mandant client, String candidate)
ITextbausteinDao
Textbaustein
in the given client. An index will be added to the
candidate if necessary.findUniqueName
in interface ITextbausteinDao
ec
- IEntityContext
to be usedclient
- Mandant
for which a unique template name should be generatedcandidate
- String
template name candiate to be made uniquepublic String findUniqueName(IEntityContext ec, Mandant client, String candidate, Textbaustein exclude)
ITextbausteinDao
Textbaustein
in the given client other than the excluded
template. An index will be added to the candidate if necessary.findUniqueName
in interface ITextbausteinDao
ec
- IEntityContext
to be usedclient
- Mandant
for which a unique template name should be generatedcandidate
- String
template name candiate to be made uniqueexclude
- Textbaustein
template to be excluded from searchpublic boolean isNameExisiting(IEntityContext ec, Mandant client, String name)
ITextbausteinDao
isNameExisiting
in interface ITextbausteinDao
ec
- IEntityContext
to be usedclient
- Mandant
for which to check uniquenessname
- String
template name to checkprotected IFCDaoActionHook<Textbaustein> getPreActionHook()
getPreActionHook
in class GenericDao<Textbaustein>
protected IFCDaoActionHook<Textbaustein> getPostActionHook()
getPostActionHook
in class GenericDao<Textbaustein>
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.