checkMetadata
public MetadataField checkMetadata(Context context,
String schema,
String element,
String qualifier,
boolean forceCreate)
throws SQLException,
AuthorizeException,
CrosswalkException
Scans metadata for elements not defined in this DSpace instance. It then takes action based
on a configurable parameter (fail, ignore, add).
- Parameters:
context - The relevant DSpace Context.
schema - metadata field schema
element - metadata field element
qualifier - metadata field qualifier
forceCreate - if true, force addinga schema or metadata field
- Returns:
- metadata field
- Throws:
SQLException - An exception that provides information on a database access error or other errors.
AuthorizeException - Exception indicating the current user of the context does not have permission
to perform a particular action.
CrosswalkException - Superclass for more-specific crosswalk exceptions.