|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.ecm.webapp.base.InputController
org.nuxeo.ecm.webapp.clipboard.ClipboardActionsBean
@Name(value="clipboardActions") @Scope(value=SESSION) public class ClipboardActionsBean
This is the action listener behind the copy/paste template that knows how to copy/paste the selected user data to the target action listener, and also create/remove the corresponding objects into the backend.
| Field Summary | |
|---|---|
static String |
DELETED_LIFECYCLE_STATE
Deprecated. use LifeCycleConstants.DELETED_STATE |
| Constructor Summary | |
|---|---|
ClipboardActionsBean()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.nuxeo.ecm.webapp.base.InputController |
|---|
computeOutcome, getAdministrator, logDocumentWithName, logDocumentWithTitle, removeDocumentFromList |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Deprecated public static final String DELETED_LIFECYCLE_STATE
LifeCycleConstants.DELETED_STATE| Constructor Detail |
|---|
public ClipboardActionsBean()
| Method Detail |
|---|
public void releaseClipboardableDocuments()
releaseClipboardableDocuments in interface ClipboardActionspublic boolean isInitialized()
isInitialized in interface ClipboardActionspublic void putSelectionInWorkList(Boolean forceAppend)
putSelectionInWorkList in interface ClipboardActionspublic void putSelectionInWorkList()
ClipboardActions
putSelectionInWorkList 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)
ClipboardActions
putSelectionInWorkList in interface ClipboardActions
public 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 copy
public String removeWorkListItem(DocumentRef ref)
throws ClientException
ClipboardActions
removeWorkListItem in interface ClipboardActionsClientExceptionpublic String clearWorkingList()
ClipboardActions
clearWorkingList in interface ClipboardActions
public String pasteDocumentList(String listName)
throws ClientException
ClipboardActions
pasteDocumentList in interface ClipboardActionsClientException
public String pasteDocumentListInside(String listName,
String docId)
throws ClientException
pasteDocumentListInside in interface ClipboardActionsClientException
public String pasteDocumentList(List<DocumentModel> docPaste)
throws ClientException
ClipboardActions
pasteDocumentList in interface ClipboardActionsdocPaste - the list of doc we want to paste
ClientException
public String pasteDocumentListInside(List<DocumentModel> docPaste,
String docId)
throws ClientException
pasteDocumentListInside in interface ClipboardActionsClientException
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
ClientExceptionpublic String moveWorkingList()
ClipboardActions
moveWorkingList in interface ClipboardActionspublic String pasteWorkingList()
ClipboardActions
pasteWorkingList 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()
ClipboardActions
isWorkListEmpty in interface ClipboardActions
public String exportWorklistAsZip()
throws ClientException
exportWorklistAsZip in interface ClipboardActionsClientException
public String exportAllBlobsFromWorkingListAsZip()
throws ClientException
exportAllBlobsFromWorkingListAsZip in interface ClipboardActionsClientException
public String exportMainBlobFromWorkingListAsZip()
throws ClientException
exportMainBlobFromWorkingListAsZip in interface ClipboardActionsClientException
public String exportWorklistAsZip(List<DocumentModel> documents)
throws ClientException
exportWorklistAsZip in interface ClipboardActionsClientException
public String exportWorklistAsZip(DocumentModel document)
throws ClientException
ClientExceptionpublic 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 ClipboardActionsClientException
public boolean getCanPasteInside(String listName,
DocumentModel document)
throws ClientException
getCanPasteInside in interface ClipboardActionsClientException
public boolean getCanMoveInside(String listName,
DocumentModel document)
throws ClientException
getCanMoveInside in interface ClipboardActionsClientException
public boolean getCanMove(String listName)
throws ClientException
ClientException
public boolean getCanPasteWorkList()
throws ClientException
ClipboardActions
getCanPasteWorkList in interface ClipboardActionsClientException
public boolean getCanMoveWorkingList()
throws ClientException
ClipboardActions
getCanMoveWorkingList in interface ClipboardActionsClientException
public boolean getCanPasteFromClipboard()
throws ClientException
ClipboardActions
getCanPasteFromClipboard in interface ClipboardActionsClientException
public boolean getCanPasteFromClipboardInside(DocumentModel document)
throws ClientException
getCanPasteFromClipboardInside in interface ClipboardActionsClientException
public boolean getCanMoveFromClipboardInside(DocumentModel document)
throws ClientException
ClipboardActions
getCanMoveFromClipboardInside in interface ClipboardActionsClientExceptionpublic void setCurrentSelectedList(String listId)
ClipboardActions
setCurrentSelectedList in interface ClipboardActionspublic void selectList()
selectList in interface ClipboardActionspublic List<DocumentModel> getCurrentSelectedList()
ClipboardActions
getCurrentSelectedList in interface ClipboardActionspublic String getCurrentSelectedListName()
ClipboardActions
getCurrentSelectedListName in interface ClipboardActionspublic String getCurrentSelectedListTitle()
getCurrentSelectedListTitle in interface ClipboardActionspublic List<String> getAvailableLists()
ClipboardActions
getAvailableLists in interface ClipboardActionspublic List<DocumentsListDescriptor> getDescriptorsForAvailableLists()
ClipboardActions
getDescriptorsForAvailableLists in interface ClipboardActionspublic List<Action> getActionsForCurrentList()
ClipboardActions
getActionsForCurrentList in interface ClipboardActionspublic List<Action> getActionsForSelection()
ClipboardActions
getActionsForSelection in interface ClipboardActions
public boolean getCanEditSelectedDocs()
throws ClientException
ClipboardActions
getCanEditSelectedDocs in interface ClipboardActionstrue if the current selected docs (from clipboard) are editable by
the current user
ClientException
@Deprecated
public boolean getCanEditListDocs(String listName)
throws ClientException
ClipboardActions
getCanEditListDocs in interface ClipboardActionstrue if the docs from the specified working list
are editable by the current user
ClientExceptionpublic boolean isCacheEnabled()
isCacheEnabled in interface ClipboardActionspublic String getCacheKey()
getCacheKey in interface ClipboardActionspublic boolean isCacheEnabledForSelection()
isCacheEnabledForSelection in interface ClipboardActions
public String exportWorklistAsZip(List<DocumentModel> documents,
boolean exportAllBlobs)
throws ClientException
exportWorklistAsZip in interface ClipboardActionsClientException
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||