Package org.silverpeas.web.pdc.control
Class PdcFieldTemplateManager
- java.lang.Object
- 
- org.silverpeas.web.pdc.control.PdcFieldTemplateManager
 
- 
 public class PdcFieldTemplateManager extends Object Manages the axis and values from PDC to define a PDC field.- Author:
- ahedin
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedPdcFieldTemplateManager()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddUsedAxis(UsedAxis usedAxis)Adds the axis given as parameter to the used axis list.voiddeleteUsedAxis(String usedAxisId)Delete the axis correponding to the id given as parameter from the used axis list.StringgetActionForm()GenericFieldTemplategetFieldTemplate()GenericFieldTemplategetUpdatedFieldTemplate()UsedAxisgetUsedAxis(String usedAxisId)ArrayList<UsedAxis>getUsedAxisList()voidinit(GenericFieldTemplate fieldTemplate, String actionForm)Initializes and enables the manager.booleanisEnabled()voidreset()Resets and disables the manager.voidupdateUsedAxis(UsedAxis usedAxis)Updates the axis given as parameter into the used axis list.voidupdateUsedAxisIds()Updates the id of every axis from the used axis list.
 
- 
- 
- 
Method Detail- 
isEnabledpublic boolean isEnabled() 
 - 
getActionFormpublic String getActionForm() 
 - 
getFieldTemplatepublic GenericFieldTemplate getFieldTemplate() 
 - 
initpublic void init(GenericFieldTemplate fieldTemplate, String actionForm) Initializes and enables the manager.- Parameters:
- fieldTemplate- The field template.
- actionForm- The current action on the field (creation or update).
 
 - 
resetpublic void reset() Resets and disables the manager.
 - 
getUpdatedFieldTemplatepublic GenericFieldTemplate getUpdatedFieldTemplate() - Returns:
- A field template updated with the used axis data.
 
 - 
getUsedAxispublic UsedAxis getUsedAxis(String usedAxisId) - Parameters:
- usedAxisId- The searched axis' id.
- Returns:
- The axis corresponding to the id given as parameter.
 
 - 
addUsedAxispublic void addUsedAxis(UsedAxis usedAxis) Adds the axis given as parameter to the used axis list.- Parameters:
- usedAxis- The axis to add to the list.
 
 - 
updateUsedAxispublic void updateUsedAxis(UsedAxis usedAxis) Updates the axis given as parameter into the used axis list.- Parameters:
- usedAxis- The axis to update into the list.
 
 - 
deleteUsedAxispublic void deleteUsedAxis(String usedAxisId) Delete the axis correponding to the id given as parameter from the used axis list.- Parameters:
- usedAxisId- The is of the axis to delete.
 
 - 
updateUsedAxisIdspublic void updateUsedAxisIds() Updates the id of every axis from the used axis list.
 
- 
 
-