public class TrashPagePopulator extends java.lang.Object implements Populator<java.util.Map<java.lang.String,java.lang.Object>,ItemModel>
AbstractPage's pageStatus attribute is changed from "Active" to "Deleted"
then any CMSNavigationEntry in any CMSNavigationNode associated with this page will be deleted.| Constructor and Description |
|---|
TrashPagePopulator() |
| Modifier and Type | Method and Description |
|---|---|
protected CMSAdminItemService |
getCmsAdminItemService() |
CMSNavigationService |
getCmsNavigationService() |
protected EnumerationService |
getEnumerationService() |
protected ModelService |
getModelService() |
protected boolean |
isPageBeingTrashed(AbstractPageModel page,
java.util.Map<java.lang.String,java.lang.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.
|
void |
populate(java.util.Map<java.lang.String,java.lang.Object> map,
ItemModel itemModel)
Populate the target instance with values from the source instance.
|
void |
setCmsAdminItemService(CMSAdminItemService cmsAdminItemService) |
void |
setCmsNavigationService(CMSNavigationService cmsNavigationService) |
void |
setEnumerationService(EnumerationService enumerationService) |
void |
setModelService(ModelService modelService) |
public void populate(java.util.Map<java.lang.String,java.lang.Object> map,
ItemModel itemModel)
throws ConversionException
Removes one to many CMSNavigationEntry in any CMSNavigationNode
that references the AbstractPageModel passed as a parameter
populate in interface Populator<java.util.Map<java.lang.String,java.lang.Object>,ItemModel>itemModel - The AbstractPageModel being populated.map - A map with at least two properties:
1. AbstractPageModel.PAGESTATUS The required pageStatus.
2. AbstractPageMode.UID The uid of the pageConversionExceptionprotected boolean isPageBeingTrashed(AbstractPageModel page, java.util.Map<java.lang.String,java.lang.Object> map)
page - The AbstractPageModel being checked for pageStatus changemap - A map with at least one properties:
1. AbstractPageModel.PAGESTATUS The required pageStatus.public CMSNavigationService getCmsNavigationService()
public void setCmsNavigationService(CMSNavigationService cmsNavigationService)
protected CMSAdminItemService getCmsAdminItemService()
public void setCmsAdminItemService(CMSAdminItemService cmsAdminItemService)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
protected EnumerationService getEnumerationService()
public void setEnumerationService(EnumerationService enumerationService)
Copyright © 2018 SAP SE. All Rights Reserved.