Class RawMetadataProcessorUtil
Object
com.liferay.document.library.kernel.processor.RawMetadataProcessorUtil
Document library processor responsible for the generation of raw metadata
associated with all of the the files stored in the document library.
This processor automatically and assynchronously extracts the metadata from all of the files stored in the document library.
- Author:
- Alexander Chow, Mika Koivisto, Miguel Pastor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
cleanUp
(FileVersion fileVersion) static void
generateMetadata
(FileVersion fileVersion) Generates the raw metadata associated with the file entry.static RawMetadataProcessor
static boolean
isSupported
(FileVersion fileVersion) static boolean
isSupported
(String mimeType) static void
saveMetadata
(FileVersion fileVersion) Saves the raw metadata present in the file version.static void
trigger
(FileVersion fileVersion) Launches extraction of raw metadata from the file version.
-
Constructor Details
-
RawMetadataProcessorUtil
public RawMetadataProcessorUtil()
-
-
Method Details
-
cleanUp
-
cleanUp
-
generateMetadata
Generates the raw metadata associated with the file entry.- Parameters:
fileVersion
- the file version from which the raw metatada is to be generated- Throws:
PortalException
-
getRawMetadataProcessor
-
isSupported
-
isSupported
-
saveMetadata
Saves the raw metadata present in the file version.- Parameters:
fileVersion
- the file version from which the raw metatada is to be extracted and persisted- Throws:
PortalException
-
trigger
Launches extraction of raw metadata from the file version.The raw metadata extraction is done asynchronously.
- Parameters:
fileVersion
- the latest file version from which the raw metadata is to be generated
-