Class TrashPagePopulator
java.lang.Object
de.hybris.platform.cmsfacades.cmsitems.populators.TrashPagePopulator
TrashPagePopulator, when an
AbstractPage's pageStatus attribute is changed from "Active" to "Deleted"
then any CMSNavigationEntry in any CMSNavigationNode associated with this page will be deleted.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CMSAdminItemServiceprotected EnumerationServiceprotected ModelServiceprotected booleanisPageBeingTrashed(AbstractPageModel page, Map<String, Object> map) Determines if a page is being trashed by checking the original pageStatus against the required pageStatus If the pageStatus will change from ACTIVE to DELETED, then the page is considered being trashed.voidPopulate the target instance with values from the source instance.voidsetCmsAdminItemService(CMSAdminItemService cmsAdminItemService) voidsetCmsNavigationService(CMSNavigationService cmsNavigationService) voidsetEnumerationService(EnumerationService enumerationService) voidsetModelService(ModelService modelService)
-
Constructor Details
-
TrashPagePopulator
public TrashPagePopulator()
-
-
Method Details
-
populate
Populate the target instance with values from the source instance.Removes one to many
CMSNavigationEntryin anyCMSNavigationNodethat references theAbstractPageModelpassed as a parameter- Specified by:
populatein interfacePopulator<Map<String,Object>, ItemModel> - Parameters:
itemModel- TheAbstractPageModelbeing populated.map- A map with at least two properties: 1.AbstractPageModel.PAGESTATUSThe required pageStatus. 2.AbstractPageMode.UIDThe uid of the page- Throws:
ConversionException
-
isPageBeingTrashed
Determines if a page is being trashed by checking the original pageStatus against the required pageStatus If the pageStatus will change from ACTIVE to DELETED, then the page is considered being trashed.- Parameters:
page- TheAbstractPageModelbeing checked for pageStatus changemap- A map with at least one properties: 1.AbstractPageModel.PAGESTATUSThe required pageStatus.- Returns:
- boolean confirming if the page is being trashed.
-
getCmsAdminItemService
-
setCmsAdminItemService
-
getModelService
-
setModelService
-
getEnumerationService
-
setEnumerationService
-