Class AudioImporter
java.lang.Object
org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
org.nuxeo.ecm.platform.audio.extension.AudioImporter
- All Implemented Interfaces:
Serializable,Comparable<FileImporter>,FileImporter
This class will create a Document of type "Audio" from the uploaded file, if the uploaded file matches any of the
mime types listed in the filemanager-plugins.xml file.
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.
- See Also:
-
Field Summary
FieldsFields inherited from class org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
DISABLE_AUDIT_LOGGER, docType, enabled, filters, name, order, patterns, SKIP_UPDATE_AUDIT_LOGGING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate(FileImporterContext context) Returns a created or updated document based on the givencontext.Methods inherited from class org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
checkAllowedSubtypes, checkSecurity, compareTo, createDocument, doSecurityCheck, doSecurityCheck, getBlob, getDefaultDocType, getDocType, getDocType, getFilters, getName, getNearestContainerPath, getOrder, isEnabled, isOneToMany, isOverwriteByTitle, matches, setDocType, setEnabled, setFilters, setName, setOrder, updateDocument, updateDocumentIfPossible
-
Field Details
-
AUDIO_TYPE
- See Also:
-
-
Constructor Details
-
AudioImporter
public AudioImporter()
-
-
Method Details
-
createOrUpdate
Description copied from interface:FileImporterReturns a created or updated document based on the givencontext.- Specified by:
createOrUpdatein interfaceFileImporter- Overrides:
createOrUpdatein classAbstractFileImporter- Throws:
IOException- See Also:
-