Class DefaultNavigationNodeWizard
java.lang.Object
de.hybris.platform.cockpit.wizards.Wizard
de.hybris.platform.cmscockpit.wizard.DefaultNavigationNodeWizard
Wizard for creating new navigation node within
NavigationNodePerspective.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAdditional event for wizard that is responsible for correct wizard finalization.Nested classes/interfaces inherited from class de.hybris.platform.cockpit.wizards.Wizard
Wizard.WizardEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class de.hybris.platform.cockpit.wizards.Wizard
currentPage, DO_BACK_ON_FIRST_PAGE, frameComponent, history, messages -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoDone()voiddoNext()Retrieves navigation node name that was specified by user.Retrieves navigation node title that was specified by user.Returns all predefined values for wizard regarding current mode.Retrieves selected decision fromWizardContext.Retrieves selected mode fromWizardContext.Returns a localized name regarding selected mode.Returns all supported object templates.protected SystemServiceRetrieves supported user decisions.voidinit(GenericItemMandatoryPage page, org.zkoss.zk.ui.Component parent) Responsible for inner wizard initialization.voidinitializeInnerWizard(GenericItemWizard innerWizard, WizardPage page) Responsible for inner wizard initialization.booleanChecks whether navigation node should be visible.booleanChecks whether create mode was selected.booleanChecks whether media mode is chosen.booleanChecks whether user select mode.voidsetDecision(String currentDecision) Stores selected decision intoWizardContext.voidsetDefaultInnerWizardPageController(NavigationNodeMandatoryPageController defaultInnerWizardPageController) voidsetGenericRandomNameProducer(GenericRandomNameProducer genericRandomNameProducer) voidsetMediaMimeTypes(List<String> mediaMimeTypes) voidsetNavigationNodeInnerWizard(GenericItemWizard navigationNodeInnerWizard) voidsetResources(List<TypedObject> resources) Sets related items into wizard contextWizardContext.voidsetSelectedMode(String selectedMode) Stores selected mode intoWizardContext.voidsetSupportedTypes(List<String> supportedTypes) voidsetTypeService(TypeService typeService) voidsetUiAccessRightService(UIAccessRightService uiAccessRightService) voidsetWizardContext(WizardContext context) voidMethods inherited from class de.hybris.platform.cockpit.wizards.Wizard
addMessage, checkShowBackOnFirstPage, cleanupHistory, close, createFrameComponent, createPageComponent, doBack, doCancel, getAllPageAttributes, getComponentURI, getContextClass, getCurrentController, getCurrentPage, getDefaultController, getFrameComponent, getHeight, getMessages, getPage, getPageContainer, getPageRoot, getPages, getPreviousPage, getTitle, getWidth, isForceHideDone, isForceShowNext, isShowBack, isShowCancel, isShowDone, isShowNext, refreshButtons, resize, setComponentURI, setContextClass, setCurrentPage, setDefaultController, setForceHideDone, setForceShowNext, setHeight, setPageRoot, setPages, setPreviousPage, setShowBack, setShowCancel, setShowDone, setShowNext, setTitle, setWidth, setWizardTitle, show, show, show
-
Field Details
-
CMS_LINK_COMPONENT_MODE
- See Also:
-
CONTENT_PAGE_MODE
- See Also:
-
MEDIA_MODE
- See Also:
-
SELECTED_MODE
- See Also:
-
SELECTED_DECISION
- See Also:
-
DEFAULT_COLLECTTION_EDITOR
- See Also:
-
CMS_NAVIGATION_NODE_VISIBLE
- See Also:
-
CMS_NAVIGATION_NODE_NAME
- See Also:
-
CMS_NAVIGATION_NODE_TITLE
- See Also:
-
MIME_TYPES
- See Also:
-
CREATE_NEW_DECISION
- See Also:
-
SELECT_EXISTING_DECISION
- See Also:
-
CURRENT_CATATLOG_VERSION
- See Also:
-
DOT_CATATLOG_VERSION
- See Also:
-
RESOURCES_PARAM
- See Also:
-
CMSITEM_UID
- See Also:
-
ABSTRACTCMSCOMPONENT
- See Also:
-
ABSTRACTCMSCOMPONENT_UID_PREFIX
- See Also:
-
ABSTRACTPAGE
- See Also:
-
ABSTRACTPAGE_UID_PREFIX
- See Also:
-
MEDIA_UID_PREFIX
- See Also:
-
LINK_UID_PREFIX
- See Also:
-
-
Constructor Details
-
DefaultNavigationNodeWizard
public DefaultNavigationNodeWizard()
-
-
Method Details
-
isCreateModeEnabled
public boolean isCreateModeEnabled()Checks whether create mode was selected. -
getWizardContext
- Overrides:
getWizardContextin classWizard
-
setWizardContext
- Overrides:
setWizardContextin classWizard
-
setSelectedMode
Stores selected mode intoWizardContext. -
setDecision
Stores selected decision intoWizardContext. -
getSelectedMode
Retrieves selected mode fromWizardContext. -
getSelectedDecision
Retrieves selected decision fromWizardContext. -
isMediaModeSelected
public boolean isMediaModeSelected()Checks whether media mode is chosen. -
isModeSelected
public boolean isModeSelected()Checks whether user select mode. -
getPredefinedValuesForInnerWizard
Returns all predefined values for wizard regarding current mode. -
getSelectedTypeName
Returns a localized name regarding selected mode. -
getUserDecisions
Retrieves supported user decisions. -
getSupportedObjectTemplates
Returns all supported object templates. Note:
This is configured via spring beancmscockpitNavigationNodeConfig -
setResources
Sets related items into wizard contextWizardContext. -
initializeInnerWizard
Responsible for inner wizard initialization.- Parameters:
innerWizard- wizard for creating a new instance of itemspage- that will be assigned to wizard
-
doNext
public void doNext() -
updateView
public void updateView()- Overrides:
updateViewin classWizard
-
doDone
public void doDone() -
init
Responsible for inner wizard initialization.- Parameters:
page- mandatory wizard pageparent- parent component
-
getSystemService
-
getUiAccessRightService
-
setUiAccessRightService
-
getMediaMimeTypes
-
setMediaMimeTypes
-
setTypeService
-
getTypeService
-
setSupportedTypes
-
getDefaultInnerWizardPageController
-
setGenericRandomNameProducer
-
getGenericRandomNameProducer
-