Interface ITextbausteinHandler
- All Superinterfaces:
IAPIHandler, IGenericHandler, Serializable
- All Known Implementing Classes:
TextbausteinHandler
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionfindAllKeywords(UserContext uc, Mandant mandant, ETextbausteinKategorie kategorie) Collects all currently existing keywords for the provided client and template type.findTemplatesBy(UserContext uc, Mandant mandant, ETextbausteinKategorie kategorie, boolean initCustomAttribs) getByClientAndMessageCode(UserContext uc, Mandant client, ETextbausteinMsgCode messageCode) Finds atext templateby itsmessage code.getByClientAndMessageCode(UserContext uc, Mandant client, ETextbausteinMsgCode messageCode, ETextbausteinKategorie category) Finds atext templateby itsmessage code.getByMandantAndName(UserContext uc, Mandant mandant, String name) getByUUID(UserContext uc, Mandant client, String uuid) getByUUID(UserContext uc, Mandant client, UUID uuid) getI18nValues(UserContext uc, Textbaustein template) Provides the i18n values from the template.getTextbausteinBy(UserContext uc, Mandant client, String name, ETextbausteinKategorie category) Gets the textbaustein by.getTextbausteine(UserContext uc, Mandant client) Gets the alltext templatesof aclient.getTextbausteineByKategorie(UserContext uc, Mandant mandant, ETextbausteinKategorie kategorie) Gets the textbausteine vom uebergebenen Typ.mandantSpecificMsg(UserContext uc, Mandant client, ETextbausteinMsgCode messageCode) Mandant specific msg.Methods inherited from interface IAPIHandler
getNameMethods inherited from interface IGenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, update, update
-
Method Details
-
getTextbausteine
Gets the alltext templatesof aclient. -
mandantSpecificMsg
Mandant specific msg.- Parameters:
uc- the ucclient- the mandantmessageCode- the msg code- Returns:
- the string @
-
getTextbausteinBy
Textbaustein getTextbausteinBy(UserContext uc, Mandant client, String name, ETextbausteinKategorie category) Gets the textbaustein by.- Parameters:
uc- The user context of the user who requested the text template.client- the mandantname- the namecategory- the category of theTextbaustein- Returns:
- the
Textbaustein
-
getTextbausteineByKategorie
List<Textbaustein> getTextbausteineByKategorie(UserContext uc, Mandant mandant, ETextbausteinKategorie kategorie) Gets the textbausteine vom uebergebenen Typ.- Parameters:
uc- Usercontext in welchem die Operation ausgeführt wirdmandant- the mandantkategorie- des textbausteins- Returns:
- list of Textbaustein
-
getByMandantAndName
-
getI18nValues
Provides the i18n values from the template.- Parameters:
uc- user context in which the opration is performedtemplate- the template- Returns:
- map of i18n values
-
getByUUID
-
getByUUID
-
getByClientAndMessageCode
Textbaustein getByClientAndMessageCode(UserContext uc, Mandant client, ETextbausteinMsgCode messageCode) Finds atext templateby itsmessage code.- Parameters:
uc- The user context of the user who requested the message.client- Theclientwho owns thetemplate.messageCode- Themessage codeof thetemplate.- Returns:
- The
templateor null if no template was found. - Since:
- 8.3.0
-
getByClientAndMessageCode
Textbaustein getByClientAndMessageCode(UserContext uc, Mandant client, ETextbausteinMsgCode messageCode, ETextbausteinKategorie category) Finds atext templateby itsmessage code. -
findAllKeywords
Collects all currently existing keywords for the provided client and template type.- Parameters:
uc-UserContextto be used for entity context creationmandant-Mandantto filter the templates bykategorie-ETextbausteinKategorieto filter the templates by- Returns:
- the resulting set of keywords
- Since:
- 8.4.0
-
findTemplatesBy
List<Textbaustein> findTemplatesBy(UserContext uc, Mandant mandant, ETextbausteinKategorie kategorie, boolean initCustomAttribs) - Parameters:
uc-UserContextto be used for entity context creationmandant-Mandantto filter the templates bykategorie-ETextbausteinKategorieto filter the templates byinitCustomAttribs- decides whether to initialize (i.e. fetch) the custom attributes of each template or not- Returns:
- the resulting list of templates
- Since:
- 8.4.0
-