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
_contentLanguage
private String[]
_contentTypes
private List<Map<String,Object>>
_contentValues
private int
_initWorkflowActionId
private Boolean[]
_isNew
private String[]
_names
private 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 String
getContentLanguage()
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' propertiesint
getWorkflowActionId()
Get the workflow action idString
getWorkflowName()
Get the workflow namevoid
setWorkflow(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
-
-