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) throws ClientException
ClientException
String clearWorkingList()
String pasteWorkingList()
String moveWorkingList()
String pasteDocumentList(List<DocumentModel> docPaste) throws ClientException
docPaste
- the list of doc we want to pasteClientException
String pasteDocumentListInside(List<DocumentModel> docPaste, String docId) throws ClientException
ClientException
String pasteDocumentList(String listName) throws ClientException
ClientException
String pasteDocumentListInside(String listName, String docId) throws ClientException
ClientException
String pasteClipboard()
String pasteClipboardInside(String docId) throws ClientException
ClientException
String moveClipboardInside(String docId) throws ClientException
ClientException
String exportWorklistAsZip() throws ClientException
ClientException
String exportAllBlobsFromWorkingListAsZip() throws ClientException
ClientException
String exportMainBlobFromWorkingListAsZip() throws ClientException
ClientException
String exportWorklistAsZip(List<DocumentModel> documents) throws ClientException
ClientException
String exportWorklistAsZip(List<DocumentModel> documents, boolean exportAllBlobs) throws ClientException
ClientException
void releaseClipboardableDocuments()
boolean isInitialized()
boolean isWorkListEmpty()
boolean getCanPasteWorkList() throws ClientException
ClientException
boolean getCanPasteFromClipboard() throws ClientException
ClientException
boolean getCanPasteFromClipboardInside(DocumentModel document) throws ClientException
ClientException
boolean getCanMoveFromClipboardInside(DocumentModel document) throws ClientException
ClientException
boolean getCanPaste(String listName) throws ClientException
- checks if the list is empty
- checks if the user has the needed rights in the current context
ClientException
boolean getCanPasteInside(String listName, DocumentModel document) throws ClientException
ClientException
boolean getCanCopy()
boolean getCanMoveWorkingList() throws ClientException
ClientException
boolean getCanMoveInside(String listName, DocumentModel document) throws ClientException
ClientException
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) throws ClientException
ClientException
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() throws ClientException
true
if the current selected docs (from clipboard) are editable by
the current userClientException
boolean getCanEditListDocs(String listName) throws ClientException
true
if the docs from the specified working list
are editable by the current userClientException
boolean factoryForIsCurrentWorkListEmpty()
boolean isCacheEnabled()
String getCacheKey()
boolean isCacheEnabledForSelection()
Copyright © 2013 Nuxeo SA. All Rights Reserved.