public class Orcidv2AuthorityValue extends PersonAuthorityValue
| Modifier and Type | Field and Description |
|---|---|
static java.lang.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(java.lang.String label,
java.lang.String data)
Add additional metadata to the otherMetadata map
|
java.util.Map<java.lang.String,java.lang.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(java.lang.Object o) |
java.lang.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).
|
java.lang.String |
getAuthorityType() |
java.lang.String |
getOrcid_id() |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getOtherMetadata() |
org.apache.solr.common.SolrInputDocument |
getSolrInputDocument()
Generate a solr record from this instance
|
int |
hashCode() |
boolean |
hasTheSameInformationAs(java.lang.Object o)
The regular equals() only checks if both AuthorityValues describe the same authority.
|
boolean |
isNewMetadata(java.lang.String label,
java.lang.String data)
Check to see if the provided label / data pair is already present in the "otherMetadata" or not
|
AuthorityValue |
newInstance(java.lang.String info)
Makes an instance of the AuthorityValue with the given information.
|
void |
setOrcid_id(java.lang.String orcid_id) |
void |
setValue(java.lang.String value) |
protected void |
setValues(org.orcid.jaxb.model.record_v2.Person person)
Initialize this instance based on a Person object
|
addEmail, addNameVariant, getEmails, getFirstName, getInstitution, getLastName, getName, getNameVariants, setFirstName, setInstitution, setLastName, setName, setValues, toStringdelete, fromSolr, getAuthorityTypes, getCreationDate, getDateFormatters, getField, getId, getLastModified, getValue, isDeleted, setCreationDate, setCreationDate, setDeleted, setField, setId, setLastModified, setLastModified, stringToDate, update, updateItem, updateLastModifiedDatepublic static final java.lang.String ORCID_ID_SYNTAX
public Orcidv2AuthorityValue()
public Orcidv2AuthorityValue(org.apache.solr.common.SolrDocument document)
public java.lang.String getOrcid_id()
public void setOrcid_id(java.lang.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(java.lang.String info)
newInstance in class PersonAuthorityValueinfo - string infopublic void setValue(java.lang.String value)
setValue in class PersonAuthorityValuepublic boolean isNewMetadata(java.lang.String label,
java.lang.String data)
public void addOtherMetadata(java.lang.String label,
java.lang.String data)
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getOtherMetadata()
public org.apache.solr.common.SolrInputDocument getSolrInputDocument()
getSolrInputDocument in class PersonAuthorityValuepublic java.util.Map<java.lang.String,java.lang.String> choiceSelectMap()
choiceSelectMap in class PersonAuthorityValuepublic java.lang.String getAuthorityType()
getAuthorityType in class PersonAuthorityValuepublic java.lang.String generateString()
generateString in class PersonAuthorityValueAuthorityValueGenerator.GENERATEpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean hasTheSameInformationAs(java.lang.Object o)
hasTheSameInformationAs in class PersonAuthorityValueo - objectCopyright © 2018 DuraSpace. All Rights Reserved.