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
Fields inherited from class org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
DISABLE_AUDIT_LOGGER, docType, enabled, fileManagerService, filters, name, order, patterns, SKIP_UPDATE_AUDIT_LOGGING
-
Constructor Summary
-
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, create, createDocument, doSecurityCheck, doSecurityCheck, getBlob, getDefaultDocType, getDocType, getDocType, getFileManagerService, getFilters, getName, getNearestContainerPath, getOrder, isEnabled, isOneToMany, isOverwriteByTitle, matches, setDocType, setEnabled, setFileManagerService, setFilters, setName, setOrder, updateDocument, updateDocumentIfPossible
-
Field Details
-
AUDIO_TYPE
- See Also:
-
-
Constructor Details
-
AudioImporter
public AudioImporter()
-
-
Method Details
-
createOrUpdate
Description copied from interface:FileImporter
Returns a created or updated document based on the givencontext
.- Specified by:
createOrUpdate
in interfaceFileImporter
- Overrides:
createOrUpdate
in classAbstractFileImporter
- Throws:
IOException
- See Also:
-