|
Liferay 6.1.10-ee-ga1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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 the processor's work with respect to the given file version. |
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 DLProcessor
cleanUp
in interface RawMetadataProcessor
public void cleanUp(FileVersion fileVersion)
cleanUp
in interface DLProcessor
cleanUp
in interface RawMetadataProcessor
public void exportGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, Element fileEntryElement) throws Exception
exportGeneratedFiles
in interface DLProcessor
Exception
public void generateMetadata(FileVersion fileVersion) throws SystemException
RawMetadataProcessor
generateMetadata
in interface RawMetadataProcessor
fileVersion
- the file version from which the raw metatada is to be
generated
SystemException
- if a system exception occurredpublic void importGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, FileEntry importedFileEntry, Element fileEntryElement) throws Exception
importGeneratedFiles
in interface DLProcessor
Exception
public boolean isSupported(FileVersion fileVersion)
isSupported
in interface DLProcessor
isSupported
in interface RawMetadataProcessor
public boolean isSupported(String mimeType)
isSupported
in interface DLProcessor
isSupported
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 RawMetadataProcessor
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 void trigger(FileVersion fileVersion)
DLProcessor
trigger
in interface DLProcessor
trigger
in interface RawMetadataProcessor
fileVersion
- the latest file version to process
|
Liferay 6.1.10-ee-ga1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |