public interface MetadataSchemaService
| Modifier and Type | Method and Description |
|---|---|
MetadataSchema |
create(Context context,
String name,
String namespace)
Creates a new metadata schema in the database, using the name & namspace.
|
void |
delete(Context context,
MetadataSchema metadataSchema)
Delete the metadata schema.
|
MetadataSchema |
find(Context context,
int id)
Get the schema corresponding with this numeric ID.
|
MetadataSchema |
find(Context context,
String shortName)
Get the schema corresponding with this short name.
|
List<MetadataSchema> |
findAll(Context context)
Return all metadata schemas.
|
MetadataSchema |
findByNamespace(Context context,
String namespace)
Get the schema object corresponding to this namespace URI.
|
void |
update(Context context,
MetadataSchema metadataSchema)
Update the metadata schema in the database.
|
MetadataSchema create(Context context, String name, String namespace) throws SQLException, AuthorizeException, NonUniqueMetadataException
context - DSpace context objectSQLExceptionAuthorizeExceptionNonUniqueMetadataExceptionMetadataSchema findByNamespace(Context context, String namespace) throws SQLException
context - DSpace contextnamespace - namespace URI to matchSQLExceptionvoid update(Context context, MetadataSchema metadataSchema) throws SQLException, AuthorizeException, NonUniqueMetadataException
context - DSpace contextSQLExceptionAuthorizeExceptionNonUniqueMetadataExceptionvoid delete(Context context, MetadataSchema metadataSchema) throws SQLException, AuthorizeException
context - DSpace contextSQLExceptionAuthorizeExceptionList<MetadataSchema> findAll(Context context) throws SQLException
context - DSpace contextSQLExceptionMetadataSchema find(Context context, int id) throws SQLException
context - context, in case we need to read it in from DBid - the schema IDSQLExceptionMetadataSchema find(Context context, String shortName) throws SQLException
context - context, in case we need to read it in from DBshortName - the short name for the schemaSQLExceptionCopyright © 2016 DuraSpace. All Rights Reserved.