public class QetcherRawMetadataProcessorImpl extends Object implements com.liferay.portal.kernel.metadata.RawMetadataProcessor
| Constructor and Description |
|---|
QetcherRawMetadataProcessorImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> |
createDDMFormValuesMap(Map<String,String> metadata) |
void |
exportGeneratedFiles(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.xml.Element fileEntryElement) |
protected Map<String,String> |
extractMetadata(InputStream inputStream,
String referrer) |
protected Map<String,Object> |
extractRawMetadata(InputStream inputStream,
String referrer) |
Map<String,Field[]> |
getFields() |
Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> |
getRawMetadataMap(String extension,
String mimeType,
File file) |
Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> |
getRawMetadataMap(String extension,
String mimeType,
InputStream inputStream) |
void |
importGeneratedFiles(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.repository.model.FileEntry importedFileEntry,
com.liferay.portal.kernel.xml.Element fileEntryElement) |
protected Map<String,Object> |
parseJson(byte[] json) |
protected Map<String,String> |
toStringMap(Map<String,Object> rawMetadata) |
public Map<String,Field[]> getFields()
getFields in interface com.liferay.portal.kernel.metadata.RawMetadataProcessorpublic void exportGeneratedFiles(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.xml.Element fileEntryElement)
exportGeneratedFiles in interface com.liferay.portal.kernel.metadata.RawMetadataProcessorpublic void importGeneratedFiles(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext,
com.liferay.portal.kernel.repository.model.FileEntry fileEntry,
com.liferay.portal.kernel.repository.model.FileEntry importedFileEntry,
com.liferay.portal.kernel.xml.Element fileEntryElement)
throws Exception
importGeneratedFiles in interface com.liferay.portal.kernel.metadata.RawMetadataProcessorExceptionpublic Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> getRawMetadataMap(String extension, String mimeType, File file) throws com.liferay.portal.kernel.exception.PortalException
getRawMetadataMap in interface com.liferay.portal.kernel.metadata.RawMetadataProcessorcom.liferay.portal.kernel.exception.PortalExceptionpublic Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> getRawMetadataMap(String extension, String mimeType, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException
getRawMetadataMap in interface com.liferay.portal.kernel.metadata.RawMetadataProcessorcom.liferay.portal.kernel.exception.PortalExceptionprotected Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> createDDMFormValuesMap(Map<String,String> metadata)
protected Map<String,String> extractMetadata(InputStream inputStream, String referrer) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected Map<String,Object> extractRawMetadata(InputStream inputStream, String referrer) throws IOException
IOExceptionprotected Map<String,Object> parseJson(byte[] json) throws IOException
IOExceptionCopyright © 2013–2020 mklinger GmbH. All rights reserved.