public class AudioImporter extends AbstractFileImporter
If an existing document with the same title is found, it will overwrite it and increment the version number if the overwrite flag is set to true; Otherwise, it will generate a new title and create a new Document of type Audio with that title.
Modifier and Type | Field and Description |
---|---|
static String |
AUDIO_TYPE |
DISABLE_AUDIT_LOGGER, SKIP_UPDATE_AUDIT_LOGGING
Constructor and Description |
---|
AudioImporter() |
Modifier and Type | Method and Description |
---|---|
DocumentModel |
create(CoreSession documentManager,
Blob content,
String path,
boolean overwrite,
String fullname,
TypeManager typeService)
Creates the document.
|
compareTo, createDocument, getBlob, getDefaultDocType, getDocType, getDocType, getFileManagerService, getFilters, getName, getOrder, isEnabled, isOverwriteByTitle, matches, setDocType, setEnabled, setFileManagerService, setFilters, setName, setOrder, updateDocument
public static final String AUDIO_TYPE
public DocumentModel create(CoreSession documentManager, Blob content, String path, boolean overwrite, String fullname, TypeManager typeService) throws ClientException, IOException
FileImporter
create
in interface FileImporter
create
in class AbstractFileImporter
documentManager
- the manager used to create the Documentcontent
- the content of the Filepath
- the path of current documentoverwrite
- a boolean deciding whether to create or update if we
find a document with the same fileNamefullname
- the filename of the FileClientException
IOException
Copyright © 2013 Nuxeo SA. All Rights Reserved.