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 Summary
Constructors Modifier Constructor Description protected
PdcFieldTemplateManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addUsedAxis(UsedAxis usedAxis)
Adds the axis given as parameter to the used axis list.void
deleteUsedAxis(String usedAxisId)
Delete the axis correponding to the id given as parameter from the used axis list.String
getActionForm()
GenericFieldTemplate
getFieldTemplate()
GenericFieldTemplate
getUpdatedFieldTemplate()
UsedAxis
getUsedAxis(String usedAxisId)
ArrayList<UsedAxis>
getUsedAxisList()
void
init(GenericFieldTemplate fieldTemplate, String actionForm)
Initializes and enables the manager.boolean
isEnabled()
void
reset()
Resets and disables the manager.void
updateUsedAxis(UsedAxis usedAxis)
Updates the axis given as parameter into the used axis list.void
updateUsedAxisIds()
Updates the id of every axis from the used axis list.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
getActionForm
public String getActionForm()
-
getFieldTemplate
public GenericFieldTemplate getFieldTemplate()
-
init
public 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).
-
reset
public void reset()
Resets and disables the manager.
-
getUpdatedFieldTemplate
public GenericFieldTemplate getUpdatedFieldTemplate()
- Returns:
- A field template updated with the used axis data.
-
getUsedAxis
public UsedAxis getUsedAxis(String usedAxisId)
- Parameters:
usedAxisId
- The searched axis' id.- Returns:
- The axis corresponding to the id given as parameter.
-
addUsedAxis
public void addUsedAxis(UsedAxis usedAxis)
Adds the axis given as parameter to the used axis list.- Parameters:
usedAxis
- The axis to add to the list.
-
updateUsedAxis
public void updateUsedAxis(UsedAxis usedAxis)
Updates the axis given as parameter into the used axis list.- Parameters:
usedAxis
- The axis to update into the list.
-
deleteUsedAxis
public 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.
-
updateUsedAxisIds
public void updateUsedAxisIds()
Updates the id of every axis from the used axis list.
-
-