Class TextbausteinAPI
API class for manipulation of
Textbaustein entities.- Author:
- XIMA MEDIA GmbH
-
Field Summary
Fields inherited from class AEntityAPI
entityClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAllKeywords(UserContext uc, Mandant mandant, ETextbausteinKategorie kategorie) findTemplatesBy(UserContext uc, Mandant mandant, ETextbausteinKategorie kategorie, boolean initCustomAttribs) getAllByMandantAndTyp(UserContext uc, Mandant client, ETextbausteinKategorie category) Method for reading all templates of a client and a specified type.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, int mandantID, String templateName) getByMandantAndName(UserContext uc, Mandant mandant, String name) getByUUID(UserContext uc, Mandant client, String uuid) Method for determining anTextbausteinby an UUID asStringand the clientgetByUUID(UserContext uc, Mandant client, UUID uuid) Method for determining anTextbausteinby an UUID and the clientgetFD2Theme(UserContext uc, Mandant mandant, String theme) Deprecated.getI18nValues(UserContext uc, Textbaustein tmpl) Method for determining all i18n values of aTextbaustein.getTextbausteinBy(UserContext uc, Mandant mandant, String name, ETextbausteinKategorie category) Method for determining aTextbausteinby his name and category.getTextbausteine(UserContext uc, Mandant mandant) Method for determining allTextbausteinof a client.mandantSpecificMsg(UserContext uc, Mandant client, ETextbausteinMsgCode messageCode) Finds the content of atext templateby itsmessage code.Methods inherited from class AEntityAPI
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getEntityRefs, getPagedResult, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, updateMethods inherited from class ASubAPI
getHandlerProvider
-
Constructor Details
-
TextbausteinAPI
public TextbausteinAPI()
-
-
Method Details
-
mandantSpecificMsg
Finds the content of 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 text content of the template.
- Since:
- 2.4.3
-
getByClientAndMessageCode
public 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
public Textbaustein getByClientAndMessageCode(UserContext uc, Mandant client, ETextbausteinMsgCode messageCode, ETextbausteinKategorie category) Finds atext templateby itsmessage code. -
getTextbausteine
Method for determining allTextbausteinof a client.- Parameters:
uc-UserContextthe user context in which the action is to be performed.mandant-Mandantwhose templates are searched for.- Returns:
ListofTextbausteins.- Since:
- 2.4.3
-
getTextbausteinBy
public Textbaustein getTextbausteinBy(UserContext uc, Mandant mandant, String name, ETextbausteinKategorie category) Method for determining aTextbausteinby his name and category.- Parameters:
uc-UserContextthe user context in which the action is to be performed.mandant-Mandantwhose template is searched for.name-Stringof the template.category-ETextbausteinKategoriethe type of the template.- Returns:
Textbausteinwhich is found for the parameters.
-
getByMandantAndName
- Parameters:
uc-UserContextthe user context in which the action is to be performed.mandant-Mandantwhose template is searched for.name-Stringof the template.- Returns:
Textbausteinwhich is found for the parameters.DeprecatedusegetTextbausteinBy(UserContext, Mandant, String, ETextbausteinKategorie)
-
getByMandantAndName
- Parameters:
uc-UserContextthe user context in which the action is to be performed.mandantID-Integerid of the client whose templates is searched for.templateName-Stringname of the template.- Returns:
Textbausteinwhich is found for the parameters.DeprecatedusegetTextbausteinBy(UserContext, Mandant, String, ETextbausteinKategorie)
-
getFD2Theme
Deprecated.Form themes can now come from a variety of sources, seeFormThemeReference. The closest equivalent to CSS text templates areClientFormTheme. SeeFormThemeAPI.Method for reading a CSS template of a client by his name.- Parameters:
uc-UserContextthe user context in which the action is to be performed.mandant-Mandantwhose template are searched for.theme-Stringname of the themes.- Returns:
Textbausteinwhich is found for the parameters.- Since:
- 2.4.3
-
getAllByMandantAndTyp
public List<Textbaustein> getAllByMandantAndTyp(UserContext uc, Mandant client, ETextbausteinKategorie category) Method for reading all templates of a client and a specified type.- Parameters:
uc-UserContextthe user context in which the action is to be performed.client-Mandantwhose templates are searched for.category-ETextbausteinKategoriethe type of the template.- Returns:
ListofTextbausteins.- Since:
- 2.4.3
-
getI18nValues
Method for determining all i18n values of aTextbaustein.- Parameters:
uc-UserContextthe user context in which the action is to be performed.tmpl-Textbaustein, whose custom attributes are to be determined.- Returns:
Mapwith elements.- Since:
- 4.2.0
-
getByUUID
Method for determining anTextbausteinby an UUID asStringand the client- Parameters:
uc-UserContextthe user context in which the action is to be performed.client-Mandantwhose templates are searched for.uuid- the UUID asString- Returns:
- the
Textbausteinornull
-
getByUUID
Method for determining anTextbausteinby an UUID and the client- Parameters:
uc-UserContextthe user context in which the action is to be performed.client-Mandantwhose templates are searched for.uuid- the UUID- Returns:
- the
Textbausteinornull
-
findAllKeywords
public Set<String> findAllKeywords(UserContext uc, Mandant mandant, ETextbausteinKategorie kategorie) - See Also:
-
findTemplatesBy
public List<Textbaustein> findTemplatesBy(UserContext uc, Mandant mandant, ETextbausteinKategorie kategorie, boolean initCustomAttribs) - See Also:
-
FormThemeReference.