|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.documentlibrary.util.RawMetadataProcessorUtil
public class 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. The metadata extraction is
done with the help of com.liferay.portal.metadata.TikaRawMetadataProcessor
Constructor Summary | |
---|---|
RawMetadataProcessorUtil()
|
Method Summary | |
---|---|
static void |
cleanUp(FileEntry fileEntry)
|
static void |
cleanUp(FileVersion fileVersion)
|
static void |
generateMetadata(FileVersion fileVersion)
Generates the raw metadata associated with the file entry. |
static RawMetadataProcessor |
getRawMetadataProcessor()
|
static boolean |
isSupported(FileVersion fileVersion)
|
static boolean |
isSupported(String mimeType)
|
static void |
saveMetadata(FileVersion fileVersion)
Saves the raw metadata present in the file version. |
void |
setRawMetadataProcessor(RawMetadataProcessor rawMetadataProcessor)
Deprecated. As of 6.2.0 |
static void |
trigger(FileVersion fileVersion)
Launches extraction of raw metadata from the file version. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RawMetadataProcessorUtil()
Method Detail |
---|
public static void cleanUp(FileEntry fileEntry)
public static void cleanUp(FileVersion fileVersion)
public static void generateMetadata(FileVersion fileVersion) throws PortalException, SystemException
fileVersion
- the file version from which the raw metatada is to be
generated
PortalException
- if an error occurred in the metadata extraction
SystemException
- if a system exception occurredpublic static RawMetadataProcessor getRawMetadataProcessor()
public static boolean isSupported(FileVersion fileVersion)
public static boolean isSupported(String mimeType)
public static void saveMetadata(FileVersion fileVersion) throws PortalException, SystemException
The raw metadata present in the file version is extracted and persisted
using com.liferay.portal.metadata.TikaRawMetadataProcessor
.
fileVersion
- the file version from which the raw metatada is to be
extracted and persisted
PortalException
- if an error occurred in the metadata extraction
SystemException
- if a system exception occurredpublic static void trigger(FileVersion fileVersion)
The raw metadata extraction is done asynchronously.
fileVersion
- the latest file version from which the raw metadata is
to be generatedpublic void setRawMetadataProcessor(RawMetadataProcessor rawMetadataProcessor)
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |