public abstract class AbstractPublicationCenterViewController extends AbstractKeyEnabledController implements GridAwareModel
| Constructor and Description |
|---|
AbstractPublicationCenterViewController() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkChangePermission(Object element) |
protected boolean |
checkCopyPermission(Object copiedData) |
protected boolean |
checkCreatePermissionRecursive(ItemModel item) |
protected void |
checkDefaultTemplates(Collection placementsOrPreviewPages)
Iterates over collection searching for Placements,Model for each found PlacementModelwithout placeholder template - displays
dialog with options for user
|
protected boolean |
checkDeletePermissionRecursive(ItemModel item) |
protected boolean |
checkMovePermission(Object movedData) |
protected boolean |
checkPermissionRecursive(ItemModel item,
String userright) |
protected abstract List |
createElementList() |
protected abstract void |
delete(List elements) |
PrintcockpitUIAccessRightService |
getAccessRightService() |
TypeService |
getCockpitTypeService() |
protected List |
getContentToCopy()
Provides the content list to be copied or moved to clipboard.
|
LayoutService |
getLayoutService() |
protected DefaultListModel |
getListModel() |
protected int |
getMaxSelectionSize() |
ModelService |
getModelService() |
protected Object |
getOpened() |
PrintcockpitService |
getPrintcockpitService() |
PublicationModel |
getPublication() |
PublicationService |
getPublicationService() |
ListSelectionModel |
getSelectionModel() |
SourcePublicationService |
getSourcePublicationService() |
SystemService |
getSystemService() |
protected Object |
insert(ChapterModel parent,
ChapterModel newChild,
int position,
int action) |
protected Object |
insert(ChapterModel parent,
PageModel newChild,
int position,
int action) |
protected Object |
insert(Object parent,
Object newChild,
int position,
int action) |
protected Object |
insert(PageModel parent,
ItemModel newChild,
int position,
int action) |
protected Object |
insert(PageModel parent,
PlacementModel newChild,
int position,
int action) |
protected Object |
insert(PlacementModel parent,
ItemModel item,
int position,
int action) |
protected Object |
insert(PublicationModel publication,
ChapterModel chapter,
int position,
int action) |
protected Object |
insert(PublicationModel parent,
PageModel newChild,
int position,
int action) |
protected boolean |
isElementWritable(Object target)
Checks if given element is writable for current session user
|
protected boolean |
isPermissionDenied(Object target,
Object data,
int action) |
protected void |
leftPressed() |
protected void |
otherKeyPressed(KeyBinding kb,
GlobalKeyEvent evt)
Called for any key binding but COPY, PASTE, MOVE or DELETE.
|
protected void |
performDelete(List content)
checks permission on every element and passes elements further
|
protected void |
performPaste(List content,
int action)
Called upon paste key binding fired
|
void |
reset() |
void |
reset(Object openedElement) |
void |
resetOpenedElement(Object newOne) |
protected void |
rightPressed() |
void |
setAccessRightService(PrintcockpitUIAccessRightService accessRightService) |
void |
setCockpitTypeService(TypeService cockpitTypeService) |
protected abstract void |
setDefaultTemplate(PlacementModel pl) |
void |
setLayoutService(LayoutService layoutService) |
void |
setModelService(ModelService modelService) |
void |
setOpenedElement(Object newOne) |
void |
setPrintcockpitService(PrintcockpitService printcockpitService) |
void |
setPrintcockpitSystemService(SystemService systemService) |
protected void |
setPublication(PublicationModel publication) |
void |
setPublicationService(PublicationService publictionService) |
void |
setSelectionModel(ListSelectionModel selectionModel) |
void |
setSourcePublicationService(SourcePublicationService sourcePublicationService) |
copyPressed, copyToClipboard, deletePressed, focusChanged, getClipboard, keyPressed, movePressed, moveToClipboard, pastePressed, setClipboard, setFocusableComponentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetGridTypepublic AbstractPublicationCenterViewController()
protected void setPublication(PublicationModel publication)
public PublicationModel getPublication()
protected DefaultListModel getListModel()
public ListSelectionModel getSelectionModel()
public void setSelectionModel(ListSelectionModel selectionModel)
public PublicationService getPublicationService()
public void setPublicationService(PublicationService publictionService)
public LayoutService getLayoutService()
public void setLayoutService(LayoutService layoutService)
public void setOpenedElement(Object newOne)
public void reset()
public void reset(Object openedElement)
public void resetOpenedElement(Object newOne)
protected Object getOpened()
protected abstract List createElementList()
protected Object insert(PublicationModel publication, ChapterModel chapter, int position, int action)
protected Object insert(PublicationModel parent, PageModel newChild, int position, int action)
protected Object insert(ChapterModel parent, ChapterModel newChild, int position, int action)
protected Object insert(ChapterModel parent, PageModel newChild, int position, int action)
protected Object insert(PageModel parent, PlacementModel newChild, int position, int action)
protected Object insert(PlacementModel parent, ItemModel item, int position, int action)
protected abstract void setDefaultTemplate(PlacementModel pl)
protected void checkDefaultTemplates(Collection placementsOrPreviewPages)
protected abstract void delete(List elements)
protected int getMaxSelectionSize()
protected void leftPressed()
protected void rightPressed()
protected void otherKeyPressed(KeyBinding kb, GlobalKeyEvent evt)
AbstractKeyEnabledControllerotherKeyPressed in class AbstractKeyEnabledControllerkb - the key binding we've got a event forevt - the key eventprotected void performDelete(List content)
performDelete in class AbstractKeyEnabledControllercontent - the content from AbstractKeyEnabledController.getContentToCopy()protected List getContentToCopy()
AbstractKeyEnabledControllergetContentToCopy in class AbstractKeyEnabledControllerprotected void performPaste(List content, int action)
AbstractKeyEnabledControllerperformPaste in class AbstractKeyEnabledControllercontent - the content from AbstractKeyEnabledController.getContentToCopy()action - the action code from the actual key eventprotected boolean checkChangePermission(Object element)
protected boolean checkCreatePermissionRecursive(ItemModel item)
protected boolean checkDeletePermissionRecursive(ItemModel item)
protected boolean checkPermissionRecursive(ItemModel item, String userright)
protected boolean checkCopyPermission(Object copiedData)
protected boolean checkMovePermission(Object movedData)
protected boolean isElementWritable(Object target)
target - public void setPrintcockpitSystemService(SystemService systemService)
public SystemService getSystemService()
public void setSourcePublicationService(SourcePublicationService sourcePublicationService)
public SourcePublicationService getSourcePublicationService()
public PrintcockpitService getPrintcockpitService()
public void setPrintcockpitService(PrintcockpitService printcockpitService)
printcockpitService - the printcockpitService to setpublic TypeService getCockpitTypeService()
public void setCockpitTypeService(TypeService cockpitTypeService)
cockpitTypeService - the cockpitTypeService to setpublic ModelService getModelService()
public void setModelService(ModelService modelService)
modelService - the modelService to setpublic PrintcockpitUIAccessRightService getAccessRightService()
public void setAccessRightService(PrintcockpitUIAccessRightService accessRightService)
accessRightService - the accessRightService to setCopyright © 2017 SAP SE. All Rights Reserved.