Class TypeSelectorPage
java.lang.Object
de.hybris.platform.cockpit.wizards.impl.DefaultPage
de.hybris.platform.cmscockpit.wizard.page.AbstractCmsWizardPage
de.hybris.platform.cmscockpit.wizard.page.TypeSelectorPage
- All Implemented Interfaces:
CmsComponentSelectorPage,CmsPageSelectorPage,CmsWizardPage,WizardPage
public class TypeSelectorPage
extends AbstractCmsWizardPage
implements CmsComponentSelectorPage, CmsPageSelectorPage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ObjectTypeprotected static final Stringprotected static final Stringprotected static final Stringprotected ObjectTypeprotected 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.cmscockpit.wizard.page.AbstractCmsWizardPage
CMSWIZARD_ERROR_CNT_SCLASS, CMSWIZARD_PAGE_CNT_SCLASS, CMSWIZARD_PAGE_CONTENT_CNT_SCLASS, CONTENT_ELEMENT_CONFIG, ERROR_SCLASS_CMSWIZARD_CNT, ERROR_SCLASS_ELEMENT_BOX_EDITOR, errorContainer, pageContainer, pageContent, SCLASS_ELEMENT_BOX_EDITORFields inherited from class de.hybris.platform.cockpit.wizards.impl.DefaultPage
height, title, width, wizard -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.zkoss.zk.ui.Componentprotected MutableWizardContextprotected List<ObjectTemplate>filterTypes(List<ObjectTemplate> types) Filters only the types that are valid for the target contentSlot according toObjectTypeFilterthat is set bysetContentSlotObjectTypesFilter(ObjectTypeFilter)injection.protected CMSAdminSiteServiceprotected List<ObjectType>getAllSubTypes(String typeCode) Recursively gets subtypes of typeprotected TypeServiceprotected ContentElementListConfigurationFor getting configuration for a specific ObjectTemplate please usegetContentElementConfiguration(ObjectTemplate)instead!protected ContentElementListConfigurationgetContentElementConfiguration(ObjectTemplate objectTemplate) Method gets content element configuration for a given object template.protected ContentSlotNameModelgetContentSlotName(PageTemplateModel pageTemplate, String position) protected CreateItemWizardRegistryprotected AbstractPageModelprotected List<ObjectTemplate>protected List<ObjectTemplate>getInstanceableObjectTypes(ObjectType objectType) protected Stringprotected TypeServiceprotected UIConfigurationServicebooleanprotected booleanprotected Set<ObjectType>mergeGivenTypes(Collection<ObjectType> wizardConfigExcludedTypes, List<String> additionalExcluded) voidsetAllowCreateTypes(List<String> allowCreateTypes) voidsetContentSlotObjectTypesFilter(ObjectTypeFilter<ObjectTemplate, ContentSlotNameModel> contentSlotObjectTypesFilter) voidsetDisplaySubtypes(boolean displaySubtypes) voidsetExcludeCreateTypes(List<String> excludeCreateTypes) voidsetPageParameters(Map<String, Object> pageParameters) voidsetParentObject(TypedObject parentObject) voidsetParentPropertyDescriptor(PropertyDescriptor parentPropertyDescriptor) voidsetPosition(String position) voidsetRootSelectorType(ObjectType rootSelectorType) Methods inherited from class de.hybris.platform.cmscockpit.wizard.page.AbstractCmsWizardPage
clearPageComponents, getDisplayedAttributes, getErrorContainer, getPageContainer, getPageContent, getWizard, handleMessages, isCauseError, setDisplayedAttributesMethods inherited from class de.hybris.platform.cockpit.wizards.impl.DefaultPage
getAttributes, getComponentURI, getController, getCurrentController, getHeight, getId, getPageComponent, getTitle, getWidth, initView, renderView, setComponentURI, setController, setId, setPageComponent, setTitle, setWizardMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.cmscockpit.wizard.page.CmsComponentSelectorPage
setController, setWizardMethods inherited from interface de.hybris.platform.cmscockpit.wizard.page.CmsPageSelectorPage
setController, setWizardMethods inherited from interface de.hybris.platform.cmscockpit.wizard.page.CmsWizardPage
getWizardMethods inherited from interface de.hybris.platform.cockpit.wizards.WizardPage
getAttributes, getComponentURI, getController, getHeight, getId, getTitle, getWidth, initView
-
Field Details
-
SCLASS_ELEMENT_BOX
- See Also:
-
SCLASS_ELEMENT_IMAGE
- See Also:
-
SCLASS_ELEMENT_NAME
- See Also:
-
SCLASS_ELEMENT_DESC
- See Also:
-
TYPE_SELECTOR_CONTAINER_PAGE_SCLASS
- See Also:
-
TYPE_SELECTOR_CMSWIZARD_PAGE_SCLASS
- See Also:
-
TYPE_SELECTOR_CMSWIZARD_ROW_SCLASS
- See Also:
-
COCKPIT_ID_CREATE_PAGE_TYPE_PREFIX
- See Also:
-
EXCLUDED_TYPES
- See Also:
-
RESTRICTED_TYPES
- See Also:
-
chosenType
-
rootSelectorType
-
-
Constructor Details
-
TypeSelectorPage
public TypeSelectorPage() -
TypeSelectorPage
-
-
Method Details
-
createRepresentationItself
public org.zkoss.zk.ui.Component createRepresentationItself()- Specified by:
createRepresentationItselfin interfaceCmsWizardPage- Specified by:
createRepresentationItselfin classAbstractCmsWizardPage
-
createWizardContext
-
filterTypes
Filters only the types that are valid for the target contentSlot according toObjectTypeFilterthat is set bysetContentSlotObjectTypesFilter(ObjectTypeFilter)injection. -
getAdminSiteService
-
getAllSubTypes
Recursively gets subtypes of type -
getChosenType
-
getCockpitTypeService
-
getContentElementConfiguration
For getting configuration for a specific ObjectTemplate please usegetContentElementConfiguration(ObjectTemplate)instead! -
getContentElementConfiguration
protected ContentElementListConfiguration getContentElementConfiguration(ObjectTemplate objectTemplate) Method gets content element configuration for a given object template. -
getContentSlotName
-
getCreateItemWizardRegistry
-
getCurrentPage
-
getInstanceableObjectTypes
-
getInstanceableObjectTypes
-
getParentObject
-
getParentPropertyDescriptor
-
getPosition
-
getRootSelectorType
-
getTypeService
-
getUIConfigurationService
-
isDisplaySubtypes
public boolean isDisplaySubtypes() -
isValidForActiveSite
-
mergeGivenTypes
protected Set<ObjectType> mergeGivenTypes(Collection<ObjectType> wizardConfigExcludedTypes, List<String> additionalExcluded) -
setDisplaySubtypes
public void setDisplaySubtypes(boolean displaySubtypes) - Specified by:
setDisplaySubtypesin interfaceCmsComponentSelectorPage- Specified by:
setDisplaySubtypesin interfaceCmsPageSelectorPage
-
setParentObject
-
setParentPropertyDescriptor
-
setPosition
- Specified by:
setPositionin interfaceCmsComponentSelectorPage
-
setRootSelectorType
- Specified by:
setRootSelectorTypein interfaceCmsComponentSelectorPage- Specified by:
setRootSelectorTypein interfaceCmsPageSelectorPage
-
getPageParameters
-
setPageParameters
-
getAllowCreateTypes
- Returns:
- the allowCreateTypes
-
setAllowCreateTypes
- Parameters:
allowCreateTypes- the allowCreateTypes to set
-
getExcludeCreateTypes
- Returns:
- the excludeCreateTypes
-
setExcludeCreateTypes
- Parameters:
excludeCreateTypes- the excludeCreateTypes to set
-
setContentSlotObjectTypesFilter
public void setContentSlotObjectTypesFilter(ObjectTypeFilter<ObjectTemplate, ContentSlotNameModel> contentSlotObjectTypesFilter) - Parameters:
contentSlotObjectTypesFilter- the contentSlotObjectTypesFilter to set
-