public final class ChoiceAuthorityManager
extends java.lang.Object
ChoiceAuthority| Modifier and Type | Method and Description |
|---|---|
Choices |
getBestMatch(java.lang.String fieldKey,
java.lang.String query,
int collection,
java.lang.String locale)
Wrapper that calls getBestMatch method of the plugin corresponding to
the metadata field defined by single field key.
|
java.lang.String |
getLabel(java.lang.String fieldKey,
java.lang.String authKey,
java.lang.String locale)
Wrapper that calls getLabel method of the plugin corresponding to
the metadata field defined by single field key.
|
java.lang.String |
getLabel(java.lang.String schema,
java.lang.String element,
java.lang.String qualifier,
java.lang.String authKey,
java.lang.String locale)
Wrapper that calls getLabel method of the plugin corresponding to
the metadata field defined by schema,element,qualifier.
|
static ChoiceAuthorityManager |
getManager()
Factory method
|
Choices |
getMatches(java.lang.String fieldKey,
java.lang.String query,
int collection,
int start,
int limit,
java.lang.String locale)
Wrapper calls getMatches method of the plugin corresponding to
the metadata field defined by single field key.
|
Choices |
getMatches(java.lang.String schema,
java.lang.String element,
java.lang.String qualifier,
java.lang.String query,
int collection,
int start,
int limit,
java.lang.String locale)
Wrapper that calls getMatches method of the plugin corresponding to
the metadata field defined by schema,element,qualifier.
|
java.lang.String |
getPresentation(java.lang.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.
|
java.util.List<java.lang.String> |
getVariants(java.lang.String schema,
java.lang.String element,
java.lang.String qualifier,
java.lang.String authorityKey,
java.lang.String language)
Wrapper to call plugin's getVariants().
|
boolean |
isChoicesConfigured(java.lang.String fieldKey)
Predicate, is there a Choices configuration of any kind for the
given metadata field?
|
boolean |
isClosed(java.lang.String fieldKey)
Get the configured "closed" value for this field.
|
static java.lang.String |
makeFieldKey(java.lang.String dotty)
Construct a single key from the "dot" notation e.g.
|
static java.lang.String |
makeFieldKey(java.lang.String schema,
java.lang.String element,
java.lang.String qualifier)
Construct a single key from the tuple of schema/element/qualifier
that describes a metadata field.
|
public static ChoiceAuthorityManager getManager()
public Choices getMatches(java.lang.String schema, java.lang.String element, java.lang.String qualifier, java.lang.String query, int collection, int start, int limit, java.lang.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 nullChoiceAuthority.getMatches(String, String, int, int, int, String)public Choices getMatches(java.lang.String fieldKey, java.lang.String query, int collection, int start, int limit, java.lang.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 nullChoiceAuthority.getMatches(String, String, int, int, int, String)public Choices getBestMatch(java.lang.String fieldKey, java.lang.String query, int collection, java.lang.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 nullChoiceAuthority.getBestMatch(String, String, int, String)public java.lang.String getLabel(java.lang.String schema,
java.lang.String element,
java.lang.String qualifier,
java.lang.String authKey,
java.lang.String locale)
public java.lang.String getLabel(java.lang.String fieldKey,
java.lang.String authKey,
java.lang.String locale)
public boolean isChoicesConfigured(java.lang.String fieldKey)
public java.lang.String getPresentation(java.lang.String fieldKey)
public boolean isClosed(java.lang.String fieldKey)
public static java.lang.String makeFieldKey(java.lang.String schema,
java.lang.String element,
java.lang.String qualifier)
public static java.lang.String makeFieldKey(java.lang.String dotty)
public java.util.List<java.lang.String> getVariants(java.lang.String schema,
java.lang.String element,
java.lang.String qualifier,
java.lang.String authorityKey,
java.lang.String language)
Copyright © 2013 DuraSpace. All Rights Reserved.