public interface ClipboardActions
Modifier and Type | Method and Description |
---|---|
String |
clearWorkingList()
Called when the "delete all" button is clicked on the clipboard.
|
void |
copySelection(List<DocumentModel> docCopied)
Called when the drag and drop is launched in the clipboard fragment.
|
String |
exportAllBlobsFromWorkingListAsZip() |
String |
exportMainBlobFromWorkingListAsZip() |
String |
exportWorklistAsZip() |
String |
exportWorklistAsZip(List<DocumentModel> documents) |
String |
exportWorklistAsZip(List<DocumentModel> documents,
boolean exportAllBlobs) |
boolean |
factoryForIsCurrentWorkListEmpty() |
List<Action> |
getActionsForCurrentList()
Returns the list of available web actions for the currently selected DocumentList.
|
List<Action> |
getActionsForSelection()
Returns the list of available web actions for the currently selected Documents.
|
List<String> |
getAvailableLists()
Returns the list of available lists (ie: the lists from the CLIPBOARD Category).
|
String |
getCacheKey() |
boolean |
getCanCopy()
Checks if there are selected items that can be copied into the current worklist.
|
boolean |
getCanEditListDocs(String listName)
Checks if documents in the specified list are editable so the bulk editing action can be invoked later.
|
boolean |
getCanEditSelectedDocs()
Checks for documents bulk editing action.
|
boolean |
getCanMoveFromClipboardInside(DocumentModel document)
Checks if the documents from the clipboard can be moved into the given document
|
boolean |
getCanMoveInside(String listName,
DocumentModel document)
Checks if the documents in a given worklist can be moved into the given document
|
boolean |
getCanMoveWorkingList()
Checks if there are documents in current worklist can be moved into the current folder.
|
boolean |
getCanPaste(String listName)
Checks if the content of a given workList can be pasted.
|
boolean |
getCanPasteFromClipboard()
Shortcut for getCanPaste on the clipboard.
|
boolean |
getCanPasteFromClipboardInside(DocumentModel document) |
boolean |
getCanPasteInside(String listName,
DocumentModel document) |
boolean |
getCanPasteWorkList()
Shortcut for getCanPaste on the currently selected workList.
|
List<DocumentModel> |
getCurrentSelectedList()
Retries contents of current WorkList.
|
String |
getCurrentSelectedListName()
Returns the name of the current selected WorkList.
|
String |
getCurrentSelectedListTitle() |
List<DocumentsListDescriptor> |
getDescriptorsForAvailableLists()
Returns the list of Descriptors for available lists.
|
boolean |
isCacheEnabled() |
boolean |
isCacheEnabledForSelection() |
boolean |
isInitialized() |
boolean |
isWorkListEmpty()
Checks if the currently selected WorkList is empty.
|
String |
moveClipboardInside(String docId) |
String |
moveWorkingList()
Called when the "move all" button is clicked on the clipboard/selection
|
String |
pasteClipboard() |
String |
pasteClipboardInside(String docId) |
String |
pasteDocumentList(List<DocumentModel> docPaste)
Called when the drag and drop is launched in the body fragment.
|
String |
pasteDocumentList(String listName)
Pastes the content of the list listName into the current context document.
|
String |
pasteDocumentListInside(List<DocumentModel> docPaste,
String docId) |
String |
pasteDocumentListInside(String listName,
String docId) |
String |
pasteWorkingList()
Called when the "paste all" button is clicked on the clipboard.
|
void |
putInClipboard(String docId) |
void |
putSelectionInClipboard() |
void |
putSelectionInDefaultWorkList() |
void |
putSelectionInWorkList()
Copies the lists of selected documents into the current WorkList.
|
void |
putSelectionInWorkList(Boolean forceAppend) |
void |
putSelectionInWorkList(List<DocumentModel> docsList)
Copies docsList into the current WorkList.
|
void |
putSelectionInWorkList(List<DocumentModel> docsList,
Boolean forceAppend) |
void |
releaseClipboardableDocuments() |
String |
removeWorkListItem(DocumentRef ref)
Called when the delete button is clicked on the clipboard.
|
void |
selectList() |
void |
setCurrentSelectedList(String listId)
Sets the current selected WorkList.
|
void copySelection(List<DocumentModel> docCopied)
The selection is added to the clipboard and to the WorkingList.
docCopied
- the list of documents we want to copyString removeWorkListItem(DocumentRef ref)
String clearWorkingList()
String pasteWorkingList()
String moveWorkingList()
String pasteDocumentList(List<DocumentModel> docPaste)
docPaste
- the list of doc we want to pasteString pasteDocumentListInside(List<DocumentModel> docPaste, String docId)
String pasteDocumentList(String listName)
String pasteDocumentListInside(String listName, String docId)
String pasteClipboard()
String pasteClipboardInside(String docId)
String moveClipboardInside(String docId)
String exportWorklistAsZip()
String exportAllBlobsFromWorkingListAsZip()
String exportMainBlobFromWorkingListAsZip()
String exportWorklistAsZip(List<DocumentModel> documents)
String exportWorklistAsZip(List<DocumentModel> documents, boolean exportAllBlobs)
void releaseClipboardableDocuments()
boolean isInitialized()
boolean isWorkListEmpty()
boolean getCanPasteWorkList()
boolean getCanPasteFromClipboard()
boolean getCanPasteFromClipboardInside(DocumentModel document)
boolean getCanMoveFromClipboardInside(DocumentModel document)
boolean getCanPaste(String listName)
- checks if the list is empty
- checks if the user has the needed rights in the current context
boolean getCanPasteInside(String listName, DocumentModel document)
boolean getCanCopy()
boolean getCanMoveWorkingList()
boolean getCanMoveInside(String listName, DocumentModel document)
void putSelectionInWorkList(List<DocumentModel> docsList)
void putSelectionInWorkList(List<DocumentModel> docsList, Boolean forceAppend)
void putSelectionInWorkList()
void putSelectionInWorkList(Boolean forceAppend)
void putSelectionInClipboard()
void putSelectionInDefaultWorkList()
void putInClipboard(String docId)
List<DocumentModel> getCurrentSelectedList()
String getCurrentSelectedListName()
String getCurrentSelectedListTitle()
void setCurrentSelectedList(String listId)
List<String> getAvailableLists()
List<DocumentsListDescriptor> getDescriptorsForAvailableLists()
List<Action> getActionsForCurrentList()
List<Action> getActionsForSelection()
void selectList()
boolean getCanEditSelectedDocs()
true
if the current selected docs (from clipboard) are editable by the current userboolean getCanEditListDocs(String listName)
true
if the docs from the specified working list are editable by the current userboolean factoryForIsCurrentWorkListEmpty()
boolean isCacheEnabled()
String getCacheKey()
boolean isCacheEnabledForSelection()
Copyright © 2018 Nuxeo. All rights reserved.