Package com.jalios.jcms.policy
Class BasicWizardPolicyFilter
java.lang.Object
com.jalios.jcms.policy.AbstractPolicyFilter
com.jalios.jcms.policy.BasicWizardPolicyFilter
- All Implemented Interfaces:
PluginComponent,PolicyFilter,WizardPolicyFilter,Comparable
public class BasicWizardPolicyFilter
extends AbstractPolicyFilter
implements WizardPolicyFilter, PluginComponent
This class provides hooks for wizard actions:
- Since:
- jcms-5.7.3
- Author:
- Jean-Philippe Encausse
-
Field Summary
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
order -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterWizard(WizardContext ctxt) Performs actions after the Wizard process.booleanbeforeWizard(WizardContext ctxt) Performs actions before the Wizard process.handleCategoryName(String computedName, Category cat, WizardContext ctxt) Handle custom name for the given category.booleanInitialize the component with the given plugin configurationMethods inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
compareTo, equals, getOrder, setOrderMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareTo
-
Constructor Details
-
BasicWizardPolicyFilter
public BasicWizardPolicyFilter()
-
-
Method Details
-
init
Description copied from interface:PluginComponentInitialize the component with the given plugin configuration- Specified by:
initin interfacePluginComponent- Parameters:
plugin- the calling plugin- Returns:
- true if the component has been correctly initialized.
- Since:
- jcms-5.7.3
- See Also:
-
beforeWizard
Description copied from interface:WizardPolicyFilterPerforms actions before the Wizard process.- Specified by:
beforeWizardin interfaceWizardPolicyFilter- Parameters:
ctxt- the WizardContext- Returns:
- boolean true to stop the Wizard process
- See Also:
-
afterWizard
Description copied from interface:WizardPolicyFilterPerforms actions after the Wizard process.- Specified by:
afterWizardin interfaceWizardPolicyFilter- Parameters:
ctxt- the WizardContext- See Also:
-
handleCategoryName
Description copied from interface:WizardPolicyFilterHandle 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)- Specified by:
handleCategoryNamein interfaceWizardPolicyFilter- Parameters:
computedName- the target computed category namecat- the working category to duplicatectxt- the WizardContext- Returns:
- String the modified computed category name
- Since:
- jcms-5.7.5
- See Also:
-