|
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.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 DLProcessor
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 copy(FileVersion sourceFileVersion, FileVersion destinationFileVersion)
copy
in interface DLProcessor
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)
RawMetadataProcessor
The raw metadata extraction is done asynchronously.
trigger
in interface RawMetadataProcessor
fileVersion
- the latest file version from which the raw metadata is
to be generatedpublic void trigger(FileVersion sourceFileVersion, FileVersion destinationFileVersion)
DLProcessor
trigger
in interface DLProcessor
sourceFileVersion
- the file version to copy previews and thumbnails
from (optionally null
)destinationFileVersion
- the latest file version to process
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |