@Name(value="clipboardActions") @Scope(value=SESSION) public class ClipboardActionsBean extends InputController implements ClipboardActions, Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
DELETED_LIFECYCLE_STATE
Deprecated.
|
| Constructor and Description |
|---|
ClipboardActionsBean() |
| Modifier and Type | Method and Description |
|---|---|
String |
clearWorkingList()
Called when the "delete all" button is clicked on the clipboard.
|
void |
copySelection(List<DocumentModel> copiedDocs)
Deprecated.
|
String |
exportAllBlobsFromWorkingListAsZip() |
String |
exportMainBlobFromWorkingListAsZip() |
String |
exportWorklistAsZip() |
String |
exportWorklistAsZip(DocumentModel document) |
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 copy action is available in the context of the current
Document.
|
boolean |
getCanEditListDocs(String listName)
Deprecated.
|
boolean |
getCanEditSelectedDocs()
Checks for documents bulk editing action.
|
boolean |
getCanMove(String listName)
Checks if the Move action is available in the context of the current
Document.
|
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 Move action is available in the context of the document
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 Paste action is available in the context of the current
Document.
|
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 |
moveDocumentList(String listName) |
String |
moveDocumentList(String listName,
String docId) |
List<DocumentModel> |
moveDocumentsToNewParent(DocumentModel destFolder,
List<DocumentModel> docs) |
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.
|
computeOutcome, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromList@Deprecated public static final String DELETED_LIFECYCLE_STATE
LifeCycleConstants.DELETED_STATEpublic void releaseClipboardableDocuments()
releaseClipboardableDocuments in interface ClipboardActionspublic boolean isInitialized()
isInitialized in interface ClipboardActionspublic void putSelectionInWorkList(Boolean forceAppend)
putSelectionInWorkList in interface ClipboardActionspublic void putSelectionInWorkList()
ClipboardActionsputSelectionInWorkList in interface ClipboardActionspublic void putSelectionInDefaultWorkList()
putSelectionInDefaultWorkList in interface ClipboardActions@WebRemote public void putInClipboard(String docId) throws ClientException
putInClipboard in interface ClipboardActionsClientExceptionpublic void putSelectionInClipboard()
putSelectionInClipboard in interface ClipboardActionspublic void putSelectionInWorkList(List<DocumentModel> docsList)
ClipboardActionsputSelectionInWorkList in interface ClipboardActionspublic void putSelectionInWorkList(List<DocumentModel> docsList, Boolean forceAppend)
putSelectionInWorkList in interface ClipboardActions@Deprecated public void copySelection(List<DocumentModel> copiedDocs)
ClipboardActionsThe selection is added to the clipboard and to the WorkingList.
copySelection in interface ClipboardActionscopiedDocs - the list of documents we want to copypublic String removeWorkListItem(DocumentRef ref) throws ClientException
ClipboardActionsremoveWorkListItem in interface ClipboardActionsClientExceptionpublic String clearWorkingList()
ClipboardActionsclearWorkingList in interface ClipboardActionspublic String pasteDocumentList(String listName) throws ClientException
ClipboardActionspasteDocumentList in interface ClipboardActionsClientExceptionpublic String pasteDocumentListInside(String listName, String docId) throws ClientException
pasteDocumentListInside in interface ClipboardActionsClientExceptionpublic String pasteDocumentList(List<DocumentModel> docPaste) throws ClientException
ClipboardActionspasteDocumentList in interface ClipboardActionsdocPaste - the list of doc we want to pasteClientExceptionpublic String pasteDocumentListInside(List<DocumentModel> docPaste, String docId) throws ClientException
pasteDocumentListInside in interface ClipboardActionsClientExceptionpublic List<DocumentModel> moveDocumentsToNewParent(DocumentModel destFolder, List<DocumentModel> docs) throws ClientException
ClientExceptionpublic String moveDocumentList(String listName, String docId) throws ClientException
ClientExceptionpublic String moveDocumentList(String listName) throws ClientException
ClientExceptionpublic String moveWorkingList()
ClipboardActionsmoveWorkingList in interface ClipboardActionspublic String pasteWorkingList()
ClipboardActionspasteWorkingList in interface ClipboardActionspublic String pasteClipboard()
pasteClipboard in interface ClipboardActions@WebRemote public String pasteClipboardInside(String docId) throws ClientException
pasteClipboardInside in interface ClipboardActionsClientException@WebRemote public String moveClipboardInside(String docId) throws ClientException
moveClipboardInside in interface ClipboardActionsClientException@Factory(value="isCurrentWorkListEmpty", scope=EVENT) public boolean factoryForIsCurrentWorkListEmpty()
factoryForIsCurrentWorkListEmpty in interface ClipboardActionspublic boolean isWorkListEmpty()
ClipboardActionsisWorkListEmpty in interface ClipboardActionspublic String exportWorklistAsZip() throws ClientException
exportWorklistAsZip in interface ClipboardActionsClientExceptionpublic String exportAllBlobsFromWorkingListAsZip() throws ClientException
exportAllBlobsFromWorkingListAsZip in interface ClipboardActionsClientExceptionpublic String exportMainBlobFromWorkingListAsZip() throws ClientException
exportMainBlobFromWorkingListAsZip in interface ClipboardActionsClientExceptionpublic String exportWorklistAsZip(List<DocumentModel> documents) throws ClientException
exportWorklistAsZip in interface ClipboardActionsClientExceptionpublic String exportWorklistAsZip(DocumentModel document) throws ClientException
ClientExceptionpublic boolean getCanCopy()
Condition: the list of selected documents is not empty.
getCanCopy in interface ClipboardActionspublic boolean getCanPaste(String listName) throws ClientException
getCanPaste in interface ClipboardActionsClientExceptionpublic boolean getCanPasteInside(String listName, DocumentModel document) throws ClientException
getCanPasteInside in interface ClipboardActionsClientExceptionpublic boolean getCanMoveInside(String listName, DocumentModel document) throws ClientException
getCanMoveInside in interface ClipboardActionsClientExceptionpublic boolean getCanMove(String listName) throws ClientException
ClientExceptionpublic boolean getCanPasteWorkList()
throws ClientException
ClipboardActionsgetCanPasteWorkList in interface ClipboardActionsClientExceptionpublic boolean getCanMoveWorkingList()
throws ClientException
ClipboardActionsgetCanMoveWorkingList in interface ClipboardActionsClientExceptionpublic boolean getCanPasteFromClipboard()
throws ClientException
ClipboardActionsgetCanPasteFromClipboard in interface ClipboardActionsClientExceptionpublic boolean getCanPasteFromClipboardInside(DocumentModel document) throws ClientException
getCanPasteFromClipboardInside in interface ClipboardActionsClientExceptionpublic boolean getCanMoveFromClipboardInside(DocumentModel document) throws ClientException
ClipboardActionsgetCanMoveFromClipboardInside in interface ClipboardActionsClientExceptionpublic void setCurrentSelectedList(String listId)
ClipboardActionssetCurrentSelectedList in interface ClipboardActionspublic void selectList()
selectList in interface ClipboardActionspublic List<DocumentModel> getCurrentSelectedList()
ClipboardActionsgetCurrentSelectedList in interface ClipboardActionspublic String getCurrentSelectedListName()
ClipboardActionsgetCurrentSelectedListName in interface ClipboardActionspublic String getCurrentSelectedListTitle()
getCurrentSelectedListTitle in interface ClipboardActionspublic List<String> getAvailableLists()
ClipboardActionsgetAvailableLists in interface ClipboardActionspublic List<DocumentsListDescriptor> getDescriptorsForAvailableLists()
ClipboardActionsgetDescriptorsForAvailableLists in interface ClipboardActionspublic List<Action> getActionsForCurrentList()
ClipboardActionsgetActionsForCurrentList in interface ClipboardActionspublic List<Action> getActionsForSelection()
ClipboardActionsgetActionsForSelection in interface ClipboardActionspublic boolean getCanEditSelectedDocs()
throws ClientException
ClipboardActionsgetCanEditSelectedDocs in interface ClipboardActionstrue if the current selected docs (from clipboard) are editable by
the current userClientException@Deprecated public boolean getCanEditListDocs(String listName) throws ClientException
ClipboardActionsgetCanEditListDocs in interface ClipboardActionstrue if the docs from the specified working list
are editable by the current userClientExceptionpublic boolean isCacheEnabled()
isCacheEnabled in interface ClipboardActionspublic String getCacheKey()
getCacheKey in interface ClipboardActionspublic boolean isCacheEnabledForSelection()
isCacheEnabledForSelection in interface ClipboardActionspublic String exportWorklistAsZip(List<DocumentModel> documents, boolean exportAllBlobs) throws ClientException
exportWorklistAsZip in interface ClipboardActionsClientExceptionCopyright © 2013 Nuxeo SA. All Rights Reserved.