public interface IAddonFileToProcess
| Modifier and Type | Method and Description |
|---|---|
void |
addAddonMetadata(IAddonContext addonContext,
java.lang.String uniqueId,
org.json.JSONObject json)
Utility method to add Add-on specific JSON metadata to the currently processed file
author Eric 15.09.2020 |
void |
addAddonMetadata(IAddonContext addonContext,
java.lang.String uniqueId,
java.lang.String metaData)
Utility method to add Add-on specific JSON metadata to the currently processed file
author Eric 15.09.2020 |
org.json.JSONObject |
getAddonMetadataAsJSON(java.lang.String uniqueId)
author Eric 15.09.2020
|
java.lang.String |
getAddonMetadataAsString(java.lang.String uniqueId)
author Eric 15.09.2020
|
java.io.File |
getFileWithJpgImage()
author Eric 14.09.2020
|
java.lang.Object |
getFirstMetadataValue(java.lang.String directory,
java.lang.String key)
Access Metadata
author Eric 14.09.2020 |
com.drew.metadata.Metadata |
getMetadata()
author Eric 14.09.2020
|
java.io.File |
getOriginalFile()
author Eric 14.09.2020
|
IPhotoMetaData |
getPhotoMetadata()
Access Metadata
author Eric 14.09.2020 |
int |
getSequenceNumber()
author Eric 14.09.2020
|
java.lang.String |
getUserId()
author Eric 14.09.2020
|
java.lang.String |
getXmpMetaAsXMLString()
Access metadata
author Eric 14.09.2020 |
boolean |
hasAddonMetadata(java.lang.String uniqueId)
author Eric 15.09.2020
|
boolean |
isCreatedByPlugin()
author Eric 14.09.2020
|
void |
lockExtraFile(java.io.File file)
If the procedure creates new Files thes files should be locked before access to avoid possible conflicts with concurrently running procedures.
|
void |
removeAddonMetadata(IAddonContext addonContext,
java.lang.String uniqueId)
Utility method to remove Add-on specific metadata from the currently processed file
author Eric 15.09.2020 |
void |
writeScaledJpgWithoutMetadata(java.io.OutputStream os,
int cx,
int cy,
float quality)
Helper Method to create a .jpg image of any size from the currently processed file.
|
java.lang.String getUserId()
java.io.File getOriginalFile()
java.io.File getFileWithJpgImage()
boolean isCreatedByPlugin()
com.drew.metadata.Metadata getMetadata()
int getSequenceNumber()
java.lang.String getXmpMetaAsXMLString()
throws java.lang.Exception
java.lang.Exception - in case of an errorIPhotoMetaData getPhotoMetadata() throws java.lang.Exception
java.lang.Exception - in case of an errorjava.lang.Object getFirstMetadataValue(java.lang.String directory,
java.lang.String key)
directory - see drewnoakes metadata-extractor for a description of directorieskey - see drewnoakes metadata-extractor for a description of keysvoid writeScaledJpgWithoutMetadata(java.io.OutputStream os,
int cx,
int cy,
float quality)
throws java.io.IOException,
java.lang.Exception
os - OutputStream where the image will be written tocx - maximum widthcy - maximum heigthquality - Quality between 0.0 and 1.0(best)java.io.IOException - If an IO error occursjava.lang.Exception - If An error occursvoid lockExtraFile(java.io.File file)
throws java.lang.Exception
file - File that should be lockedjava.lang.Exception - If an error occursvoid addAddonMetadata(IAddonContext addonContext, java.lang.String uniqueId, org.json.JSONObject json) throws java.lang.Exception
addonContext - The current contextuniqueId - To avoid name conflicts with other add-ons we recommend to use e.g. a url like myaddonname.dejson - JSON Object to storejava.lang.Exception - If an error occursvoid addAddonMetadata(IAddonContext addonContext, java.lang.String uniqueId, java.lang.String metaData) throws java.lang.Exception
addonContext - The current contextuniqueId - To avoid name conflicts with other add-ons we recommend to use e.g. a url like myaddonname.demetaData - teststring to storejava.lang.Exception - If an error occursvoid removeAddonMetadata(IAddonContext addonContext, java.lang.String uniqueId) throws java.lang.Exception
addonContext - The current contextuniqueId - To avoid name conflicts with other add-ons we recommend to use e.g. a url like myaddonname.dejava.lang.Exception - If an error occursboolean hasAddonMetadata(java.lang.String uniqueId)
throws java.lang.Exception
uniqueId - Add-on specific unique idjava.lang.Exception - Exception If an error occursjava.lang.String getAddonMetadataAsString(java.lang.String uniqueId)
throws java.lang.Exception
uniqueId - Add-on specific unique idjava.lang.Exception - If an error occursorg.json.JSONObject getAddonMetadataAsJSON(java.lang.String uniqueId)
throws java.lang.Exception
uniqueId - Add-on specific unique idjava.lang.Exception - If an error occurs