Class DefaultGenericItemMandatoryPageController
- java.lang.Object
-
- de.hybris.platform.cockpit.wizards.impl.DefaultPageController
-
- de.hybris.platform.cockpit.wizards.generic.DefaultGenericItemMandatoryPageController
-
- All Implemented Interfaces:
WizardPageController
- Direct Known Subclasses:
UploadMediaSecondPageController
public class DefaultGenericItemMandatoryPageController extends DefaultPageController
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.cockpit.wizards.impl.DefaultPageController
transitions
-
-
Constructor Summary
Constructors Constructor Description DefaultGenericItemMandatoryPageController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeNext(Wizard wizard, WizardPage page)This method is invoked before proceeding to the next page.protected MessagecreateErrorMessageForException(java.lang.Exception exception)protected TypedObjectcreateItem(Wizard wizard, WizardPage page)protected voiddispatchEventAfterCreate(TypedObject typedObject)voiddone(Wizard wizard, WizardPage page)This method is invoked when the done button is pressed.java.lang.StringgetPosition()protected UIConfigurationServicegetUIConfigurationService()protected WizardConfigurationgetWizardConfiguration(GenericItemWizard wizard)protected booleanhasAllMandatoryFields(java.util.Map<java.lang.String,java.lang.Object> initialParameters, ObjectType objectType)voidinitPage(Wizard wizard, WizardPage page)This method is invoked whenever a wizard page is created.WizardPagenext(Wizard wizard, WizardPage page)Returns for the specified wizard page the next page.voidsetModelLocalizedValue(ItemModel model, java.lang.String qualifier, java.lang.String languageIso, java.lang.Object value)voidsetModelSingleValue(ItemModel model, java.lang.String qualifier, java.lang.Object value)voidsetPosition(java.lang.String position)booleanvalidate(Wizard wizard, WizardPage page)This method is invoked before leaving a page.-
Methods inherited from class de.hybris.platform.cockpit.wizards.impl.DefaultPageController
beforeBack, cancel, evaluateAttribute, evaluateTransition, getFirstPage, previous, setTransitions
-
-
-
-
Method Detail
-
getPosition
public java.lang.String getPosition()
-
setPosition
public void setPosition(java.lang.String position)
-
done
public void done(Wizard wizard, WizardPage page)
Description copied from interface:WizardPageControllerThis method is invoked when the done button is pressed.- Specified by:
donein interfaceWizardPageController- Overrides:
donein classDefaultPageController- Parameters:
wizard- the wizard which contains the pagepage- the currently accessed page
-
beforeNext
public void beforeNext(Wizard wizard, WizardPage page)
Description copied from interface:WizardPageControllerThis method is invoked before proceeding to the next page.- Specified by:
beforeNextin interfaceWizardPageController- Overrides:
beforeNextin classDefaultPageController- Parameters:
wizard- the wizard which contains the pagepage- the currently accessed page
-
createItem
protected TypedObject createItem(Wizard wizard, WizardPage page)
-
createErrorMessageForException
protected Message createErrorMessageForException(java.lang.Exception exception)
-
dispatchEventAfterCreate
protected void dispatchEventAfterCreate(TypedObject typedObject)
-
validate
public boolean validate(Wizard wizard, WizardPage page)
Description copied from interface:WizardPageControllerThis method is invoked before leaving a page. Implement it to validate the input data.- Specified by:
validatein interfaceWizardPageController- Overrides:
validatein classDefaultPageController- Returns:
- true, if the page content is correct, false otherwise. If false is returned, the wizard will not proceed to the next page.
-
next
public WizardPage next(Wizard wizard, WizardPage page)
Description copied from interface:WizardPageControllerReturns for the specified wizard page the next page. Should be implemented for complex wizard flow calculation.- Specified by:
nextin interfaceWizardPageController- Overrides:
nextin classDefaultPageController- Parameters:
wizard- the wizard which contains the pagespage- the current page- Returns:
- the next page
-
initPage
public void initPage(Wizard wizard, WizardPage page)
Description copied from interface:WizardPageControllerThis method is invoked whenever a wizard page is created. Implement it to do some preparations for your page.- Specified by:
initPagein interfaceWizardPageController- Overrides:
initPagein classDefaultPageController- Parameters:
wizard- the wizard which contains the pagepage- the currently accessed page
-
getWizardConfiguration
protected WizardConfiguration getWizardConfiguration(GenericItemWizard wizard)
-
getUIConfigurationService
protected UIConfigurationService getUIConfigurationService()
-
hasAllMandatoryFields
protected boolean hasAllMandatoryFields(java.util.Map<java.lang.String,java.lang.Object> initialParameters, ObjectType objectType)
-
setModelSingleValue
public void setModelSingleValue(ItemModel model, java.lang.String qualifier, java.lang.Object value) throws AttributeNotSupportedException
- Throws:
AttributeNotSupportedException
-
setModelLocalizedValue
public void setModelLocalizedValue(ItemModel model, java.lang.String qualifier, java.lang.String languageIso, java.lang.Object value) throws AttributeNotSupportedException
- Throws:
AttributeNotSupportedException
-
-