public interface PrintcockpitService
| Modifier and Type | Method and Description |
|---|---|
void |
addToClipboardCollection(ObjectCollection collection,
List<TypedObject> elements,
boolean isCut)
Adds given elements to specified collection
|
void |
clearClipboardCollection(ObjectCollection collection)
Clears given collection from existing elements
|
Set<String> |
getAllIDs(PublicationModel pub) |
List<ChapterModel> |
getAllSuperChapters(ChapterModel chapter) |
GridElementModel |
getElement(GridModel gridModel,
int gridElementID) |
List<Integer> |
getGridIds(GridModel gridModel) |
Component |
getNavigablePath(TypedObject typedObject,
String attribConstant,
String nodeStyleClass,
Component separator,
EventListener pathClickListener,
boolean useButton) |
ObjectCollection |
getPrintcockpitClipboardCollection(UserModel user)
Returns user's clipboard collection
|
List<ItemModel> |
getRecentlyEditedPublicationElements(int count)
Returns list of recently edited publication elements
|
PublicationComponentModel |
getRegisteredElement(PublicationModel pub,
String pk) |
boolean |
isDoublePage(TypedObject currentPageObject) |
boolean |
isFixedMode(TypedObject page) |
void |
removePlacement(PlacementModel placementToRemove)
Removes placement (deletes also the page2placement relation)
|
void |
removePublicationElementRecursively(TypedObject publicationElement)
Removes given publication element and all children recursively
|
void |
saveChapter(ChapterModel superChapter,
ChapterModel chapter,
int position)
Saves given chapter in given super chapter at given position, if given super chapter contains this chapter, it's moved from
it's old position to new position.
|
void |
savePage(PageModel page,
ChapterModel chapter,
int position)
Saves given page in given chapter at given position, if given chapter contains this page, it's moved from it's old position
to new position, if no chapter is given then page is simply saved without assigning it to any particular chapter
|
void |
savePlacement(PlacementModel placement,
PageModel page,
int position)
Saves given placement in given page at given position, if given page contains this placement, it's moved from it's old
position to new position, if no page is given then placement is simply saved without assigning it to any particular page
|
List<Integer> getGridIds(GridModel gridModel)
gridModel - boolean isFixedMode(TypedObject page)
page - GridElementModel getElement(GridModel gridModel, int gridElementID)
gridModel - gridElementID - void savePlacement(PlacementModel placement, PageModel page, int position)
placement - to savepage - position - give -1 if you wish placement to be stored at the endvoid savePage(PageModel page, ChapterModel chapter, int position)
page - chapter - position - give -1 if you wish page to be stored at the endvoid saveChapter(ChapterModel superChapter, ChapterModel chapter, int position)
superChapter - chapter - position - give -1 if you wish chapter to be stored at the endPublicationComponentModel getRegisteredElement(PublicationModel pub, String pk)
Set<String> getAllIDs(PublicationModel pub)
void removePlacement(PlacementModel placementToRemove)
placementToRemove - List<ItemModel> getRecentlyEditedPublicationElements(int count)
count - void removePublicationElementRecursively(TypedObject publicationElement) throws SecurityException
publicationElement - SecurityException - when user has no privileges to remove any of subelementsComponent getNavigablePath(TypedObject typedObject, String attribConstant, String nodeStyleClass, Component separator, EventListener pathClickListener, boolean useButton)
typedObject - to which path should be generated (expected: publication,chapter or page)attribConstant - under this constant typedObject of particular node will be storednodeStyleClass - style class of every node (button or link)separator - for nodes, default is label: " / "pathClickListener - listener to handle clicks on path nodesuseButton - if true button is used as path node, link otherwiseList<ChapterModel> getAllSuperChapters(ChapterModel chapter)
chapter - for which all super chapters are returnedObjectCollection getPrintcockpitClipboardCollection(UserModel user)
user - void addToClipboardCollection(ObjectCollection collection, List<TypedObject> elements, boolean isCut)
collection - where elements will be addedelements - to be addedisCut - - if false elements will be cloned when pasted, instead of movedvoid clearClipboardCollection(ObjectCollection collection)
collection - boolean isDoublePage(TypedObject currentPageObject)
PageType of given page is Double, false if SINGLECopyright © 2017 SAP SE. All Rights Reserved.