public class AuthorityValue extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AuthorityTypes |
authorityTypes |
protected MetadataValueService |
metadataValueService |
| 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() |
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() |
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(Context context,
Item currentItem,
MetadataValue value)
Replace an item's DCValue with this authority
|
protected void |
updateLastModifiedDate() |
@Autowired(required=true) protected AuthorityTypes authorityTypes
@Autowired(required=true) protected MetadataValueService metadataValueService
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)
document - SolrDocumentpublic void updateItem(Context context, Item currentItem, MetadataValue value) throws SQLException, AuthorizeException
context - contextvalue - metadata valuecurrentItem - itemSQLException - if database errorAuthorizeException - if authorization errorpublic Map<String,String> choiceSelectMap()
public List<org.joda.time.format.DateTimeFormatter> getDateFormatters()
public String generateString()
public AuthorityValue newInstance(String info)
info - string infopublic String getAuthorityType()
public boolean hasTheSameInformationAs(Object o)
o - objectCopyright © 2016 DuraSpace. All rights reserved.