public class CmsPageBrowserModel extends AbstractSectionBrowserModel implements CockpitEventAcceptor
| Modifier and Type | Field and Description |
|---|---|
protected CMSAdminComponentService |
cmsAdminComponentService |
protected CMSAdminContentSlotService |
cmsAdminContentSlotService |
protected CMSAdminSiteService |
cmsAdminSiteService |
protected CmsCockpitService |
cmsCockpitService |
protected ModelService |
modelService |
protected Map<TypedObject,Set<TypedObject>> |
updateNotificationMap |
contextItems, LIST_VIEW_CONFIG_CODE, viewModebrowserListeners, cacheView, rootType, VIEWMODE_GRID, VIEWMODE_LIST| Constructor and Description |
|---|
CmsPageBrowserModel(CMSAdminSiteService cmsAdminSiteService,
CmsCockpitService cmsCockpitService,
ModelService modelService,
CMSAdminComponentService cmsAdminComponentService,
CMSAdminContentSlotService cmsAdminContentSlotService) |
blacklistItems, getBrowserSectionModel, getBrowserSectionModels, getItem, getItems, getSectionModelListener, getSelectedIndexes, removeItems, setBrowserSectionModels, setSectionModelListeneraddBrowserModelListener, collapse, doDrop, fireContextItemsChanged, fireContextRootTypeChanged, fireContextSelectionChanged, fireContextViewModeChanged, fireContextVisibilityChanged, fireItemActivated, fireItemsDropped, fireViewModeChanged, getActiveItem, getCompareModel, getContextInitialValueMapping, getContextItems, getContextRootItem, getContextRootType, getContextRootTypePropertyDescriptor, getContextTableModel, getContextViewMode, getLastType, getListViewConfiguration, getSelectedContextIndexes, getTableModel, getViewMode, isCollapsed, isContextItemsMovable, isContextItemsRemovable, isContextPropertyWritable, isContextVisible, isItemsMovable, isItemsRemovable, isPossibleAddContextSubTypes, setActiveItem, setCompareModel, setContextInitialValueMapping, setContextItems, setContextItems, setContextItemsDirectly, setContextItemsMovable, setContextItemsRemovable, setContextRootType, setContextRootTypePropertyDescriptor, setContextTableModel, setContextViewMode, setContextVisible, setContextVisibleDirect, setItemsMovable, setItemsRemovable, setSelectedContextIndexes, setTableModel, setViewModeclearSelection, fireChanged, fireItemsChanged, fireRootTypeChanged, fireSelectionChanged, focus, getArea, getAvailableBrowserFilters, getBrowserFilter, getBrowserFilterFixed, getCacheView, getRootType, getSelectedItems, getTotalCount, hasStatusBar, isAdvancedHeaderDropdownSticky, isAdvancedHeaderDropdownVisible, isAllMarked, isDuplicatable, isFocused, multiEdit, multiEdit, onHide, onShow, removeBrowserModelListener, setAllMarked, setBrowserFilter, setBrowserFilterFixed, setCacheView, setExtendedLabel, setLabel, setRootType, setSelectedIndexes, setTotalCountequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoDrop, getActiveItem, getContextInitialValueMapping, getContextItems, getContextRootItem, getContextRootType, getContextRootTypePropertyDescriptor, getContextTableModel, getContextViewMode, getLastType, getSelectedContextIndexes, getTableModel, getViewMode, isContextItemsMovable, isContextItemsRemovable, isContextVisible, isItemsMovable, isItemsRemovable, setActiveItem, setContextInitialValueMapping, setContextItems, setContextItems, setContextItemsDirectly, setContextItemsMovable, setContextItemsRemovable, setContextRootType, setContextRootTypePropertyDescriptor, setContextTableModel, setContextViewMode, setContextVisible, setContextVisibleDirect, setItemsMovable, setItemsRemovable, setSelectedContextIndexes, setTableModel, setViewModeaddBrowserModelListener, collapse, focus, getArea, getAvailableBrowserFilters, getBrowserFilter, getRootType, getSelectedItems, getTotalCount, hasStatusBar, isAdvancedHeaderDropdownSticky, isAdvancedHeaderDropdownVisible, isAllMarked, isCollapsed, isDuplicatable, isFocused, multiEdit, multiEdit, removeBrowserModelListener, setAllMarked, setBrowserFilter, setExtendedLabel, setLabel, setRootType, setSelectedIndexes, setTotalCountprotected CMSAdminSiteService cmsAdminSiteService
protected CmsCockpitService cmsCockpitService
protected ModelService modelService
protected CMSAdminComponentService cmsAdminComponentService
protected CMSAdminContentSlotService cmsAdminContentSlotService
protected Map<TypedObject,Set<TypedObject>> updateNotificationMap
public CmsPageBrowserModel(CMSAdminSiteService cmsAdminSiteService, CmsCockpitService cmsCockpitService, ModelService modelService, CMSAdminComponentService cmsAdminComponentService, CMSAdminContentSlotService cmsAdminContentSlotService)
public List<TypedObject> getAllPagesWithSameLabelOrType()
public List<MainAreaComponentFactory> getAvailableViewModes()
getAvailableViewModes in interface AdvancedBrowserModelgetAvailableViewModes in class AbstractAdvancedBrowserModelpublic Object clone() throws CloneNotSupportedException
clone in interface BrowserModelclone in class AbstractSectionBrowserModelCloneNotSupportedExceptionprotected CmsPageBrowserModel newCmsPageBrowserModel()
protected CmsPageMainAreaEditComponentFactory newCmsPageMainAreaEditComponentFactory()
protected CmsPageMainAreaPreviewComponentFactory newCmsPageMainAreaPreviewComponentFactory()
protected CmsPageMainAreaPersonalizeComponentFactory newCmsPageMainAreaPersonalizeComponentFactory()
public AbstractContentBrowser createViewComponent()
createViewComponent in interface BrowserModelcreateViewComponent in class AbstractSectionBrowserModelpublic void initialize()
initialize in interface SectionBrowserModelpublic void setArea(UIBrowserArea area)
setArea in interface BrowserModelsetArea in class AbstractBrowserModelpublic void setCurrentPageObject(TypedObject page)
page - given pagepublic TypedObject getCurrentPageObject()
public ListBrowserSectionModel getContentSlotSection()
public ListBrowserSectionModel getContentElementSection()
public ListBrowserSectionModel getSimpleElementSection()
protected List<ContentSlotModel> getContentSlotsForCurrentPage()
public List<ContentSlotNameModel> getMissingSlotsForCurrentPage()
public List<ContentSlotNameModel> getAvailableSlotsForCurrentPage()
public ContentSlotModel createSlotContentForCurrentPage(String position)
position - given position on the current pagepublic ContentSlotModel createContentSlotForPage(String position)
position - given position on the current pageprotected ContentSlotModel getContentaSlotAtPositionForPage(TypedObject wrappedPageModel, String position)
wrappedPageModel - wrapped current pageposition - position that will be checkedpublic void removeComponentFromSlot(TypedObject parentSlot, TypedObject component)
public void deleteSlotContentForCurrentPage(String uid)
uid - identifier of content slot that will be removedpublic boolean isStructViewAvailable()
true it so otherwise falsepublic boolean isAssignedToPage(ContentSlotModel contentSlot)
contentSlot - given content slottrue if so otherwise falsepublic void updateItems()
updateItems in interface BrowserModelupdateItems in class AbstractSectionBrowserModelpublic String getExtendedLabel()
getExtendedLabel in interface BrowserModelgetExtendedLabel in class AbstractBrowserModelpublic void deleteCurrentPage()
protected TypeService getTypeService()
public ContentEditorBrowserSectionModel getContentEditorSection()
public void clearSelection(ListBrowserSectionModel browserSectionModel)
browserSectionModel - - current section model (that fires change selection event)public String getLabel()
getLabel in interface BrowserModelgetLabel in class AbstractBrowserModelpublic void createAndInitializeDrilldownView()
public void createAndInitializeFlatOrStructureView()
public List<ObjectType> getAdditableType()
public CMSSiteModel getActiveSite()
public CatalogVersionModel getActiveCatalogVersion()
protected ListBrowserSectionModel createAndInitContentSlotSection()
protected ListBrowserSectionModel createAndInitContentElementSection(ListBrowserSectionModel contentSlotSection)
contentSlotSection - parent sectionprotected ListBrowserSectionModel createAndInitSimpleElementSection(ListBrowserSectionModel contentElementSection)
contentElementSection - parent sectionprotected ContentEditorBrowserSectionModel createAndInitContentEditorSection(ListBrowserSectionModel simpleElementSection, ListBrowserSectionModel contentElementSection)
simpleElementSection - parent section model (exclusive with contentElementSection)contentElementSection - (exclusive with simpleElementSection) parent section modelprotected ContentEditorBrowserSectionModel createContentElementEditorSection()
protected AbstractPageModel getCurrentCmsPage()
public BrowserSectionModel retriveSectionModelByContentSlot(String position)
@Deprecated public TypedObject contentSlotDefined(ContentSlotNameModel potentateContetSlot)
public GenericRandomNameProducer getGenericRandomNameProducer()
protected void createProperViewModel()
public void onCockpitEvent(CockpitEvent event)
onCockpitEvent in interface CockpitEventAcceptorpublic void addToAdditionalItemChangeUpdateNotificationMap(TypedObject itemToUpdate, Collection<TypedObject> changedItems)
public Collection<TypedObject> getAdditionalItemsToUpdate(TypedObject changedItem)
public void onClose()
AbstractBrowserModelonClose in class AbstractBrowserModelpublic SectionModelListener getSectionModelListenerForDrilldownView()
public boolean isBackButtonVisible()
Copyright © 2017 SAP SE. All Rights Reserved.