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, docType, enabled, fileManagerService, filters, name, order, patterns, SKIP_UPDATE_AUDIT_LOGGING
Constructor and Description |
---|
AudioImporter() |
Modifier and Type | Method and Description |
---|---|
DocumentModel |
createOrUpdate(FileImporterContext context)
Returns a created or updated document based on the given
context . |
checkIn, checkInAfterAdd, compareTo, create, createDocument, doSecurityCheck, doSecurityCheck, getBlob, getDefaultDocType, getDocType, getDocType, getFileManagerService, getFilters, getName, getNearestContainerPath, getOrder, isEnabled, isOneToMany, isOverwriteByTitle, matches, setDocType, setEnabled, setFileManagerService, setFilters, setName, setOrder, skipCheckInForBlob, updateDocument, updateDocumentIfPossible
public static final String AUDIO_TYPE
public AudioImporter()
public DocumentModel createOrUpdate(FileImporterContext context) throws IOException
FileImporter
context
.createOrUpdate
in interface FileImporter
createOrUpdate
in class AbstractFileImporter
IOException
FileImporterContext
Copyright © 2019 Nuxeo. All rights reserved.