|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.filemanager.service.FileManagerService
public class FileManagerService
FileManager registry service.
This is the component to request to perform transformations. See API.
| Field Summary | |
|---|---|
static String |
DEFAULT_FOLDER_TYPE_NAME
|
static String |
DEFAULT_TYPE_NAME
|
static ComponentName |
NAME
|
| Constructor Summary | |
|---|---|
FileManagerService()
|
|
| Method Summary | |
|---|---|
DocumentModel |
createDocumentFromBlob(CoreSession documentManager,
Blob input,
String path,
boolean overwrite,
String fullName)
Returns an initialized doc based on a given blob. |
DocumentModel |
createFolder(CoreSession documentManager,
String fullname,
String path)
Creates a Folder. |
DocumentModel |
defaultCreate(CoreSession documentManager,
Blob input,
String path,
boolean overwrite,
String fullname)
|
DocumentModel |
defaultCreate(CoreSession documentManager,
Blob input,
String path,
boolean overwrite,
String fullname,
String typeName)
|
DocumentModel |
defaultCreate(CoreSession documentManager,
Blob input,
String path,
boolean overwrite,
String fullname,
String typeName,
boolean checkAllowedSubTypes)
|
DocumentModel |
defaultCreateFolder(CoreSession documentManager,
String fullname,
String path)
|
DocumentModel |
defaultCreateFolder(CoreSession documentManager,
String fullname,
String path,
String containerTypeName,
boolean checkAllowedSubTypes)
|
Plugin |
getPluginByName(String name)
|
void |
registerExtension(Extension extension)
Registers the given extension. |
void |
unregisterExtension(Extension extension)
Unregisters the given extension. |
DocumentModel |
updateDocumentFromBlob(CoreSession documentManager,
Blob input,
String path,
String fullName)
Just applies the same actions as creation but does not changes the doc type. |
| Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
|---|
activate, deactivate, getAdapter, registerContribution, unregisterContribution |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ComponentName NAME
public static final String DEFAULT_TYPE_NAME
public static final String DEFAULT_FOLDER_TYPE_NAME
| Constructor Detail |
|---|
public FileManagerService()
| Method Detail |
|---|
public DocumentModel createFolder(CoreSession documentManager,
String fullname,
String path)
throws ClientException,
IOException
FileManager
createFolder in interface FileManagerfullname - teh full Name of the folderpath - the path were to create the folder
ClientException
IOException
public DocumentModel defaultCreateFolder(CoreSession documentManager,
String fullname,
String path)
throws ClientException
ClientException
public DocumentModel defaultCreateFolder(CoreSession documentManager,
String fullname,
String path,
String containerTypeName,
boolean checkAllowedSubTypes)
throws ClientException
ClientException
public DocumentModel createDocumentFromBlob(CoreSession documentManager,
Blob input,
String path,
boolean overwrite,
String fullName)
throws IOException,
ClientException
FileManager
createDocumentFromBlob in interface FileManagerinput - the blob containing the content and the mime/typepath - the path were to create the documentoverwrite - boolean how decide to overwrite or notfullName - the fullname that containes the filename
IOException
ClientException
public DocumentModel defaultCreate(CoreSession documentManager,
Blob input,
String path,
boolean overwrite,
String fullname,
String typeName)
throws IOException,
ClientException
IOException
ClientException
public DocumentModel defaultCreate(CoreSession documentManager,
Blob input,
String path,
boolean overwrite,
String fullname,
String typeName,
boolean checkAllowedSubTypes)
throws IOException,
ClientException
IOException
ClientException
public DocumentModel defaultCreate(CoreSession documentManager,
Blob input,
String path,
boolean overwrite,
String fullname)
throws IOException,
ClientException
IOException
ClientException
public DocumentModel updateDocumentFromBlob(CoreSession documentManager,
Blob input,
String path,
String fullName)
throws ClientException
FileManager
updateDocumentFromBlob in interface FileManagerinput - the blob containing the content and the mime/typepath - the path to the file to updatefullName - the fullname that containes the filename
ClientExceptionpublic Plugin getPluginByName(String name)
public void registerExtension(Extension extension)
throws Exception
Extensible
registerExtension in interface ExtensibleregisterExtension in class DefaultComponentextension - the extension to register
Exception - if any error occurspublic void unregisterExtension(Extension extension)
Extensible
unregisterExtension in interface ExtensibleunregisterExtension in class DefaultComponentextension - the extension to unregister
|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||