public interface ChoiceAuthorityService
ChoiceAuthority| Modifier and Type | Method and Description |
|---|---|
Choices |
getBestMatch(String fieldKey,
String query,
Collection collection,
String locale)
Wrapper that calls getBestMatch method of the plugin corresponding to
the metadata field defined by single field key.
|
String |
getLabel(MetadataValue metadataValue,
String locale)
Wrapper that calls getLabel method of the plugin corresponding to
the metadata field defined by schema,element,qualifier.
|
String |
getLabel(String fieldKey,
String authKey,
String locale)
Wrapper that calls getLabel method of the plugin corresponding to
the metadata field defined by single field key.
|
Choices |
getMatches(String fieldKey,
String query,
Collection collection,
int start,
int limit,
String locale)
Wrapper calls getMatches method of the plugin corresponding to
the metadata field defined by single field key.
|
Choices |
getMatches(String fieldKey,
String query,
Collection collection,
int start,
int limit,
String locale,
boolean externalInput) |
Choices |
getMatches(String schema,
String element,
String qualifier,
String query,
Collection collection,
int start,
int limit,
String locale)
Wrapper that calls getMatches method of the plugin corresponding to
the metadata field defined by schema,element,qualifier.
|
String |
getPresentation(String fieldKey)
Get the presentation keyword (should be "lookup", "select" or "suggest", but this
is an informal convention so it can be easily extended) for this field.
|
List<String> |
getVariants(MetadataValue metadataValue)
Wrapper to call plugin's getVariants().
|
boolean |
isChoicesConfigured(String fieldKey)
Predicate, is there a Choices configuration of any kind for the
given metadata field?
|
boolean |
isClosed(String fieldKey)
Get the configured "closed" value for this field.
|
Choices getMatches(String schema, String element, String qualifier, String query, Collection collection, int start, int limit, String locale)
schema - schema of metadata fieldelement - element of metadata fieldqualifier - qualifier of metadata fieldquery - user's value to matchcollection - database ID of Collection for context (owner of Item)start - choice at which to start, 0 is first.limit - maximum number of choices to return, 0 for no limit.locale - explicit localization key if available, or nullorg.dspace.content.authority.ChoiceAuthority#getMatches(String, String, int, int, int, String)Choices getMatches(String fieldKey, String query, Collection collection, int start, int limit, String locale)
fieldKey - single string identifying metadata fieldquery - user's value to matchcollection - database ID of Collection for context (owner of Item)start - choice at which to start, 0 is first.limit - maximum number of choices to return, 0 for no limit.locale - explicit localization key if available, or nullorg.dspace.content.authority.ChoiceAuthority#getMatches(String, String, int, int, int, String)Choices getMatches(String fieldKey, String query, Collection collection, int start, int limit, String locale, boolean externalInput)
Choices getBestMatch(String fieldKey, String query, Collection collection, String locale)
fieldKey - single string identifying metadata fieldquery - user's value to matchcollection - database ID of Collection for context (owner of Item)locale - explicit localization key if available, or nullorg.dspace.content.authority.ChoiceAuthority#getBestMatch(String, String, int, String)String getLabel(MetadataValue metadataValue, String locale)
String getLabel(String fieldKey, String authKey, String locale)
boolean isChoicesConfigured(String fieldKey)
String getPresentation(String fieldKey)
boolean isClosed(String fieldKey)
List<String> getVariants(MetadataValue metadataValue)
Copyright © 2016 DuraSpace. All Rights Reserved.