public abstract class BaseRawMetadataProcessor
extends Object
implements com.liferay.portal.kernel.metadata.RawMetadataProcessor
Constructor and Description |
---|
BaseRawMetadataProcessor() |
Modifier and Type | Method and Description |
---|---|
protected com.liferay.dynamic.data.mapping.kernel.DDMForm |
createDDMForm(Locale defaultLocale) |
protected com.liferay.dynamic.data.mapping.kernel.DDMFormValues |
createDDMFormValues(org.apache.tika.metadata.Metadata metadata,
Field[] fields) |
protected Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> |
createDDMFormValuesMap(org.apache.tika.metadata.Metadata metadata,
Map<String,Field[]> fieldsMap) |
protected com.liferay.dynamic.data.mapping.kernel.DDMFormField |
createTextDDMFormField(String name) |
protected abstract org.apache.tika.metadata.Metadata |
extractMetadata(String extension,
String mimeType,
File file) |
protected abstract org.apache.tika.metadata.Metadata |
extractMetadata(String extension,
String mimeType,
InputStream inputStream) |
Map<String,Field[]> |
getFields() |
protected Object |
getFieldValue(org.apache.tika.metadata.Metadata metadata,
Field field) |
protected String |
getMetadataValue(org.apache.tika.metadata.Metadata metadata,
Field field) |
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) |
public Map<String,Field[]> getFields()
getFields
in interface com.liferay.portal.kernel.metadata.RawMetadataProcessor
public 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.RawMetadataProcessor
com.liferay.portal.kernel.exception.PortalException
public 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.RawMetadataProcessor
com.liferay.portal.kernel.exception.PortalException
protected com.liferay.dynamic.data.mapping.kernel.DDMForm createDDMForm(Locale defaultLocale)
protected com.liferay.dynamic.data.mapping.kernel.DDMFormValues createDDMFormValues(org.apache.tika.metadata.Metadata metadata, Field[] fields)
protected Map<String,com.liferay.dynamic.data.mapping.kernel.DDMFormValues> createDDMFormValuesMap(org.apache.tika.metadata.Metadata metadata, Map<String,Field[]> fieldsMap)
protected com.liferay.dynamic.data.mapping.kernel.DDMFormField createTextDDMFormField(String name)
protected abstract org.apache.tika.metadata.Metadata extractMetadata(String extension, String mimeType, File file) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected abstract org.apache.tika.metadata.Metadata extractMetadata(String extension, String mimeType, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected Object getFieldValue(org.apache.tika.metadata.Metadata metadata, Field field)
protected String getMetadataValue(org.apache.tika.metadata.Metadata metadata, Field field)