@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.
|
boolean |
exists(DocumentRef ref) |
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_STATE
public void releaseClipboardableDocuments()
releaseClipboardableDocuments
in interface ClipboardActions
public boolean isInitialized()
isInitialized
in interface ClipboardActions
public void putSelectionInWorkList(Boolean forceAppend)
putSelectionInWorkList
in interface ClipboardActions
public void putSelectionInWorkList()
ClipboardActions
putSelectionInWorkList
in interface ClipboardActions
public void putSelectionInDefaultWorkList()
putSelectionInDefaultWorkList
in interface ClipboardActions
@WebRemote public void putInClipboard(String docId) throws ClientException
putInClipboard
in interface ClipboardActions
ClientException
public void putSelectionInClipboard()
putSelectionInClipboard
in interface ClipboardActions
public void putSelectionInWorkList(List<DocumentModel> docsList)
ClipboardActions
putSelectionInWorkList
in interface ClipboardActions
public void putSelectionInWorkList(List<DocumentModel> docsList, Boolean forceAppend)
putSelectionInWorkList
in interface ClipboardActions
@Deprecated public void copySelection(List<DocumentModel> copiedDocs)
ClipboardActions
The selection is added to the clipboard and to the WorkingList.
copySelection
in interface ClipboardActions
copiedDocs
- the list of documents we want to copypublic boolean exists(DocumentRef ref)
public String removeWorkListItem(DocumentRef ref) throws ClientException
ClipboardActions
removeWorkListItem
in interface ClipboardActions
ClientException
public String clearWorkingList()
ClipboardActions
clearWorkingList
in interface ClipboardActions
public String pasteDocumentList(String listName) throws ClientException
ClipboardActions
pasteDocumentList
in interface ClipboardActions
ClientException
public String pasteDocumentListInside(String listName, String docId) throws ClientException
pasteDocumentListInside
in interface ClipboardActions
ClientException
public String pasteDocumentList(List<DocumentModel> docPaste) throws ClientException
ClipboardActions
pasteDocumentList
in interface ClipboardActions
docPaste
- the list of doc we want to pasteClientException
public String pasteDocumentListInside(List<DocumentModel> docPaste, String docId) throws ClientException
pasteDocumentListInside
in interface ClipboardActions
ClientException
public List<DocumentModel> moveDocumentsToNewParent(DocumentModel destFolder, List<DocumentModel> docs) throws ClientException
ClientException
public String moveDocumentList(String listName, String docId) throws ClientException
ClientException
public String moveDocumentList(String listName) throws ClientException
ClientException
public String moveWorkingList()
ClipboardActions
moveWorkingList
in interface ClipboardActions
public String pasteWorkingList()
ClipboardActions
pasteWorkingList
in interface ClipboardActions
public String pasteClipboard()
pasteClipboard
in interface ClipboardActions
@WebRemote public String pasteClipboardInside(String docId) throws ClientException
pasteClipboardInside
in interface ClipboardActions
ClientException
@WebRemote public String moveClipboardInside(String docId) throws ClientException
moveClipboardInside
in interface ClipboardActions
ClientException
@Factory(value="isCurrentWorkListEmpty", scope=EVENT) public boolean factoryForIsCurrentWorkListEmpty()
factoryForIsCurrentWorkListEmpty
in interface ClipboardActions
public boolean isWorkListEmpty()
ClipboardActions
isWorkListEmpty
in interface ClipboardActions
public String exportWorklistAsZip() throws ClientException
exportWorklistAsZip
in interface ClipboardActions
ClientException
public String exportAllBlobsFromWorkingListAsZip() throws ClientException
exportAllBlobsFromWorkingListAsZip
in interface ClipboardActions
ClientException
public String exportMainBlobFromWorkingListAsZip() throws ClientException
exportMainBlobFromWorkingListAsZip
in interface ClipboardActions
ClientException
public String exportWorklistAsZip(List<DocumentModel> documents) throws ClientException
exportWorklistAsZip
in interface ClipboardActions
ClientException
public String exportWorklistAsZip(DocumentModel document) throws ClientException
ClientException
public boolean getCanCopy()
Condition: the list of selected documents is not empty.
getCanCopy
in interface ClipboardActions
public boolean getCanPaste(String listName) throws ClientException
getCanPaste
in interface ClipboardActions
ClientException
public boolean getCanPasteInside(String listName, DocumentModel document) throws ClientException
getCanPasteInside
in interface ClipboardActions
ClientException
public boolean getCanMoveInside(String listName, DocumentModel document) throws ClientException
getCanMoveInside
in interface ClipboardActions
ClientException
public boolean getCanMove(String listName) throws ClientException
ClientException
public boolean getCanPasteWorkList() throws ClientException
ClipboardActions
getCanPasteWorkList
in interface ClipboardActions
ClientException
public boolean getCanMoveWorkingList() throws ClientException
ClipboardActions
getCanMoveWorkingList
in interface ClipboardActions
ClientException
public boolean getCanPasteFromClipboard() throws ClientException
ClipboardActions
getCanPasteFromClipboard
in interface ClipboardActions
ClientException
public boolean getCanPasteFromClipboardInside(DocumentModel document) throws ClientException
getCanPasteFromClipboardInside
in interface ClipboardActions
ClientException
public boolean getCanMoveFromClipboardInside(DocumentModel document) throws ClientException
ClipboardActions
getCanMoveFromClipboardInside
in interface ClipboardActions
ClientException
public void setCurrentSelectedList(String listId)
ClipboardActions
setCurrentSelectedList
in interface ClipboardActions
public void selectList()
selectList
in interface ClipboardActions
public List<DocumentModel> getCurrentSelectedList()
ClipboardActions
getCurrentSelectedList
in interface ClipboardActions
public String getCurrentSelectedListName()
ClipboardActions
getCurrentSelectedListName
in interface ClipboardActions
public String getCurrentSelectedListTitle()
getCurrentSelectedListTitle
in interface ClipboardActions
public List<String> getAvailableLists()
ClipboardActions
getAvailableLists
in interface ClipboardActions
public List<DocumentsListDescriptor> getDescriptorsForAvailableLists()
ClipboardActions
getDescriptorsForAvailableLists
in interface ClipboardActions
public List<Action> getActionsForCurrentList()
ClipboardActions
getActionsForCurrentList
in interface ClipboardActions
public List<Action> getActionsForSelection()
ClipboardActions
getActionsForSelection
in interface ClipboardActions
public boolean getCanEditSelectedDocs() throws ClientException
ClipboardActions
getCanEditSelectedDocs
in interface ClipboardActions
true
if the current selected docs (from clipboard) are editable by the current userClientException
@Deprecated public boolean getCanEditListDocs(String listName) throws ClientException
ClipboardActions
getCanEditListDocs
in interface ClipboardActions
true
if the docs from the specified working list are editable by the current userClientException
public boolean isCacheEnabled()
isCacheEnabled
in interface ClipboardActions
public String getCacheKey()
getCacheKey
in interface ClipboardActions
public boolean isCacheEnabledForSelection()
isCacheEnabledForSelection
in interface ClipboardActions
public String exportWorklistAsZip(List<DocumentModel> documents, boolean exportAllBlobs) throws ClientException
exportWorklistAsZip
in interface ClipboardActions
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.