com.jalios.jcms.policy
Interface WizardPolicyFilter

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

public interface WizardPolicyFilter
extends PolicyFilter

This class provides hooks for wizard actions:

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
Version:
$Revision: 21265 $
Author:
Olivier Dedieu

Field Summary
static String REVISION
           
 
Method Summary
 void afterWizard(WizardContext ctxt)
          Performs actions after the Wizard process.
 boolean beforeWizard(WizardContext ctxt)
          Performs actions before the Wizard process.
 String handleCategoryName(String computedName, Category cat, WizardContext ctxt)
          Handle custom name for the given category.
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface com.jalios.jcms.plugin.PluginComponent
init
 

Field Detail

REVISION

static final String REVISION
See Also:
Constant Field Values
Method Detail

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


Copyright © 2001-2010 Jalios SA. All Rights Reserved.