Class PdcFieldTemplateManager


  • public class PdcFieldTemplateManager
    extends Object
    Manages the axis and values from PDC to define a PDC field.
    Author:
    ahedin
    • Constructor Detail

      • PdcFieldTemplateManager

        protected PdcFieldTemplateManager()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
      • getActionForm

        public String getActionForm()
      • 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.