Interface WizardPolicyFilter

All Superinterfaces:
Comparable, PluginComponent, PolicyFilter
All Known Implementing Classes:
BasicWizardPolicyFilter

public interface WizardPolicyFilter extends PolicyFilter
This class provides hooks for wizard actions:
  • Deep duplicate of a Workspace Model
  • Deep duplicate of a Portal
There is 2 methods to perform action on WizardContext before and after the deep copy. Otherwise DataControllers receives WizardContext in context Map during Wizard Process
Since:
jcms-5.7.0
Author:
Olivier Dedieu
  • Method Details

    • beforeWizard

      boolean beforeWizard(WizardContext ctxt)
      Performs actions before the Wizard process.
      Parameters:
      ctxt - the WizardContext
      Returns:
      boolean true to stop the Wizard process
    • afterWizard

      void afterWizard(WizardContext ctxt)
      Performs actions after the Wizard process.
      Parameters:
      ctxt - the WizardContext
    • handleCategoryName

      String handleCategoryName(String computedName, Category cat, WizardContext ctxt)
      Handle custom name for the given category. when it will be referenced If the Category.getName() is the same than computed category then the category will be referenced (not duplicated)
      Parameters:
      computedName - the target computed category name
      cat - the working category to duplicate
      ctxt - the WizardContext
      Returns:
      String the modified computed category name
      Since:
      jcms-5.7.5