Package org.dspace.app.rest.utils
Class AuthorityUtils
- java.lang.Object
-
- org.dspace.app.rest.utils.AuthorityUtils
-
@Component public class AuthorityUtils extends Object
Utility methods to expose the authority framework over REST- Author:
- Andrea Bollini (andrea.bollini at 4science.it)
-
-
Field Summary
Fields Modifier and Type Field Description static StringPRESENTATION_TYPE_LOOKUPstatic StringPRESENTATION_TYPE_SUGGESTstatic StringRESERVED_KEYMAP_PARENT
-
Constructor Summary
Constructors Constructor Description AuthorityUtils()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorityRestconvertAuthority(ChoiceAuthority source, String authorityName, Projection projection)TODO the authorityName MUST be a part of ChoiceAuthority modelAuthorityEntryRestconvertEntry(Choice choice, String authorityName, Projection projection)TODO the authorityName MUST be a part of Choice modelStringgetAuthorityName(String schema, String element, String qualifier)StringgetPresentation(String schema, String element, String qualifier)booleanisChoice(String schema, String element, String qualifier)booleanisClosed(String schema, String element, String qualifier)
-
-
-
Field Detail
-
PRESENTATION_TYPE_LOOKUP
public static final String PRESENTATION_TYPE_LOOKUP
- See Also:
- Constant Field Values
-
PRESENTATION_TYPE_SUGGEST
public static final String PRESENTATION_TYPE_SUGGEST
- See Also:
- Constant Field Values
-
RESERVED_KEYMAP_PARENT
public static final String RESERVED_KEYMAP_PARENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
convertEntry
public AuthorityEntryRest convertEntry(Choice choice, String authorityName, Projection projection)
TODO the authorityName MUST be a part of Choice model- Parameters:
choice-authorityName-projection- the name of the projection to use, ornull.- Returns:
-
convertAuthority
public AuthorityRest convertAuthority(ChoiceAuthority source, String authorityName, Projection projection)
TODO the authorityName MUST be a part of ChoiceAuthority model- Parameters:
source-authorityName-projection- the projecton to use.- Returns:
-
-