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 and namespace.
|
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 objectname - namenamespace - namespaceSQLException - if database errorAuthorizeException - if authorization errorNonUniqueMetadataExceptionMetadataSchema findByNamespace(Context context, String namespace) throws SQLException
context - DSpace contextnamespace - namespace URI to matchSQLException - if database errorvoid update(Context context, MetadataSchema metadataSchema) throws SQLException, AuthorizeException, NonUniqueMetadataException
context - DSpace contextmetadataSchema - metadata schemaSQLException - if database errorAuthorizeException - if authorization errorNonUniqueMetadataExceptionvoid delete(Context context, MetadataSchema metadataSchema) throws SQLException, AuthorizeException
context - DSpace contextmetadataSchema - metadata schemaSQLException - if database errorAuthorizeException - if authorization errorList<MetadataSchema> findAll(Context context) throws SQLException
context - DSpace contextSQLException - if database errorMetadataSchema find(Context context, int id) throws SQLException
context - context, in case we need to read it in from DBid - the schema IDSQLException - if database errorMetadataSchema find(Context context, String shortName) throws SQLException
context - context, in case we need to read it in from DBshortName - the short name for the schemaSQLException - if database errorCopyright © 2016 DuraSpace. All rights reserved.