Package de.xima.fc.dao.interfaces
Interface ITextbausteinDao
-
- All Superinterfaces:
de.xima.cmn.dao.interfaces.IAbstractDao<Textbaustein,Long,IEntityContext>
,IGenericDao<Textbaustein>
,IMandantDependentBaseDao<Textbaustein>
- All Known Implementing Classes:
TextbausteinDao
public interface ITextbausteinDao extends IMandantDependentBaseDao<Textbaustein>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
findUniqueName(IEntityContext ec, Mandant client, String candidate)
Returns a name that is not taken by anotherTextbaustein
in the given client.String
findUniqueName(IEntityContext ec, Mandant client, String candidate, Textbaustein exclude)
Returns a name that is not taken by anotherTextbaustein
in the given client other than the excluded template.List<Textbaustein>
getAll(IEntityContext ec, Mandant m)
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 projectTextbaustein
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 stringTextbaustein
getByUUID(IEntityContext ec, Mandant client, UUID uuid)
Returns the template with the given UUIDTextbaustein
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-
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
-
getByMsgCode
Textbaustein getByMsgCode(IEntityContext ec, Mandant m, String msgCode)
-
getTextbausteinByMsgCode
Textbaustein getTextbausteinByMsgCode(IEntityContext ec, Mandant m, ETextbausteinMsgCode msgCode)
-
getAll
List<Textbaustein> getAll(IEntityContext ec, Mandant m)
-
getByName
Textbaustein getByName(IEntityContext ec, Mandant mandant, String name)
-
getAllByKat
List<Textbaustein> getAllByKat(IEntityContext ec, Mandant mandant, ETextbausteinKategorie kategorie)
-
getByKatAndName
Textbaustein getByKatAndName(IEntityContext ec, Mandant mandant, ETextbausteinKategorie kategorie, String name)
-
getByUUID
Textbaustein getByUUID(IEntityContext ec, Mandant client, String uuid)
Returns the template with the given UUID string- Parameters:
ec
-IEntityContext
to useclient
-Mandant
context in which to look for templateuuid
-String
UUID of the template- Returns:
Textbaustein
for the given UUID and client- Since:
- 6.1.0
-
getByUUID
Textbaustein getByUUID(IEntityContext ec, Mandant client, UUID uuid)
Returns the template with the given UUID- Parameters:
ec
-IEntityContext
to useclient
-Mandant
context in which to look for templateuuid
-UUID
UUID of the template- Returns:
Textbaustein
for the given UUID and client- Since:
- 6.1.0
-
getAllByProject
List<Textbaustein> getAllByProject(IEntityContext ec, Projekt project)
Returns all templates that are being used by the given project- Parameters:
ec
-IEntityContext
to be usedproject
-Projekt
project to search for templates- Returns:
List
ofTextbaustein
s that are being used by the project- Since:
- 6.1.0
-
findUniqueName
String findUniqueName(IEntityContext ec, Mandant client, String candidate)
Returns a name that is not taken by anotherTextbaustein
in the given client. An index will be added to the candidate if necessary.- Parameters:
ec
-IEntityContext
to be usedclient
-Mandant
for which a unique template name should be generatedcandidate
-String
template name candiate to be made unique- Returns:
- unique template name in the context of the given client
- Since:
- 6.4.0
-
findUniqueName
String findUniqueName(IEntityContext ec, Mandant client, String candidate, Textbaustein exclude)
Returns a name that is not taken by anotherTextbaustein
in the given client other than the excluded template. An index will be added to the candidate if necessary.- Parameters:
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 search- Returns:
- unique template name in the context of the given client
- Since:
- 6.6.0
-
isNameExisiting
boolean isNameExisiting(IEntityContext ec, Mandant client, String name)
Returns whether or not the given template name exists within the given client- Parameters:
ec
-IEntityContext
to be usedclient
-Mandant
for which to check uniquenessname
-String
template name to check- Returns:
- whether or not the given name is unique
- Since:
- 6.4.0
-
-