Class TextbausteinHandler
java.lang.Object
de.xima.fc.handler.AMSApiHandler
de.xima.fc.handler.entity.GenericHandler
de.xima.fc.handler.entity.TextbausteinHandler
- All Implemented Interfaces:
IAPIHandler, IGenericHandler, ITextbausteinHandler, Serializable
The Class TextbausteinHandler.
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
Fields inherited from class GenericHandler
LOG -
Constructor Summary
Constructors -
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 client, 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 client, ETextbausteinKategorie category) Gets the textbausteine vom uebergebenen Typ.mandantSpecificMsg(UserContext uc, Mandant client, ETextbausteinMsgCode messageCode) Mandant specific msg.Methods inherited from class GenericHandler
create, create, delete, delete, deleteBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, serializableList, update, updateMethods inherited from class AMSApiHandler
getNameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Constructor Details
-
TextbausteinHandler
public TextbausteinHandler()
-
-
Method Details
-
getTextbausteine
Description copied from interface:ITextbausteinHandlerGets the alltext templatesof aclient.- Specified by:
getTextbausteinein interfaceITextbausteinHandler- Parameters:
uc- The user context of the user who requested the text templates.client- Theclientwho owns thetemplates.- Returns:
- All text templates of the client.
-
mandantSpecificMsg
Description copied from interface:ITextbausteinHandlerMandant specific msg.- Specified by:
mandantSpecificMsgin interfaceITextbausteinHandler- Parameters:
uc- the ucclient- the mandantmessageCode- the msg code- Returns:
- the string @
-
getTextbausteinBy
public Textbaustein getTextbausteinBy(UserContext uc, Mandant client, String name, ETextbausteinKategorie category) Description copied from interface:ITextbausteinHandlerGets the textbaustein by.- Specified by:
getTextbausteinByin interfaceITextbausteinHandler- 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
public List<Textbaustein> getTextbausteineByKategorie(UserContext uc, Mandant client, ETextbausteinKategorie category) Description copied from interface:ITextbausteinHandlerGets the textbausteine vom uebergebenen Typ.- Specified by:
getTextbausteineByKategoriein interfaceITextbausteinHandler- Parameters:
uc- Usercontext in welchem die Operation ausgeführt wirdclient- the mandantcategory- des textbausteins- Returns:
- list of Textbaustein
-
getByMandantAndName
- Specified by:
getByMandantAndNamein interfaceITextbausteinHandler
-
getI18nValues
Description copied from interface:ITextbausteinHandlerProvides the i18n values from the template.- Specified by:
getI18nValuesin interfaceITextbausteinHandler- Parameters:
uc- user context in which the opration is performedtemplate- the template- Returns:
- map of i18n values
-
getByUUID
- Specified by:
getByUUIDin interfaceITextbausteinHandler
-
getByUUID
- Specified by:
getByUUIDin interfaceITextbausteinHandler
-
getByClientAndMessageCode
public Textbaustein getByClientAndMessageCode(UserContext uc, Mandant client, ETextbausteinMsgCode messageCode) Description copied from interface:ITextbausteinHandlerFinds atext templateby itsmessage code.- Specified by:
getByClientAndMessageCodein interfaceITextbausteinHandler- 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.
-
getByClientAndMessageCode
public Textbaustein getByClientAndMessageCode(UserContext uc, Mandant client, ETextbausteinMsgCode messageCode, ETextbausteinKategorie category) Description copied from interface:ITextbausteinHandlerFinds atext templateby itsmessage code.- Specified by:
getByClientAndMessageCodein interfaceITextbausteinHandler- Parameters:
uc- The user context of the user who requested the message.client- Theclientwho owns thetemplate.messageCode- Themessage codeof thetemplate.category- Thecategoryof thetemplate.- Returns:
- The
templateor null if no template was found.
-
findAllKeywords
public Set<String> findAllKeywords(UserContext uc, Mandant mandant, ETextbausteinKategorie kategorie) Description copied from interface:ITextbausteinHandlerCollects all currently existing keywords for the provided client and template type.- Specified by:
findAllKeywordsin interfaceITextbausteinHandler- 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
-
findTemplatesBy
public List<Textbaustein> findTemplatesBy(UserContext uc, Mandant mandant, ETextbausteinKategorie kategorie, boolean initCustomAttribs) - Specified by:
findTemplatesByin interfaceITextbausteinHandler- 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
-