|
Liferay 6.1.0-ce-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 |
generateMetadata(FileVersion fileVersion)
Generates the raw metadata associated with the file entry. |
static RawMetadataProcessorImpl |
getInstance()
|
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 DLProcessorcleanUp in interface RawMetadataProcessorpublic void cleanUp(FileVersion fileVersion)
cleanUp in interface DLProcessorcleanUp in interface RawMetadataProcessor
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 occurredpublic 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)
DLProcessor
trigger in interface DLProcessortrigger in interface RawMetadataProcessorfileVersion - the latest file version to process
|
Liferay 6.1.0-ce-ga1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||