public class Orcidv2AuthorityValue extends PersonAuthorityValue
| Modifier and Type | Field and Description |
|---|---|
static String |
ORCID_ID_SYNTAX
The syntax that the ORCID id needs to conform to
|
| Constructor and Description |
|---|
Orcidv2AuthorityValue()
Creates an instance of Orcidv2AuthorityValue with only uninitialized fields.
|
Orcidv2AuthorityValue(org.apache.solr.common.SolrDocument document) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOtherMetadata(String label,
String data)
Add additional metadata to the otherMetadata map
|
Map<String,String> |
choiceSelectMap()
Information that can be used the choice ui
|
static Orcidv2AuthorityValue |
create()
Create an empty authority.
|
static Orcidv2AuthorityValue |
create(org.orcid.jaxb.model.record_v2.Person person)
Create an authority based on a given orcid bio
|
boolean |
equals(Object o) |
String |
generateString()
Provides a string that will allow this AuthorityType to be recognized and provides information to create a new instance to be created using public Orcidv2AuthorityValue newInstance(String info).
|
String |
getAuthorityType() |
String |
getOrcid_id() |
Map<String,List<String>> |
getOtherMetadata() |
org.apache.solr.common.SolrInputDocument |
getSolrInputDocument()
Generate a solr record from this instance
|
int |
hashCode() |
boolean |
hasTheSameInformationAs(Object o)
The regular equals() only checks if both AuthorityValues describe the same authority.
|
boolean |
isNewMetadata(String label,
String data)
Check to see if the provided label / data pair is already present in the "otherMetadata" or not
|
AuthorityValue |
newInstance(String info)
Makes an instance of the AuthorityValue with the given information.
|
void |
setOrcid_id(String orcid_id) |
void |
setValue(String value) |
protected void |
setValues(org.orcid.jaxb.model.record_v2.Person person)
Initialize this instance based on a Person object
|
void |
setValues(org.apache.solr.common.SolrDocument document)
Initialize this instance based on a solr record
|
addEmail, addNameVariant, getEmails, getFirstName, getInstitution, getLastName, getName, getNameVariants, setFirstName, setInstitution, setLastName, setName, toStringdelete, getCreationDate, getDateFormatters, getField, getId, getLastModified, getValue, isDeleted, setCreationDate, setCreationDate, setDeleted, setField, setId, setLastModified, setLastModified, stringToDate, update, updateItem, updateLastModifiedDatepublic static final String ORCID_ID_SYNTAX
public Orcidv2AuthorityValue()
public Orcidv2AuthorityValue(org.apache.solr.common.SolrDocument document)
public String getOrcid_id()
public void setOrcid_id(String orcid_id)
public static Orcidv2AuthorityValue create()
public static Orcidv2AuthorityValue create(org.orcid.jaxb.model.record_v2.Person person)
protected void setValues(org.orcid.jaxb.model.record_v2.Person person)
person - Personpublic AuthorityValue newInstance(String info)
newInstance in class PersonAuthorityValueinfo - string infopublic void setValue(String value)
setValue in class PersonAuthorityValuepublic boolean isNewMetadata(String label, String data)
public void addOtherMetadata(String label, String data)
public org.apache.solr.common.SolrInputDocument getSolrInputDocument()
getSolrInputDocument in class PersonAuthorityValuepublic Map<String,String> choiceSelectMap()
choiceSelectMap in class PersonAuthorityValuepublic String getAuthorityType()
getAuthorityType in class PersonAuthorityValuepublic String generateString()
generateString in class PersonAuthorityValueAuthorityValueService.GENERATEpublic boolean hasTheSameInformationAs(Object o)
hasTheSameInformationAs in class PersonAuthorityValueo - objectpublic void setValues(org.apache.solr.common.SolrDocument document)
AuthorityValuesetValues in class PersonAuthorityValuedocument - SolrDocumentCopyright © 2022 LYRASIS. All rights reserved.