Class DefaultNavigationNodeWizard
- java.lang.Object
-
- de.hybris.platform.cockpit.wizards.Wizard
-
- de.hybris.platform.cmscockpit.wizard.DefaultNavigationNodeWizard
-
public class DefaultNavigationNodeWizard extends Wizard
Wizard for creating new navigation node withinNavigationNodePerspective.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultNavigationNodeWizard.FinalizeWizardEventAdditional 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
Fields Modifier and Type Field Description protected static java.lang.StringABSTRACTCMSCOMPONENTprotected static java.lang.StringABSTRACTCMSCOMPONENT_UID_PREFIXprotected static java.lang.StringABSTRACTPAGEprotected static java.lang.StringABSTRACTPAGE_UID_PREFIXprotected static java.lang.StringCMS_LINK_COMPONENT_MODEprotected static java.lang.StringCMS_NAVIGATION_NODE_NAMEprotected static java.lang.StringCMS_NAVIGATION_NODE_TITLEprotected static java.lang.StringCMS_NAVIGATION_NODE_VISIBLEprotected static java.lang.StringCMSITEM_UIDprotected static java.lang.StringCONTENT_PAGE_MODEprotected static java.lang.StringCREATE_NEW_DECISIONprotected static java.lang.StringCURRENT_CATATLOG_VERSIONprotected static java.lang.StringDEFAULT_COLLECTTION_EDITORprotected static java.lang.StringDOT_CATATLOG_VERSIONprotected static java.lang.StringLINK_UID_PREFIXprotected static java.lang.StringMEDIA_MODEprotected static java.lang.StringMEDIA_UID_PREFIXprotected static java.lang.StringMIME_TYPESprotected static java.lang.StringRESOURCES_PARAMprotected static java.lang.StringSELECT_EXISTING_DECISIONprotected static java.lang.StringSELECTED_DECISIONprotected static java.lang.StringSELECTED_MODE-
Fields inherited from class de.hybris.platform.cockpit.wizards.Wizard
currentPage, DO_BACK_ON_FIRST_PAGE, frameComponent, history, messages
-
-
Constructor Summary
Constructors Constructor Description DefaultNavigationNodeWizard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoDone()voiddoNext()java.lang.StringgetCmsNavigationNodeName()Retrieves navigation node name that was specified by user.java.util.Map<java.lang.String,java.lang.String>getCmsNavigationNodeTitle()Retrieves navigation node title that was specified by user.NavigationNodeMandatoryPageControllergetDefaultInnerWizardPageController()GenericRandomNameProducergetGenericRandomNameProducer()java.util.List<java.lang.String>getMediaMimeTypes()GenericItemWizardgetNavigationNodeInnerWizard()java.util.Map<java.lang.String,java.lang.Object>getPredefinedValuesForInnerWizard()Returns all predefined values for wizard regarding current mode.java.lang.StringgetSelectedDecision()Retrieves selected decision fromWizardContext.java.lang.StringgetSelectedMode()Retrieves selected mode fromWizardContext.java.lang.StringgetSelectedTypeName()Returns a localized name regarding selected mode.java.util.List<ObjectTemplate>getSupportedObjectTemplates()Returns all supported object templates.protected SystemServicegetSystemService()TypeServicegetTypeService()UIAccessRightServicegetUiAccessRightService()java.util.List<java.lang.String>getUserDecisions()Retrieves supported user decisions.DefaultWizardContextgetWizardContext()voidinit(GenericItemMandatoryPage page, org.zkoss.zk.ui.Component parent)Responsible for inner wizard initialization.voidinitializeInnerWizard(GenericItemWizard innerWizard, WizardPage page)Responsible for inner wizard initialization.booleanisCmsNavigationNodeVisible()Checks whether navigation node should be visible.booleanisCreateModeEnabled()Checks whether create mode was selected.booleanisMediaModeSelected()Checks whether media mode is chosen.booleanisModeSelected()Checks whether user select mode.voidsetDecision(java.lang.String currentDecision)Stores selected decision intoWizardContext.voidsetDefaultInnerWizardPageController(NavigationNodeMandatoryPageController defaultInnerWizardPageController)voidsetGenericRandomNameProducer(GenericRandomNameProducer genericRandomNameProducer)voidsetMediaMimeTypes(java.util.List<java.lang.String> mediaMimeTypes)voidsetNavigationNodeInnerWizard(GenericItemWizard navigationNodeInnerWizard)voidsetResources(java.util.List<TypedObject> resources)Sets related items into wizard contextWizardContext.voidsetSelectedMode(java.lang.String selectedMode)Stores selected mode intoWizardContext.voidsetSupportedTypes(java.util.List<java.lang.String> supportedTypes)voidsetTypeService(TypeService typeService)voidsetUiAccessRightService(UIAccessRightService uiAccessRightService)voidsetWizardContext(WizardContext context)voidupdateView()-
Methods 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 Detail
-
CMS_LINK_COMPONENT_MODE
protected static final java.lang.String CMS_LINK_COMPONENT_MODE
- See Also:
- Constant Field Values
-
CONTENT_PAGE_MODE
protected static final java.lang.String CONTENT_PAGE_MODE
- See Also:
- Constant Field Values
-
MEDIA_MODE
protected static final java.lang.String MEDIA_MODE
- See Also:
- Constant Field Values
-
SELECTED_MODE
protected static final java.lang.String SELECTED_MODE
- See Also:
- Constant Field Values
-
SELECTED_DECISION
protected static final java.lang.String SELECTED_DECISION
- See Also:
- Constant Field Values
-
DEFAULT_COLLECTTION_EDITOR
protected static final java.lang.String DEFAULT_COLLECTTION_EDITOR
- See Also:
- Constant Field Values
-
CMS_NAVIGATION_NODE_VISIBLE
protected static final java.lang.String CMS_NAVIGATION_NODE_VISIBLE
- See Also:
- Constant Field Values
-
CMS_NAVIGATION_NODE_NAME
protected static final java.lang.String CMS_NAVIGATION_NODE_NAME
- See Also:
- Constant Field Values
-
CMS_NAVIGATION_NODE_TITLE
protected static final java.lang.String CMS_NAVIGATION_NODE_TITLE
- See Also:
- Constant Field Values
-
MIME_TYPES
protected static final java.lang.String MIME_TYPES
- See Also:
- Constant Field Values
-
CREATE_NEW_DECISION
protected static final java.lang.String CREATE_NEW_DECISION
- See Also:
- Constant Field Values
-
SELECT_EXISTING_DECISION
protected static final java.lang.String SELECT_EXISTING_DECISION
- See Also:
- Constant Field Values
-
CURRENT_CATATLOG_VERSION
protected static final java.lang.String CURRENT_CATATLOG_VERSION
- See Also:
- Constant Field Values
-
DOT_CATATLOG_VERSION
protected static final java.lang.String DOT_CATATLOG_VERSION
- See Also:
- Constant Field Values
-
RESOURCES_PARAM
protected static final java.lang.String RESOURCES_PARAM
- See Also:
- Constant Field Values
-
CMSITEM_UID
protected static final java.lang.String CMSITEM_UID
- See Also:
- Constant Field Values
-
ABSTRACTCMSCOMPONENT
protected static final java.lang.String ABSTRACTCMSCOMPONENT
- See Also:
- Constant Field Values
-
ABSTRACTCMSCOMPONENT_UID_PREFIX
protected static final java.lang.String ABSTRACTCMSCOMPONENT_UID_PREFIX
- See Also:
- Constant Field Values
-
ABSTRACTPAGE
protected static final java.lang.String ABSTRACTPAGE
- See Also:
- Constant Field Values
-
ABSTRACTPAGE_UID_PREFIX
protected static final java.lang.String ABSTRACTPAGE_UID_PREFIX
- See Also:
- Constant Field Values
-
MEDIA_UID_PREFIX
protected static final java.lang.String MEDIA_UID_PREFIX
- See Also:
- Constant Field Values
-
LINK_UID_PREFIX
protected static final java.lang.String LINK_UID_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
isCreateModeEnabled
public boolean isCreateModeEnabled()
Checks whether create mode was selected.
-
isCmsNavigationNodeVisible
public boolean isCmsNavigationNodeVisible()
Checks whether navigation node should be visible.
-
getCmsNavigationNodeName
public java.lang.String getCmsNavigationNodeName()
Retrieves navigation node name that was specified by user.
-
getCmsNavigationNodeTitle
public java.util.Map<java.lang.String,java.lang.String> getCmsNavigationNodeTitle()
Retrieves navigation node title that was specified by user.
-
getWizardContext
public DefaultWizardContext getWizardContext()
- Overrides:
getWizardContextin classWizard
-
setWizardContext
public void setWizardContext(WizardContext context)
- Overrides:
setWizardContextin classWizard
-
setSelectedMode
public void setSelectedMode(java.lang.String selectedMode)
Stores selected mode intoWizardContext.
-
setDecision
public void setDecision(java.lang.String currentDecision)
Stores selected decision intoWizardContext.
-
getSelectedMode
public java.lang.String getSelectedMode()
Retrieves selected mode fromWizardContext.
-
getSelectedDecision
public java.lang.String 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
public java.util.Map<java.lang.String,java.lang.Object> getPredefinedValuesForInnerWizard()
Returns all predefined values for wizard regarding current mode.
-
getSelectedTypeName
public java.lang.String getSelectedTypeName()
Returns a localized name regarding selected mode.
-
getUserDecisions
public java.util.List<java.lang.String> getUserDecisions()
Retrieves supported user decisions.
-
getSupportedObjectTemplates
public java.util.List<ObjectTemplate> getSupportedObjectTemplates()
Returns all supported object templates. Note:
This is configured via spring beancmscockpitNavigationNodeConfig
-
setResources
public void setResources(java.util.List<TypedObject> resources)
Sets related items into wizard contextWizardContext.
-
initializeInnerWizard
public void initializeInnerWizard(GenericItemWizard innerWizard, WizardPage page)
Responsible for inner wizard initialization.- Parameters:
innerWizard- wizard for creating a new instance of itemspage- that will be assigned to wizard
-
updateView
public void updateView()
- Overrides:
updateViewin classWizard
-
init
public void init(GenericItemMandatoryPage page, org.zkoss.zk.ui.Component parent)
Responsible for inner wizard initialization.- Parameters:
page- mandatory wizard pageparent- parent component
-
getSystemService
protected SystemService getSystemService()
-
getUiAccessRightService
public UIAccessRightService getUiAccessRightService()
-
setUiAccessRightService
public void setUiAccessRightService(UIAccessRightService uiAccessRightService)
-
getMediaMimeTypes
public java.util.List<java.lang.String> getMediaMimeTypes()
-
setMediaMimeTypes
public void setMediaMimeTypes(java.util.List<java.lang.String> mediaMimeTypes)
-
setTypeService
public void setTypeService(TypeService typeService)
-
getTypeService
public TypeService getTypeService()
-
setSupportedTypes
public void setSupportedTypes(java.util.List<java.lang.String> supportedTypes)
-
getDefaultInnerWizardPageController
public NavigationNodeMandatoryPageController getDefaultInnerWizardPageController()
-
setDefaultInnerWizardPageController
public void setDefaultInnerWizardPageController(NavigationNodeMandatoryPageController defaultInnerWizardPageController)
-
setNavigationNodeInnerWizard
public void setNavigationNodeInnerWizard(GenericItemWizard navigationNodeInnerWizard)
-
getNavigationNodeInnerWizard
public GenericItemWizard getNavigationNodeInnerWizard()
-
setGenericRandomNameProducer
public void setGenericRandomNameProducer(GenericRandomNameProducer genericRandomNameProducer)
-
getGenericRandomNameProducer
public GenericRandomNameProducer getGenericRandomNameProducer()
-
-