public class DefaultPublicationCloningService extends Object implements PublicationCloningService
| Modifier and Type | Field and Description |
|---|---|
protected CommonI18NService |
commonI18NService |
protected FlexibleSearchService |
flexibleSearchService |
protected ModelCloningContext |
modelCloningContext |
protected ModelHelper |
modelHelper |
protected ModelService |
modelService |
| Constructor and Description |
|---|
DefaultPublicationCloningService() |
| Modifier and Type | Method and Description |
|---|---|
protected Set<ItemModel> |
collectSubModelsToSave(ChapterModel chapter) |
ChapterModel |
getChapterCopy(ChapterModel original,
PublicationModel targetModel)
Clones given chapter and attaches it to the given target publication.
|
protected CommonI18NService |
getCommonI18NService() |
protected FlexibleSearchService |
getFlexibleSearchService() |
protected ModelCloningContext |
getModelCloningContext() |
protected ModelHelper |
getModelHelper() |
protected ModelService |
getModelService() |
PageModel |
getPageCopy(PageModel original,
ChapterModel targetmodel)
Clones given page and attaches it to the given target chapter.
|
PlacementModel |
getPlacementCopy(PlacementModel original,
PageModel targetModel)
Clones given placement and attaches it to the given target page.
|
PublicationModel |
getPublicationCopy(PublicationModel publicationModel)
Clones given publication, adds '_copy' suffix to the publication code.
|
void |
setCommonI18NService(CommonI18NService commonI18NService) |
void |
setFlexibleSearchService(FlexibleSearchService flexibleSearchService) |
void |
setModelCloningContext(ModelCloningContext modelCloningContext) |
void |
setModelHelper(ModelHelper modelHelper) |
void |
setModelService(ModelService modelService) |
protected CommonI18NService commonI18NService
protected FlexibleSearchService flexibleSearchService
protected ModelCloningContext modelCloningContext
protected ModelHelper modelHelper
protected ModelService modelService
public PublicationModel getPublicationCopy(PublicationModel publicationModel) throws ValueHandlerPermissionException, ValueHandlerException
PublicationCloningServicegetPublicationCopy in interface PublicationCloningServicepublicationModel - publication to be clonedValueHandlerPermissionExceptionValueHandlerExceptionprotected Set<ItemModel> collectSubModelsToSave(ChapterModel chapter)
public ChapterModel getChapterCopy(ChapterModel original, PublicationModel targetModel)
PublicationCloningServicegetChapterCopy in interface PublicationCloningServiceoriginal - the chapter to be clonedtargetModel - the publication the cloned chapter will be attached topublic PageModel getPageCopy(PageModel original, ChapterModel targetmodel)
PublicationCloningServicegetPageCopy in interface PublicationCloningServiceoriginal - the page to be clonedtargetmodel - the chapter the cloned page will be attached topublic PlacementModel getPlacementCopy(PlacementModel original, PageModel targetModel)
PublicationCloningServicegetPlacementCopy in interface PublicationCloningServiceoriginal - the placement to be clonedtargetModel - the page the cloned placement will be attached toprotected CommonI18NService getCommonI18NService()
protected FlexibleSearchService getFlexibleSearchService()
protected ModelCloningContext getModelCloningContext()
protected ModelHelper getModelHelper()
protected ModelService getModelService()
public void setCommonI18NService(CommonI18NService commonI18NService)
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
public void setModelHelper(ModelHelper modelHelper)
public void setModelService(ModelService modelService)
public void setModelCloningContext(ModelCloningContext modelCloningContext)
Copyright © 2017 SAP SE. All Rights Reserved.