Package org.dspace.authority
Class PersonAuthorityValue
- java.lang.Object
-
- org.dspace.authority.AuthorityValue
-
- org.dspace.authority.PersonAuthorityValue
-
- Direct Known Subclasses:
Orcidv3AuthorityValue
public class PersonAuthorityValue extends 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)
-
-
Constructor Summary
Constructors Constructor Description PersonAuthorityValue()PersonAuthorityValue(org.apache.solr.common.SolrDocument document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEmail(String email)voidaddNameVariant(String name)Map<String,String>choiceSelectMap()Information that can be used the choice uiStringgenerateString()Provides a string that will allow this AuthorityType to be recognized and provides information to create a new instance to be created usingAuthorityValue.newInstance(String).StringgetAuthorityType()List<String>getEmails()StringgetFirstName()StringgetInstitution()StringgetLastName()StringgetName()List<String>getNameVariants()org.apache.solr.common.SolrInputDocumentgetSolrInputDocument()Generate a solr record from this instancebooleanhasTheSameInformationAs(Object o)The regular equals() only checks if both AuthorityValues describe the same authority.AuthorityValuenewInstance(String info)Makes an instance of the AuthorityValue with the given information.voidsetFirstName(String firstName)voidsetInstitution(String institution)voidsetLastName(String lastName)voidsetName(String name)voidsetValue(String value)voidsetValues(org.apache.solr.common.SolrDocument document)Initialize this instance based on a solr recordStringtoString()-
Methods inherited from class org.dspace.authority.AuthorityValue
delete, getCreationDate, getDateFormatters, getField, getId, getLastModified, getValue, isDeleted, setCreationDate, setCreationDate, setDeleted, setField, setId, setLastModified, setLastModified, stringToDate, update, updateItem, updateLastModifiedDate
-
-
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
setValue
public void setValue(String value)
- Overrides:
setValuein classAuthorityValue
-
getFirstName
public String getFirstName()
-
setFirstName
public void setFirstName(String firstName)
-
getLastName
public String getLastName()
-
setLastName
public void setLastName(String lastName)
-
addNameVariant
public void addNameVariant(String name)
-
getInstitution
public String getInstitution()
-
setInstitution
public void setInstitution(String institution)
-
addEmail
public void addEmail(String email)
-
getSolrInputDocument
public org.apache.solr.common.SolrInputDocument getSolrInputDocument()
Description copied from class:AuthorityValueGenerate a solr record from this instance- Overrides:
getSolrInputDocumentin classAuthorityValue- Returns:
- SolrInputDocument
-
setValues
public void setValues(org.apache.solr.common.SolrDocument document)
Description copied from class:AuthorityValueInitialize this instance based on a solr record- Overrides:
setValuesin classAuthorityValue- Parameters:
document- SolrDocument
-
choiceSelectMap
public Map<String,String> choiceSelectMap()
Description copied from class:AuthorityValueInformation that can be used the choice ui- Overrides:
choiceSelectMapin classAuthorityValue- Returns:
- map
-
getAuthorityType
public String getAuthorityType()
- Overrides:
getAuthorityTypein classAuthorityValue
-
generateString
public String generateString()
Description copied from class:AuthorityValueProvides a string that will allow this AuthorityType to be recognized and provides information to create a new instance to be created usingAuthorityValue.newInstance(String). See the implementation ofAuthorityValueServiceImpl.generateRaw(java.lang.String, java.lang.String, java.lang.String)for more details.- Overrides:
generateStringin classAuthorityValue- Returns:
- see
AuthorityValueService.GENERATE
-
newInstance
public AuthorityValue newInstance(String info)
Description copied from class:AuthorityValueMakes an instance of the AuthorityValue with the given information.- Overrides:
newInstancein classAuthorityValue- Parameters:
info- string info- Returns:
- AuthorityValue
-
toString
public String toString()
- Overrides:
toStringin classAuthorityValue
-
hasTheSameInformationAs
public boolean hasTheSameInformationAs(Object o)
Description copied from class:AuthorityValueThe regular equals() only checks if both AuthorityValues describe the same authority. This method checks if the AuthorityValues have different information E.g. it is used to decide when lastModified should be updated.- Overrides:
hasTheSameInformationAsin classAuthorityValue- Parameters:
o- object- Returns:
- true or false
-
-