Package de.xima.fc.api.entity
Class TextbausteinAPI
- java.lang.Object
-
- de.xima.fc.api.ASubAPI
-
- de.xima.fc.api.entity.AEntityAPI<Textbaustein>
-
- de.xima.fc.api.entity.TextbausteinAPI
-
public class TextbausteinAPI extends AEntityAPI<Textbaustein>
API class for manipulation ofTextbaustein
entities.- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
-
Fields inherited from class de.xima.fc.api.entity.AEntityAPI
entityClass
-
-
Constructor Summary
Constructors Constructor Description TextbausteinAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Textbaustein>
getAllByMandantAndTyp(UserContext uc, Mandant client, ETextbausteinKategorie category)
Method for reading all templates of a client and a specified type.Textbaustein
getByMandantAndName(UserContext uc, int mandantID, String templateName)
Textbaustein
getByMandantAndName(UserContext uc, Mandant mandant, String name)
Textbaustein
getByUUID(UserContext uc, Mandant client, String uuid)
Method for determining anTextbaustein
by an UUID asString
and the clientTextbaustein
getByUUID(UserContext uc, Mandant client, UUID uuid)
Method for determining anTextbaustein
by an UUID and the clientTextbaustein
getFD2Theme(UserContext uc, Mandant mandant, String theme)
Method for reading a CSS template of a client by his name.Map<String,String>
getI18nValues(UserContext uc, Textbaustein tmpl)
Method for determining all i18n values of aTextbaustein
.Textbaustein
getTextbausteinBy(UserContext uc, Mandant mandant, String name, ETextbausteinKategorie category)
Method for determining aTextbaustein
by his name and category.List<Textbaustein>
getTextbausteine(UserContext uc, Mandant mandant)
Method for determining allTextbaustein
of a client.String
mandantSpecificMsg(UserContext uc, Mandant mandant, ETextbausteinMsgCode textbausteinCode)
Method for determining a message based on aMandant
and aTextbaustein
code.-
Methods inherited from class de.xima.fc.api.entity.AEntityAPI
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getEntityRefs, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, update
-
Methods inherited from class de.xima.fc.api.ASubAPI
getHandlerProvider
-
-
-
-
Method Detail
-
mandantSpecificMsg
public String mandantSpecificMsg(UserContext uc, Mandant mandant, ETextbausteinMsgCode textbausteinCode)
Method for determining a message based on aMandant
and aTextbaustein
code.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.mandant
-Mandant
whose message is to be output.textbausteinCode
-ETextbausteinMsgCode
of the template to be issued.- Returns:
String
the searched message of the template- Since:
- 2.4.3
-
getTextbausteine
public List<Textbaustein> getTextbausteine(UserContext uc, Mandant mandant)
Method for determining allTextbaustein
of a client.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.mandant
-Mandant
whose templates are searched for.- Returns:
List
ofTextbaustein
s.- Since:
- 2.4.3
-
getTextbausteinBy
public Textbaustein getTextbausteinBy(UserContext uc, Mandant mandant, String name, ETextbausteinKategorie category)
Method for determining aTextbaustein
by his name and category.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.mandant
-Mandant
whose template is searched for.name
-String
of the template.category
-ETextbausteinKategorie
the type of the template.- Returns:
Textbaustein
which is found for the parameters.
-
getByMandantAndName
public Textbaustein getByMandantAndName(UserContext uc, Mandant mandant, String name)
- Parameters:
uc
-UserContext
the user context in which the action is to be performed.mandant
-Mandant
whose template is searched for.name
-String
of the template.- Returns:
Textbaustein
which is found for the parameters.Deprecated
usegetTextbausteinBy(UserContext, Mandant, String, ETextbausteinKategorie)
-
getByMandantAndName
public Textbaustein getByMandantAndName(UserContext uc, int mandantID, String templateName)
- Parameters:
uc
-UserContext
the user context in which the action is to be performed.mandantID
-Integer
id of the client whose templates is searched for.templateName
-String
name of the template.- Returns:
Textbaustein
which is found for the parameters.Deprecated
usegetTextbausteinBy(UserContext, Mandant, String, ETextbausteinKategorie)
-
getFD2Theme
public Textbaustein getFD2Theme(UserContext uc, Mandant mandant, String theme)
Method for reading a CSS template of a client by his name.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.mandant
-Mandant
whose template are searched for.theme
-String
name of the themes.- Returns:
Textbaustein
which 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
-UserContext
the user context in which the action is to be performed.client
-Mandant
whose templates are searched for.category
-ETextbausteinKategorie
the type of the template.- Returns:
List
ofTextbaustein
s.- Since:
- 2.4.3
-
getI18nValues
public Map<String,String> getI18nValues(UserContext uc, Textbaustein tmpl)
Method for determining all i18n values of aTextbaustein
.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.tmpl
-Textbaustein
, whose custom attributes are to be determined.- Returns:
Map
with elements.- Since:
- 4.2.0
-
getByUUID
public Textbaustein getByUUID(UserContext uc, Mandant client, String uuid)
Method for determining anTextbaustein
by an UUID asString
and the client- Parameters:
uc
-UserContext
the user context in which the action is to be performed.client
-Mandant
whose templates are searched for.uuid
- the UUID asString
- Returns:
- the
Textbaustein
ornull
-
getByUUID
public Textbaustein getByUUID(UserContext uc, Mandant client, UUID uuid)
Method for determining anTextbaustein
by an UUID and the client- Parameters:
uc
-UserContext
the user context in which the action is to be performed.client
-Mandant
whose templates are searched for.uuid
- the UUID- Returns:
- the
Textbaustein
ornull
-
-