com.stratelia.silverpeas.pdcPeas.control
Class PdcFieldTemplateManager

java.lang.Object
  extended by com.stratelia.silverpeas.pdcPeas.control.PdcFieldTemplateManager

public class PdcFieldTemplateManager
extends Object

Manages the axis and values from PDC to define a PDC field.

Author:
ahedin

Constructor Summary
PdcFieldTemplateManager()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdcFieldTemplateManager

public PdcFieldTemplateManager()
Method Detail

isEnabled

public boolean isEnabled()

getActionForm

public String getActionForm()

getFieldTemplate

public GenericFieldTemplate getFieldTemplate()

getUsedAxisList

public ArrayList<UsedAxis> getUsedAxisList()

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.



Copyright © 2016 Silverpeas. All Rights Reserved.