|
Liferay 6.1.20-ee-ga2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.documentlibrary.util.BaseDLProcessorImpl
com.liferay.portlet.documentlibrary.util.RawMetadataProcessorImpl
public class RawMetadataProcessorImpl
| Method Summary | |
|---|---|
void |
cleanUp(FileEntry fileEntry)
|
void |
cleanUp(FileVersion fileVersion)
|
void |
exportGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
Element fileEntryElement)
|
void |
generateMetadata(FileVersion fileVersion)
Generates the raw metadata associated with the file entry. |
static RawMetadataProcessorImpl |
getInstance()
|
void |
importGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
FileEntry importedFileEntry,
Element fileEntryElement)
|
boolean |
isSupported(FileVersion fileVersion)
|
boolean |
isSupported(String mimeType)
|
void |
saveMetadata(FileVersion fileVersion)
Saves the raw metadata present in the file version. |
void |
trigger(FileVersion fileVersion)
Launches extraction of raw metadata from the file version. |
| Methods inherited from class com.liferay.portlet.documentlibrary.util.BaseDLProcessorImpl |
|---|
isEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static RawMetadataProcessorImpl getInstance()
public void cleanUp(FileEntry fileEntry)
cleanUp in interface DLProcessorcleanUp in interface RawMetadataProcessorpublic void cleanUp(FileVersion fileVersion)
cleanUp in interface DLProcessorcleanUp in interface RawMetadataProcessor
public void exportGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
Element fileEntryElement)
throws Exception
exportGeneratedFiles in interface DLProcessorException
public void generateMetadata(FileVersion fileVersion)
throws SystemException
RawMetadataProcessor
generateMetadata in interface RawMetadataProcessorfileVersion - the file version from which the raw metatada is to be
generated
SystemException - if a system exception occurred
public void importGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
FileEntry importedFileEntry,
Element fileEntryElement)
throws Exception
importGeneratedFiles in interface DLProcessorExceptionpublic boolean isSupported(FileVersion fileVersion)
isSupported in interface DLProcessorisSupported in interface RawMetadataProcessorpublic boolean isSupported(String mimeType)
isSupported in interface DLProcessorisSupported in interface RawMetadataProcessor
public void saveMetadata(FileVersion fileVersion)
throws PortalException,
SystemException
RawMetadataProcessor
The raw metadata present in the file version is extracted and persisted
using TikaRawMetadataProcessor.
saveMetadata in interface RawMetadataProcessorfileVersion - 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 void trigger(FileVersion fileVersion)
RawMetadataProcessorThe raw metadata extraction is done asynchronously.
trigger in interface DLProcessortrigger in interface RawMetadataProcessorfileVersion - the latest file version from which the raw metadata is
to be generated
|
Liferay 6.1.20-ee-ga2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||