public abstract class PhotoFieldProvider extends java.lang.Object implements IPicApportGroovyAddon
Modifier and Type | Field and Description |
---|---|
static int |
DATA_TYPE_STRING
This is currently the only datatype supported
|
static int |
INDEX_TYPE_FULLTEXT
The fieldvalue can be accessed for search with the search operator with wildcard support.
|
static int |
INDEX_TYPE_HIERARCHICAL
The fieldvalue can be accessed for search with the search operator with wildcard support.
|
static int |
INDEX_TYPE_ID
The fieldvalue can be accessed for search with the search operator without wildcard support.
|
static int |
INDEX_TYPE_NOINDEX
The fieldvalue will be stored and is may be available in the global search (depends on the addToGlobalFulltext setting of the addon)
|
Constructor and Description |
---|
PhotoFieldProvider() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
removeKeywords(java.lang.String addonData,
java.util.List<java.lang.String> tags)
Optional Method.
|
void |
setFieldValues(IAddonContext addonContext,
IccImageMetaData metaDataFile,
IPhotoMetaDataFilter metadataDatabase)
This Method is called everytime a photo needs a database update.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
public static final int DATA_TYPE_STRING
public static final int INDEX_TYPE_NOINDEX
public static final int INDEX_TYPE_ID
public static final int INDEX_TYPE_FULLTEXT
public static final int INDEX_TYPE_HIERARCHICAL
public void setFieldValues(IAddonContext addonContext, IccImageMetaData metaDataFile, IPhotoMetaDataFilter metadataDatabase)
addonContext
- The current Add-on contextmetaDataFile
- use this object to access metadatametadataDatabase
- this object provides methods to set Add-on specific field valuespublic java.lang.String removeKeywords(java.lang.String addonData, java.util.List<java.lang.String> tags)
addonData
- addondata configured with dataId for the fieldtags
- List of Tags that should be removed