|
Liferay 6.2.0-ce-m1 | |||||||||
| 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
| Constructor Summary | |
|---|---|
RawMetadataProcessorImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
cleanUp(FileEntry fileEntry)
|
void |
cleanUp(FileVersion fileVersion)
|
void |
copy(FileVersion sourceFileVersion,
FileVersion destinationFileVersion)
|
void |
exportGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
Element fileEntryElement)
|
void |
generateMetadata(FileVersion fileVersion)
Generates the raw metadata associated with the file entry. |
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. |
void |
trigger(FileVersion sourceFileVersion,
FileVersion destinationFileVersion)
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 |
| Constructor Detail |
|---|
public RawMetadataProcessorImpl()
| Method Detail |
|---|
public void afterPropertiesSet()
afterPropertiesSet in interface DLProcessorpublic void cleanUp(FileEntry fileEntry)
cleanUp in interface DLProcessorcleanUp in interface RawMetadataProcessorpublic void cleanUp(FileVersion fileVersion)
cleanUp in interface DLProcessorcleanUp in interface RawMetadataProcessor
public void copy(FileVersion sourceFileVersion,
FileVersion destinationFileVersion)
copy in interface DLProcessor
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 RawMetadataProcessorfileVersion - the latest file version from which the raw metadata is
to be generated
public void trigger(FileVersion sourceFileVersion,
FileVersion destinationFileVersion)
DLProcessor
trigger in interface DLProcessorsourceFileVersion - the file version to copy previews and thumbnails
from (optionally null)destinationFileVersion - the latest file version to process
|
Liferay 6.2.0-ce-m1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||