Class CmsComponentController
- java.lang.Object
-
- de.hybris.platform.cockpit.wizards.impl.DefaultPageController
-
- de.hybris.platform.cmscockpit.wizard.controller.CmsComponentController
-
- All Implemented Interfaces:
WizardPageController
public class CmsComponentController extends DefaultPageController
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.cockpit.wizards.impl.DefaultPageController
transitions
-
-
Constructor Summary
Constructors Constructor Description CmsComponentController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddone(Wizard wizard, WizardPage page)This method is invoked when the done button is pressed.ContentSlotModelgetCurrentSlotModel(CmsWizard cmsWizard)GenericRandomNameProducergetGenericRandomNameProducer()java.lang.StringgetPosition()voidsetPosition(java.lang.String position)protected java.util.List<ItemModel>unwrapTypedObjects(java.util.Collection<TypedObject> wrappedCollection)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, beforeNext, cancel, evaluateAttribute, evaluateTransition, getFirstPage, initPage, next, previous, setTransitions
-
-
-
-
Method Detail
-
getPosition
public java.lang.String getPosition()
- Returns:
- the position
-
setPosition
public void setPosition(java.lang.String position)
- Parameters:
position- the position to set
-
getCurrentSlotModel
public ContentSlotModel getCurrentSlotModel(CmsWizard cmsWizard)
-
done
public void done(Wizard wizard, WizardPage page) throws WizardConfirmationException
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- Throws:
WizardConfirmationException
-
unwrapTypedObjects
protected java.util.List<ItemModel> unwrapTypedObjects(java.util.Collection<TypedObject> wrappedCollection)
-
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.
-
getGenericRandomNameProducer
public GenericRandomNameProducer getGenericRandomNameProducer()
-
-