|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.content.authority.SHERPARoMEOProtocol
public abstract class SHERPARoMEOProtocol
Choice Authority based on SHERPA/RoMEO - for Publishers and Journals See the subclasses SHERPARoMEOPublisher and SHERPARoMEOJournalTitle for actual choice plugin implementations. This is a superclass containing all the common protocol logic. Reads these DSpace Config properties: # contact URL for server sherpa.romeo.url = http://www.sherpa.ac.uk/romeoapi11.php WARNING: This is a very crude and incomplete implementation, done mainly as a proof-of-concept. Any site that actually wants to use it will probably have to refine it (and give patches back to dspace.org).
SHERPARoMEOPublisher,
SHERPARoMEOJournalTitle| Constructor Summary | |
|---|---|
SHERPARoMEOProtocol()
|
|
| Method Summary | |
|---|---|
Choices |
getBestMatch(String text,
int collection,
String locale)
Get the single "best" match (if any) of a value in the authority to the given user value. |
String |
getLabel(String key,
String locale)
Get the canonical user-visible "label" (i.e. |
abstract Choices |
getMatches(String text,
int collection,
int start,
int limit,
String locale)
Get all values from the authority that match the profferred value. |
protected Choices |
query(String result,
String label,
String authority,
NameValuePair[] args,
int start,
int limit)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SHERPARoMEOProtocol()
| Method Detail |
|---|
public abstract Choices getMatches(String text,
int collection,
int start,
int limit,
String locale)
ChoiceAuthority
getMatches in interface ChoiceAuthoritytext - 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 null
public Choices getBestMatch(String text,
int collection,
String locale)
ChoiceAuthority
getBestMatch in interface ChoiceAuthoritytext - user's value to matchcollection - database ID of Collection for context (owner of Item)locale - explicit localization key if available, or null
public String getLabel(String key,
String locale)
ChoiceAuthority
getLabel in interface ChoiceAuthoritykey - authority key known to this authority.locale - explicit localization key if available, or null
protected Choices query(String result,
String label,
String authority,
NameValuePair[] args,
int start,
int limit)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||