public interface MetadataValueService
| Modifier and Type | Method and Description |
|---|---|
int |
countTotal(Context context) |
MetadataValue |
create(Context context,
DSpaceObject dso,
MetadataField metadataField)
Creates a new metadata value.
|
void |
delete(Context context,
MetadataValue metadataValue)
Delete the metadata field.
|
void |
deleteByMetadataField(Context context,
MetadataField metadataField) |
MetadataValue |
find(Context context,
int valueId)
Retrieves the metadata value from the database.
|
List<MetadataValue> |
findByField(Context context,
MetadataField metadataField)
Retrieves the metadata values for a given field from the database.
|
Iterator<MetadataValue> |
findByValueLike(Context context,
String value) |
MetadataValue |
getMinimum(Context context,
int metadataFieldId)
Get the minimum value of a given metadata field across all objects.
|
void |
update(Context context,
MetadataValue metadataValue)
Update the metadata value in the database.
|
void |
update(Context context,
MetadataValue metadataValue,
boolean modifyParentObject) |
MetadataValue create(Context context, DSpaceObject dso, MetadataField metadataField) throws SQLException
context - DSpace context objectdso - DSpaceObjectmetadataField - metadata fieldSQLException - if database errorMetadataValue find(Context context, int valueId) throws IOException, SQLException
context - dspace contextvalueId - database key id of valueIOExceptionSQLException - if database errorList<MetadataValue> findByField(Context context, MetadataField metadataField) throws IOException, SQLException
context - dspace contextmetadataField - metadata field whose values to look forIOException - if IO errorSQLException - if database errorvoid update(Context context, MetadataValue metadataValue) throws SQLException
context - dspace contextmetadataValue - metadata valueSQLException - if database errorvoid update(Context context, MetadataValue metadataValue, boolean modifyParentObject) throws SQLException, AuthorizeException
SQLExceptionAuthorizeExceptionvoid delete(Context context, MetadataValue metadataValue) throws SQLException
context - dspace contextmetadataValue - metadata valueSQLException - if database errorIterator<MetadataValue> findByValueLike(Context context, String value) throws SQLException
SQLExceptionvoid deleteByMetadataField(Context context, MetadataField metadataField) throws SQLException
SQLExceptionMetadataValue getMinimum(Context context, int metadataFieldId) throws SQLException
context - metadataFieldId - unique identifier of the interesting field.SQLException - if database errorint countTotal(Context context) throws SQLException
SQLExceptionCopyright © 2022 LYRASIS. All rights reserved.