public class CopyPasteDocsUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
clearClipboard(java.lang.String docTypeName)
Clears clipboard of the provided doc type,
or clears all document clipboard if parameter is null.
|
static java.util.List<Document> |
getClipboardDocuments(java.lang.String typeName)
Returns the content of the clipboard as a list of
documents or null if clipboard is empty or does not
contain documents of the specified type
|
static java.util.List<java.io.File> |
getClipboardFiles(java.lang.String typeName)
Gets all if parameter is null
|
static java.lang.String |
getLastMessage(java.lang.Throwable ex) |
static void |
saveToClipboard(java.util.List<Document> docs)
Stores doc list to their clipboard
to clipboard
|
public static java.util.List<java.io.File> getClipboardFiles(java.lang.String typeName)
public static void clearClipboard(java.lang.String docTypeName) throws java.io.IOException
docTypeName
- java.io.IOException
public static java.util.List<Document> getClipboardDocuments(java.lang.String typeName) throws java.io.IOException, PersistenceException
PersistenceException
java.io.IOException
public static void saveToClipboard(java.util.List<Document> docs) throws java.io.IOException, PersistenceException
st
- PersistenceException
java.io.IOException
public static java.lang.String getLastMessage(java.lang.Throwable ex)