public class FlowRegistryUtils extends Object
| Constructor and Description |
|---|
FlowRegistryUtils() |
| Modifier and Type | Method and Description |
|---|---|
static FlowResult |
processAddMetadataField(Context context,
int schemaID,
String element,
String qualifier,
String note)
Add a new metadata field.
|
static FlowResult |
processAddMetadataSchema(Context context,
String namespace,
String name)
Add a new metadata schema.
|
static FlowResult |
processDeleteBitstreamFormats(Context context,
String[] formatIDs)
Delete the specified bitstream formats.
|
static FlowResult |
processDeleteMetadataField(Context context,
String[] fieldIDs)
Delete the specified metadata fields.
|
static FlowResult |
processDeleteMetadataSchemas(Context context,
String[] schemaIDs)
Delete the given schemas.
|
static FlowResult |
processEditBitstreamFormat(Context context,
int formatID,
org.apache.cocoon.environment.Request request)
Edit a bitstream format.
|
static FlowResult |
processEditMetadataField(Context context,
int schemaID,
int fieldID,
String element,
String qualifier,
String note)
Edit a metadata field.
|
static FlowResult |
processMoveMetadataField(Context context,
int schemaID,
String[] fieldIDs)
Move the specified metadata fields to the target schema.
|
public static FlowResult processAddMetadataSchema(Context context, String namespace, String name) throws SQLException, AuthorizeException, NonUniqueMetadataException, UIException
context - The DSpace contextnamespace - The new schema's namespacename - The new schema's name.SQLExceptionAuthorizeExceptionNonUniqueMetadataExceptionUIExceptionpublic static FlowResult processDeleteMetadataSchemas(Context context, String[] schemaIDs) throws SQLException, AuthorizeException, NonUniqueMetadataException
context - The DSpace contextschemaIDs - A list of schema IDs to be deleted.SQLExceptionAuthorizeExceptionNonUniqueMetadataExceptionpublic static FlowResult processAddMetadataField(Context context, int schemaID, String element, String qualifier, String note) throws IOException, AuthorizeException, SQLException, UIException
context - The DSpace contextschemaID - The id of the schema where this new field should be added.element - The field's element.qualifier - The field's qualifier.note - A scope not about the field.IOExceptionAuthorizeExceptionSQLExceptionUIExceptionpublic static FlowResult processEditMetadataField(Context context, int schemaID, int fieldID, String element, String qualifier, String note) throws IOException, AuthorizeException, SQLException, UIException
context - The DSpace context.schemaID - The ID of the schema for this field.fieldID - The id of this field.element - A new element valuequalifier - A new qualifier valuenote - A new note value.IOExceptionAuthorizeExceptionSQLExceptionUIExceptionpublic static FlowResult processMoveMetadataField(Context context, int schemaID, String[] fieldIDs) throws NumberFormatException, SQLException, AuthorizeException, NonUniqueMetadataException, IOException
context - The DSpace contextschemaID - The target schema IDfieldIDs - The fields to be moved.NumberFormatExceptionSQLExceptionAuthorizeExceptionNonUniqueMetadataExceptionIOExceptionpublic static FlowResult processDeleteMetadataField(Context context, String[] fieldIDs) throws NumberFormatException, SQLException, AuthorizeException
context - The DSpace contextfieldIDs - The fields to be deleted.NumberFormatExceptionSQLExceptionAuthorizeExceptionpublic static FlowResult processEditBitstreamFormat(Context context, int formatID, org.apache.cocoon.environment.Request request) throws SQLException, AuthorizeException
context - The dspace contextformatID - The id of the format being updated.request - The request object, for all the field entries.SQLExceptionAuthorizeExceptionpublic static FlowResult processDeleteBitstreamFormats(Context context, String[] formatIDs) throws NumberFormatException, SQLException, AuthorizeException
context - The DSpace contextformatIDs - The formats-to-be-deleted.NumberFormatExceptionSQLExceptionAuthorizeExceptionCopyright © 2015 DuraSpace. All Rights Reserved.