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:
CmsSiteMandatoryPageController,NavigationNodeMandatoryPageController,UploadMediaSecondPageController
-
Field Summary
Fields inherited from class de.hybris.platform.cockpit.wizards.impl.DefaultPageController
transitions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeNext(Wizard wizard, WizardPage page) This method is invoked before proceeding to the next page.protected MessagecreateErrorMessageForException(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.protected UIConfigurationServiceprotected WizardConfigurationprotected booleanhasAllMandatoryFields(Map<String, Object> initialParameters, ObjectType objectType) voidinitPage(Wizard wizard, WizardPage page) This method is invoked whenever a wizard page is created.next(Wizard wizard, WizardPage page) Returns for the specified wizard page the next page.voidsetModelLocalizedValue(ItemModel model, String qualifier, String languageIso, Object value) voidsetModelSingleValue(ItemModel model, String qualifier, Object value) voidsetPosition(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
-
Constructor Details
-
DefaultGenericItemMandatoryPageController
public DefaultGenericItemMandatoryPageController()
-
-
Method Details
-
getPosition
-
setPosition
-
done
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
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
-
createErrorMessageForException
-
dispatchEventAfterCreate
-
validate
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
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
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
-
getUIConfigurationService
-
hasAllMandatoryFields
protected boolean hasAllMandatoryFields(Map<String, Object> initialParameters, ObjectType objectType) -
setModelSingleValue
public void setModelSingleValue(ItemModel model, String qualifier, Object value) throws AttributeNotSupportedException - Throws:
AttributeNotSupportedException
-
setModelLocalizedValue
public void setModelLocalizedValue(ItemModel model, String qualifier, String languageIso, Object value) throws AttributeNotSupportedException - Throws:
AttributeNotSupportedException
-