public interface MetadataFieldService
| Modifier and Type | Method and Description |
|---|---|
MetadataField |
create(Context context,
MetadataSchema metadataSchema,
String element,
String qualifier,
String scopeNote)
Creates a new metadata field.
|
void |
delete(Context context,
MetadataField metadataField)
Delete the metadata field.
|
MetadataField |
find(Context context,
int id)
Find the field corresponding to the given numeric ID.
|
List<MetadataField> |
findAll(Context context)
Retrieve all metadata field types from the registry
|
List<MetadataField> |
findAllInSchema(Context context,
MetadataSchema metadataSchema)
Return all metadata fields that are found in a given schema.
|
MetadataField |
findByElement(Context context,
MetadataSchema metadataSchema,
String element,
String qualifier)
Retrieves the metadata field from the database.
|
MetadataField |
findByElement(Context context,
String metadataSchemaName,
String element,
String qualifier) |
List<MetadataField> |
findFieldsByElementNameUnqualified(Context context,
String metadataSchema,
String element) |
void |
update(Context context,
MetadataField metadataField)
Update the metadata field in the database.
|
MetadataField create(Context context, MetadataSchema metadataSchema, String element, String qualifier, String scopeNote) throws AuthorizeException, SQLException, NonUniqueMetadataException
context - DSpace context objectIOExceptionAuthorizeExceptionSQLExceptionNonUniqueMetadataExceptionMetadataField find(Context context, int id) throws SQLException
context - context, in case we need to read it in from DBid - the metadata field IDSQLExceptionMetadataField findByElement(Context context, MetadataSchema metadataSchema, String element, String qualifier) throws SQLException
context - dspace contextmetadataSchema - schemaelement - element namequalifier - qualifier (may be ANY or null)SQLExceptionMetadataField findByElement(Context context, String metadataSchemaName, String element, String qualifier) throws SQLException
SQLExceptionList<MetadataField> findFieldsByElementNameUnqualified(Context context, String metadataSchema, String element) throws SQLException
SQLExceptionList<MetadataField> findAll(Context context) throws SQLException
context - dspace contextSQLExceptionList<MetadataField> findAllInSchema(Context context, MetadataSchema metadataSchema) throws SQLException
context - dspace contextmetadataSchema - the metadata schema for which we want all our metadata fieldsSQLExceptionvoid update(Context context, MetadataField metadataField) throws SQLException, AuthorizeException, NonUniqueMetadataException, IOException
context - dspace contextSQLExceptionAuthorizeExceptionNonUniqueMetadataExceptionIOExceptionvoid delete(Context context, MetadataField metadataField) throws SQLException, AuthorizeException
context - dspace contextSQLExceptionAuthorizeExceptionCopyright © 2016 DuraSpace. All Rights Reserved.