Class VideoImporter
- java.lang.Object
-
- org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
-
- org.nuxeo.ecm.platform.video.importer.VideoImporter
-
- All Implemented Interfaces:
Serializable,Comparable<FileImporter>,FileImporter
public class VideoImporter extends AbstractFileImporter
This class will create a Document of type "Video" 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 Video with that title.
- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description VideoImporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultDocType()Default document type to use when the plugin XML configuration does not specify one.booleanisOverwriteByTitle()Whether document overwrite is detected by checking title or filename.voidupdateDocument(DocumentModel doc, Blob content)Updates the document (sets its properties).-
Methods inherited from class org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
checkAllowedSubtypes, checkIn, checkInAfterAdd, checkSecurity, compareTo, create, createDocument, createOrUpdate, doSecurityCheck, doSecurityCheck, getBlob, getDocType, getDocType, getFileManagerService, getFilters, getName, getNearestContainerPath, getOrder, isEnabled, isOneToMany, matches, setDocType, setEnabled, setFileManagerService, setFilters, setName, setOrder, skipCheckInForBlob, updateDocumentIfPossible
-
-
-
-
Method Detail
-
getDefaultDocType
public String getDefaultDocType()
Description copied from class:AbstractFileImporterDefault document type to use when the plugin XML configuration does not specify one.To implement when the default
AbstractFileImporter.createOrUpdate(FileImporterContext)method is used.- Overrides:
getDefaultDocTypein classAbstractFileImporter
-
isOverwriteByTitle
public boolean isOverwriteByTitle()
Description copied from class:AbstractFileImporterWhether document overwrite is detected by checking title or filename.To implement when the default
AbstractFileImporter.createOrUpdate(FileImporterContext)method is used.- Overrides:
isOverwriteByTitlein classAbstractFileImporter
-
updateDocument
public void updateDocument(DocumentModel doc, Blob content)
Description copied from class:AbstractFileImporterUpdates the document (sets its properties).Default implementation sets the content.
- Overrides:
updateDocumentin classAbstractFileImporter
-
-