|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.platform.filemanager.utils.FileManagerUtils
public final class FileManagerUtils
Method Summary | |
---|---|
static java.lang.String |
fetchFileName(java.io.File file)
Returns the fileName of a file. |
static java.lang.String |
fetchFileName(java.lang.String fullName)
Returns the fileName of an uploaded file. |
static java.lang.String |
fetchTitle(java.lang.String filename)
Returns the title. |
static byte[] |
getBytesFromFile(java.io.File file)
Returns the contents of the file in a byte array. |
static DocumentModel |
getExistingDocByFileName(CoreSession documentManager,
java.lang.String path,
java.lang.String filename)
Looks if an existing Document with the same filename exists. |
static DocumentModel |
getExistingDocByTitle(CoreSession documentManager,
java.lang.String path,
java.lang.String title)
Looks if an existing Document with the same title exists. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static byte[] getBytesFromFile(java.io.File file) throws java.io.IOException
file
-
java.io.IOException
public static java.lang.String fetchFileName(java.io.File file) throws java.net.MalformedURLException
file
-
java.net.MalformedURLException
public static java.lang.String fetchFileName(java.lang.String fullName)
fullName
- the full name that we need to parse
public static java.lang.String fetchTitle(java.lang.String filename)
filename
- the file name
public static DocumentModel getExistingDocByFileName(CoreSession documentManager, java.lang.String path, java.lang.String filename) throws ClientException
ClientException
public static DocumentModel getExistingDocByTitle(CoreSession documentManager, java.lang.String path, java.lang.String title) throws ClientException
ClientException
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |