public class AuthorityValue extends Object
| Constructor and Description |
|---|
AuthorityValue() |
AuthorityValue(org.apache.solr.common.SolrDocument document) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
choiceSelectMap()
Information that can be used the choice ui
|
void |
delete() |
static AuthorityValue |
fromSolr(org.apache.solr.common.SolrDocument solrDocument) |
String |
generateString()
Provides a string that will be allow a this AuthorityType to be recognized and provides information to create a new instance to be created using public AuthorityValue newInstance(String info).
|
String |
getAuthorityType() |
static AuthorityTypes |
getAuthorityTypes() |
Date |
getCreationDate() |
List<org.joda.time.format.DateTimeFormatter> |
getDateFormatters() |
String |
getField() |
String |
getId() |
Date |
getLastModified() |
org.apache.solr.common.SolrInputDocument |
getSolrInputDocument()
Generate a solr record from this instance
|
String |
getValue() |
boolean |
hasTheSameInformationAs(Object o)
The regular equals() only checks if both AuthorityValues describe the same authority.
|
boolean |
isDeleted() |
AuthorityValue |
newInstance(String info)
Makes an instance of the AuthorityValue with the given information.
|
void |
setCreationDate(Date creationDate) |
void |
setCreationDate(String creationDate) |
void |
setDeleted(boolean deleted) |
void |
setField(String field) |
void |
setId(String id) |
void |
setLastModified(Date lastModified) |
void |
setLastModified(String lastModified) |
void |
setValue(String value) |
void |
setValues(org.apache.solr.common.SolrDocument document)
Initialize this instance based on a solr record
|
Date |
stringToDate(String date) |
String |
toString() |
void |
update() |
void |
updateItem(Item currentItem,
Metadatum value)
Replace an item's DCValue with this authority
|
protected void |
updateLastModifiedDate() |
public AuthorityValue()
public AuthorityValue(org.apache.solr.common.SolrDocument document)
public String getId()
public String getField()
public String getValue()
public void setId(String id)
public void setField(String field)
public void setValue(String value)
public Date getCreationDate()
public void setCreationDate(Date creationDate)
public void setCreationDate(String creationDate)
public Date getLastModified()
public void setLastModified(String lastModified)
public void setLastModified(Date lastModified)
public boolean isDeleted()
public void setDeleted(boolean deleted)
protected void updateLastModifiedDate()
public void update()
public void delete()
public org.apache.solr.common.SolrInputDocument getSolrInputDocument()
public void setValues(org.apache.solr.common.SolrDocument document)
public void updateItem(Item currentItem, Metadatum value)
public Map<String,String> choiceSelectMap()
public List<org.joda.time.format.DateTimeFormatter> getDateFormatters()
public String generateString()
public AuthorityValue newInstance(String info)
public String getAuthorityType()
public static AuthorityTypes getAuthorityTypes()
public static AuthorityValue fromSolr(org.apache.solr.common.SolrDocument solrDocument)
public boolean hasTheSameInformationAs(Object o)
Copyright © 2014 DuraSpace. All Rights Reserved.