Package org.dspace.authority
Class PersonAuthorityValue
java.lang.Object
org.dspace.authority.AuthorityValue
org.dspace.authority.PersonAuthorityValue
- Direct Known Subclasses:
Orcidv3AuthorityValue
- 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddNameVariant(String name) Information that can be used the choice ui.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).Get the type of authority which created this value.getName()org.apache.solr.common.SolrInputDocumentGenerate a solr record from this instancebooleanThe regular equals() only checks if both AuthorityValues describe the same authority.newInstance(String info) Makes an instance of the AuthorityValue with the given information.voidsetFirstName(String firstName) voidsetInstitution(String institution) voidsetLastName(String lastName) voidvoidvoidsetValues(org.apache.solr.common.SolrDocument document) Initialize this instance based on a solr recordtoString()Methods inherited from class org.dspace.authority.AuthorityValue
delete, getCreationDate, getField, getId, getLastModified, getValue, isDeleted, setCreationDate, setCreationDate, setDeleted, setField, setId, setLastModified, setLastModified, stringToDate, update, updateItem, updateLastModifiedDate
-
Constructor Details
-
PersonAuthorityValue
public PersonAuthorityValue() -
PersonAuthorityValue
public PersonAuthorityValue(org.apache.solr.common.SolrDocument document)
-
-
Method Details
-
getName
-
setName
-
setValue
- Overrides:
setValuein classAuthorityValue
-
getFirstName
-
setFirstName
-
getLastName
-
setLastName
-
getNameVariants
-
addNameVariant
-
getInstitution
-
setInstitution
-
getEmails
-
addEmail
-
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
Description copied from class:AuthorityValueInformation that can be used the choice ui.- Overrides:
choiceSelectMapin classAuthorityValue- Returns:
- map
-
getAuthorityType
Description copied from class:AuthorityValueGet the type of authority which created this value.- Overrides:
getAuthorityTypein classAuthorityValue- Returns:
- type name.
-
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
Description copied from class:AuthorityValueMakes an instance of the AuthorityValue with the given information.- Overrides:
newInstancein classAuthorityValue- Parameters:
info- string info- Returns:
- AuthorityValue
-
toString
- Overrides:
toStringin classAuthorityValue
-
hasTheSameInformationAs
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
-