public class FormConfigElement
extends org.springframework.extensions.config.element.ConfigElementAdapter
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SET_ID |
static String |
FORM_NAME_ID |
| Constructor and Description |
|---|
FormConfigElement() |
FormConfigElement(String name) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.extensions.config.ConfigElement |
combine(org.springframework.extensions.config.ConfigElement otherConfigElement) |
List<org.springframework.extensions.config.ConfigElement> |
getChildren() |
String |
getCreateTemplate() |
String |
getEditTemplate() |
Map<String,FormField> |
getFields()
This method returns a Map of field names mentioned in the forms config, with any
associated config data as the associated value.
|
String[] |
getForcedFields() |
List<String> |
getForcedFieldsAsList()
Returns the list of fields that have been forced to be visible
|
String |
getFormTemplate(Mode m) |
String[] |
getHiddenCreateFieldNames() |
List<String> |
getHiddenCreateFieldNamesAsList() |
String[] |
getHiddenEditFieldNames() |
List<String> |
getHiddenEditFieldNamesAsList() |
String[] |
getHiddenViewFieldNames() |
List<String> |
getHiddenViewFieldNamesAsList() |
String |
getId() |
FormSet[] |
getRootSets() |
List<FormSet> |
getRootSetsAsList()
This method returns a Map of those <set>s which have no declared parentID
i.e. those that are 'roots' in the tree of sets.
|
String[] |
getSetIDs() |
List<String> |
getSetIDsAsList() |
Map<String,FormSet> |
getSets() |
String |
getSubmissionURL() |
String |
getViewTemplate() |
String[] |
getVisibleCreateFieldNames() |
List<String> |
getVisibleCreateFieldNamesAsList() |
String[] |
getVisibleCreateFieldNamesForSet(String setId)
This method returns an array of fieldNames for those fields which are
visible in Create mode and which are also members of the specified set.
|
List<String> |
getVisibleCreateFieldNamesForSetAsList(String setId) |
String[] |
getVisibleEditFieldNames() |
List<String> |
getVisibleEditFieldNamesAsList() |
String[] |
getVisibleEditFieldNamesForSet(String setId) |
List<String> |
getVisibleEditFieldNamesForSetAsList(String setId) |
String[] |
getVisibleViewFieldNames() |
List<String> |
getVisibleViewFieldNamesAsList() |
String[] |
getVisibleViewFieldNamesForSet(String setId) |
List<String> |
getVisibleViewFieldNamesForSetAsList(String setId) |
boolean |
isFieldForced(String fieldId)
Determines whether the given fieldId has been configured as 'force'd
|
boolean |
isFieldHidden(String fieldId,
Mode m)
This method checks whether the specified field is specifically hidden in the specified mode.
|
boolean |
isFieldHiddenInMode(String fieldId,
String modeString)
This method checks whether the specified field is specifically hidden in the specified mode.
|
boolean |
isFieldVisible(String fieldId,
Mode m)
This method checks whether the specified field is visible in the specified mode.
|
boolean |
isFieldVisibleInMode(String fieldId,
String modeString)
This method checks whether the specified field is visible in the specified mode.
|
public static final String FORM_NAME_ID
public static final String DEFAULT_SET_ID
public FormConfigElement()
public FormConfigElement(String name)
public List<org.springframework.extensions.config.ConfigElement> getChildren()
getChildren in interface org.springframework.extensions.config.ConfigElementgetChildren in class org.springframework.extensions.config.element.ConfigElementAdapterorg.alfresco.config.ConfigElement#getChildren()public org.springframework.extensions.config.ConfigElement combine(org.springframework.extensions.config.ConfigElement otherConfigElement)
combine in interface org.springframework.extensions.config.ConfigElementcombine in class org.springframework.extensions.config.element.ConfigElementAdapterorg.alfresco.config.ConfigElement#combine(org.alfresco.config.ConfigElement)public String getId()
public String getSubmissionURL()
public String[] getSetIDs()
public FormSet[] getRootSets()
public List<FormSet> getRootSetsAsList()
DEFAULT_SET_IDpublic Map<String,FormField> getFields()
public String[] getHiddenCreateFieldNames()
public String[] getHiddenEditFieldNames()
public String[] getHiddenViewFieldNames()
public String[] getVisibleCreateFieldNames()
public String[] getVisibleEditFieldNames()
public String[] getVisibleViewFieldNames()
public List<String> getHiddenCreateFieldNamesAsList()
FieldVisibilityManager.getFieldNamesHiddenInMode(Mode)public List<String> getHiddenEditFieldNamesAsList()
FieldVisibilityManager.getFieldNamesHiddenInMode(Mode)public List<String> getHiddenViewFieldNamesAsList()
FieldVisibilityManager.getFieldNamesHiddenInMode(Mode)public List<String> getVisibleCreateFieldNamesAsList()
FieldVisibilityManager.getFieldNamesVisibleInMode(Mode)public List<String> getVisibleEditFieldNamesAsList()
FieldVisibilityManager.getFieldNamesVisibleInMode(Mode)public List<String> getVisibleViewFieldNamesAsList()
FieldVisibilityManager.getFieldNamesVisibleInMode(Mode)public List<String> getVisibleCreateFieldNamesForSetAsList(String setId)
public String[] getVisibleCreateFieldNamesForSet(String setId)
setId - null will be returned if the specified setId is not
recognised or if the visible fields are not known.public List<String> getVisibleEditFieldNamesForSetAsList(String setId)
public List<String> getVisibleViewFieldNamesForSetAsList(String setId)
public String getCreateTemplate()
public String getEditTemplate()
public String getViewTemplate()
public String getFormTemplate(Mode m)
m - null if there is no template available for the specified mode.public boolean isFieldVisible(String fieldId, Mode m)
fieldId - the id of the fieldm - a mode.public boolean isFieldHidden(String fieldId, Mode m)
fieldId - the id of the fieldm - a mode.public boolean isFieldVisibleInMode(String fieldId, String modeString)
fieldId - modeString - isFieldVisible(String, Mode)public boolean isFieldHiddenInMode(String fieldId, String modeString)
fieldId - modeString - public boolean isFieldForced(String fieldId)
fieldId - The field id to checkpublic String[] getForcedFields()
Copyright © 2005–2014 Alfresco Software. All rights reserved.