Package org.dspace.authority
Class AuthorityTypes
- java.lang.Object
-
- org.dspace.authority.AuthorityTypes
-
public class AuthorityTypes extends Object
This class contains a list of active authority types. It can be used to created a new instance of a specific type. However if you need to make a new instance to store it in solr, you need to use AuthorityValueGenerator. To create an instance from a solr record, use AuthorityValue#fromSolr(SolrDocument). This class is instantiated in spring and accessed by a static method in AuthorityValue.- Author:
- Antoine Snyers (antoine at atmire.com), Kevin Van de Velde (kevin at atmire dot com), Ben Bosman (ben at atmire dot com), Mark Diggory (markd at atmire dot com)
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,AuthorityValue>fieldDefaultsprotected List<AuthorityValue>types
-
Constructor Summary
Constructors Constructor Description AuthorityTypes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorityValuegetEmptyAuthorityValue(String type)Map<String,AuthorityValue>getFieldDefaults()List<AuthorityValue>getTypes()voidsetFieldDefaults(Map<String,AuthorityValue> fieldDefaults)voidsetTypes(List<AuthorityValue> types)
-
-
-
Field Detail
-
types
protected List<AuthorityValue> types
-
fieldDefaults
protected Map<String,AuthorityValue> fieldDefaults
-
-
Method Detail
-
getTypes
public List<AuthorityValue> getTypes()
-
setTypes
public void setTypes(List<AuthorityValue> types)
-
getFieldDefaults
public Map<String,AuthorityValue> getFieldDefaults()
-
setFieldDefaults
public void setFieldDefaults(Map<String,AuthorityValue> fieldDefaults)
-
getEmptyAuthorityValue
public AuthorityValue getEmptyAuthorityValue(String type)
-
-