org.dspace.app.xmlui.aspect.administrative.registries
Class EditMetadataSchema
java.lang.Object
org.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.transformation.AbstractTransformer
org.dspace.app.xmlui.wing.AbstractWingTransformer
org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer
org.dspace.app.xmlui.aspect.administrative.registries.EditMetadataSchema
- All Implemented Interfaces:
- org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.excalibur.pool.Recyclable, org.apache.cocoon.sitemap.SitemapModelComponent, org.apache.cocoon.transformation.Transformer, org.apache.cocoon.xml.XMLPipe, org.apache.cocoon.xml.XMLProducer, org.apache.excalibur.xml.sax.XMLConsumer, DSpaceTransformer, WingTransformer, ContentHandler, LexicalHandler
public class EditMetadataSchema
- extends AbstractDSpaceTransformer
Edit a metadata schema by: listing all the existing fields in
the schema, prompt the user to add a new field. If a current
field is selected then the field may be updated in the same
place where new field addition would be.
- Author:
- Scott Phillips
| Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer |
| Fields inherited from interface org.apache.cocoon.transformation.Transformer |
ROLE |
| Methods inherited from class org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer |
addOptions, addUserMeta, decodeFromURL, dispose, encodeForURL, generateURL, getComponentName, getObjectManager, handleException, recycle, setup |
| Methods inherited from class org.dspace.app.xmlui.wing.AbstractWingTransformer |
createWingDocument, endDocument, endElement, endPrefixMapping, getDefaultMessageCatalogue, message, message, setupWing, startDocument, startElement, startPrefixMapping |
| Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe |
characters, comment, endCDATA, endDTD, endEntity, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startEntity |
| Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
setConsumer, setContentHandler, setLexicalHandler |
| Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled |
getLogger, setLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.cocoon.xml.XMLProducer |
setConsumer |
EditMetadataSchema
public EditMetadataSchema()
addPageMeta
public void addPageMeta(PageMeta pageMeta)
throws WingException
- Description copied from class:
AbstractDSpaceTransformer
- What page metadata to add to the document
- Specified by:
addPageMeta in interface DSpaceTransformer- Specified by:
addPageMeta in interface WingTransformer- Overrides:
addPageMeta in class AbstractDSpaceTransformer
- Throws:
WingException
addBody
public void addBody(Body body)
throws WingException,
SQLException
- Description copied from class:
AbstractDSpaceTransformer
- What to add at the end of the body
- Specified by:
addBody in interface DSpaceTransformer- Specified by:
addBody in interface WingTransformer- Overrides:
addBody in class AbstractDSpaceTransformer
- Throws:
WingException
SQLException
addNewFieldForm
public void addNewFieldForm(Division div,
String schemaName,
List<String> errors)
throws WingException
- Add a form prompting the user to add a new field to the this schema.
- Parameters:
div - The division to add the form too.schemaName - The schemaName currently being operated on.errors - A list of errors from previous attempts at adding new fields.
- Throws:
WingException
addUpdateFieldForm
public void addUpdateFieldForm(Division div,
String schemaName,
int fieldID,
List<String> errors)
throws WingException,
SQLException
- Update an existing field by promting the user for it's values.
- Parameters:
div - The division to add the form too.schemaName - The schemaName currently being operated on.fieldID - The id of the field being updated.errors - A list of errors from previous attempts at updaating the field.
- Throws:
WingException
SQLException
addFieldErrors
public void addFieldErrors(List form,
List<String> errors)
throws WingException
- Determine if there were any special errors and display approparte
text. Because of the inline nature of the element and qualifier
fields these errors can not be placed on the field. Instead they
have to be added as seperate items above the field.
- Parameters:
form - The form to add errors to.errors - A list of errors.
- Throws:
WingException
Copyright © 2011 DuraSpace. All Rights Reserved.