Package org.ametys.cms.form
Class SubContentField
- java.lang.Object
-
- org.ametys.cms.form.AbstractField
-
- org.ametys.cms.form.SubContentField
-
public class SubContentField extends AbstractField
This field is used for subcontent metadata
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ametys.cms.form.AbstractField
AbstractField.MODE
-
-
Field Summary
Fields Modifier and Type Field Description private String_contentLanguageprivate String[]_contentTypesprivate List<Map<String,Object>>_contentValuesprivate int_initWorkflowActionIdprivate Boolean[]_isNewprivate String[]_namesprivate String_workflowName
-
Constructor Summary
Constructors Constructor Description SubContentField(List<Map<String,Object>> contentValues, String contentLanguage)Creates aSubContentField
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentLanguage()Get the content languageString[]getContentNamesOrIds()Get the names or ids of content valuesString[]getContentTypes()Get the content types to createList<Map<String,Object>>getContentValues()Get the content valuesBoolean[]getIsNew()Get the 'isNew' propertiesintgetWorkflowActionId()Get the workflow action idStringgetWorkflowName()Get the workflow namevoidsetWorkflow(String workflowName, int initWorkflowActionId)Set the workflow properties-
Methods inherited from class org.ametys.cms.form.AbstractField
getMode, setMode, setMode
-
-
-
-
Field Detail
-
_contentValues
private List<Map<String,Object>> _contentValues
-
_contentTypes
private String[] _contentTypes
-
_workflowName
private String _workflowName
-
_initWorkflowActionId
private int _initWorkflowActionId
-
_contentLanguage
private String _contentLanguage
-
-
Constructor Detail
-
SubContentField
public SubContentField(List<Map<String,Object>> contentValues, String contentLanguage)
Creates aSubContentField- Parameters:
contentValues- The content valuescontentLanguage- The contents languages
-
-
Method Detail
-
setWorkflow
public void setWorkflow(String workflowName, int initWorkflowActionId)
Set the workflow properties- Parameters:
workflowName- The workflow nameinitWorkflowActionId- The id of initial workflow action
-
getContentValues
public List<Map<String,Object>> getContentValues()
Get the content values- Returns:
- The content values
-
getContentNamesOrIds
public String[] getContentNamesOrIds()
Get the names or ids of content values- Returns:
- The names or ids
-
getContentTypes
public String[] getContentTypes()
Get the content types to create- Returns:
- the content types to create
-
getWorkflowName
public String getWorkflowName()
Get the workflow name- Returns:
- the workflow name
-
getWorkflowActionId
public int getWorkflowActionId()
Get the workflow action id- Returns:
- the workflow action id
-
getContentLanguage
public String getContentLanguage()
Get the content language- Returns:
- the content language
-
-