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.AbstractFieldAbstractField.MODE
 
- 
 - 
Field SummaryFields Modifier and Type Field Description private String_contentLanguageprivate String[]_contentTypesprivate List<Map<String,Object>>_contentValuesprivate int_initWorkflowActionIdprivate Boolean[]_isNewprivate String[]_namesprivate String_workflowName
 - 
Constructor SummaryConstructors Constructor Description SubContentField(List<Map<String,Object>> contentValues, String contentLanguage)Creates aSubContentField
 - 
Method SummaryAll 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.AbstractFieldgetMode, setMode, setMode
 
- 
 
- 
- 
- 
Field Detail- 
_contentValuesprivate List<Map<String,Object>> _contentValues 
 - 
_contentTypesprivate String[] _contentTypes 
 - 
_workflowNameprivate String _workflowName 
 - 
_initWorkflowActionIdprivate int _initWorkflowActionId 
 - 
_contentLanguageprivate String _contentLanguage 
 
- 
 - 
Constructor Detail- 
SubContentFieldpublic SubContentField(List<Map<String,Object>> contentValues, String contentLanguage) Creates aSubContentField- Parameters:
- contentValues- The content values
- contentLanguage- The contents languages
 
 
- 
 - 
Method Detail- 
setWorkflowpublic void setWorkflow(String workflowName, int initWorkflowActionId) Set the workflow properties- Parameters:
- workflowName- The workflow name
- initWorkflowActionId- The id of initial workflow action
 
 - 
getContentValuespublic List<Map<String,Object>> getContentValues() Get the content values- Returns:
- The content values
 
 - 
getContentNamesOrIdspublic String[] getContentNamesOrIds() Get the names or ids of content values- Returns:
- The names or ids
 
 - 
getContentTypespublic String[] getContentTypes() Get the content types to create- Returns:
- the content types to create
 
 - 
getWorkflowNamepublic String getWorkflowName() Get the workflow name- Returns:
- the workflow name
 
 - 
getWorkflowActionIdpublic int getWorkflowActionId() Get the workflow action id- Returns:
- the workflow action id
 
 - 
getContentLanguagepublic String getContentLanguage() Get the content language- Returns:
- the content language
 
 
- 
 
-