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 void
beforeNext(Wizard wizard, WizardPage page)
This method is invoked before proceeding to the next page.protected Message
createErrorMessageForException(java.lang.Exception exception)
protected TypedObject
createItem(Wizard wizard, WizardPage page)
protected void
dispatchEventAfterCreate(TypedObject typedObject)
void
done(Wizard wizard, WizardPage page)
This method is invoked when the done button is pressed.java.lang.String
getPosition()
protected UIConfigurationService
getUIConfigurationService()
protected WizardConfiguration
getWizardConfiguration(GenericItemWizard wizard)
protected boolean
hasAllMandatoryFields(java.util.Map<java.lang.String,java.lang.Object> initialParameters, ObjectType objectType)
void
initPage(Wizard wizard, WizardPage page)
This method is invoked whenever a wizard page is created.WizardPage
next(Wizard wizard, WizardPage page)
Returns for the specified wizard page the next page.void
setModelLocalizedValue(ItemModel model, java.lang.String qualifier, java.lang.String languageIso, java.lang.Object value)
void
setModelSingleValue(ItemModel model, java.lang.String qualifier, java.lang.Object value)
void
setPosition(java.lang.String position)
boolean
validate(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:WizardPageController
This method is invoked when the done button is pressed.- Specified by:
done
in interfaceWizardPageController
- Overrides:
done
in 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:WizardPageController
This method is invoked before proceeding to the next page.- Specified by:
beforeNext
in interfaceWizardPageController
- Overrides:
beforeNext
in 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:WizardPageController
This method is invoked before leaving a page. Implement it to validate the input data.- Specified by:
validate
in interfaceWizardPageController
- Overrides:
validate
in 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:WizardPageController
Returns for the specified wizard page the next page. Should be implemented for complex wizard flow calculation.- Specified by:
next
in interfaceWizardPageController
- Overrides:
next
in 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:WizardPageController
This method is invoked whenever a wizard page is created. Implement it to do some preparations for your page.- Specified by:
initPage
in interfaceWizardPageController
- Overrides:
initPage
in 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
-
-