|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.submission.AbstractStep
public abstract class AbstractStep
This abstract class represents an abstract page in the submission or workflow processes. This class provides a place for common resources to be shared such as i18n tags, progress bars, and a common setup.
| Field Summary | |
|---|---|
protected List<String> |
errorFields
A list of fields that may be in error, not all stages support errored fields but if they do then this is where a list of all fields in error may be found. |
protected int |
errorFlag
The error flag which was returned by the processing of this step |
protected String |
handle
The handle being processed by the current step. |
protected String |
id
The id of the currently active workspace or workflow, this contains the incomplete DSpace item |
protected boolean |
requireHandle
|
protected boolean |
requireStep
|
protected boolean |
requireSubmission
The parameters that are required by this submissions / workflow step |
protected boolean |
requireWorkflow
|
protected boolean |
requireWorkspace
|
protected StepAndPage |
stepAndPage
The current step and page's numeric values that it is at currently. |
protected InProgressSubmission |
submission
The in progress submission, if one is available, this may be either a workflowItem or a workspaceItem. |
protected SubmissionInfo |
submissionInfo
The current DSpace SubmissionInfo |
protected static Message |
T_complete
|
protected static Message |
T_creative_commons
|
protected static Message |
T_default_title
|
protected static Message |
T_default_trail
|
protected static Message |
T_describe
|
protected static Message |
T_dspace_home
|
protected static Message |
T_initial_questions
Progress Bar Language Strings |
protected static Message |
T_license
|
protected static Message |
T_next
|
protected static Message |
T_previous
|
protected static Message |
T_review
|
protected static Message |
T_save
|
protected static Message |
T_showfull
|
protected static Message |
T_showsimple
|
protected static Message |
T_submission_head
|
protected static Message |
T_submission_title
General Language Strings |
protected static Message |
T_submission_trail
|
protected static Message |
T_upload
|
protected static Message |
T_workflow_head
|
protected static Message |
T_workflow_title
|
protected static Message |
T_workflow_trail
|
| Fields inherited from class org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer |
|---|
context, contextPath, eperson, knot, objectModel, parameters, servletPath, sitemapURI, url |
| 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 |
| Constructor Summary | |
|---|---|
AbstractStep()
|
|
| Method Summary | |
|---|---|
void |
addControlButtons(List controls)
Adds the "<-Previous", "Save/Cancel" and "Next->" buttons to a given form. |
void |
addJumpButton(List list,
Message buttonText,
StepAndPage stepAndPage)
Adds a single "jump-to" button, which when clicked will jump the user directly to a particular step within the submission process. |
void |
addPageMeta(PageMeta pageMeta)
Base pageMeta that is added to ALL submission stages |
void |
addSubmissionProgressList(Division div)
Add a submission progress list to the current div for this step. |
List<String> |
getErrorFields(org.apache.avalon.framework.parameters.Parameters parameters)
Retrieve error fields from the list of parameters and return a List of all fields which had errors |
StepAndPage |
getMaxStepAndPageReached()
Find the maximum step and page that the user has reached in the submission processes. |
int |
getPage()
Get number of the current page within the current step |
int |
getStep()
Get current step number |
boolean |
isFirstStep()
Return whether this is the first step in the submission process (the first step is currently considered the first that appears in the progress bar) |
boolean |
isLastStep()
Return whether this is the last step in the submission process (the last step is currently considered the one directly *before* the Complete step in the progress bar) |
void |
recycle()
Recycle |
void |
setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters parameters)
Grab all the page's parameters from the sitemap. |
| Methods inherited from class org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer |
|---|
addBody, addOptions, addUserMeta, decodeFromURL, dispose, encodeForURL, generateURL, getComponentName, getObjectManager, handleException |
| 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.xml.sax.ContentHandler |
|---|
characters, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity |
| Methods inherited from interface org.xml.sax.ext.LexicalHandler |
|---|
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity |
| Methods inherited from interface org.apache.cocoon.xml.XMLProducer |
|---|
setConsumer |
| Field Detail |
|---|
protected static final Message T_submission_title
protected static final Message T_submission_trail
protected static final Message T_submission_head
protected static final Message T_previous
protected static final Message T_save
protected static final Message T_next
protected static final Message T_complete
protected static final Message T_dspace_home
protected static final Message T_workflow_title
protected static final Message T_workflow_trail
protected static final Message T_workflow_head
protected static final Message T_showfull
protected static final Message T_showsimple
protected static final Message T_default_title
protected static final Message T_default_trail
protected static final Message T_initial_questions
protected static final Message T_describe
protected static final Message T_upload
protected static final Message T_review
protected static final Message T_creative_commons
protected static final Message T_license
protected String id
protected SubmissionInfo submissionInfo
protected InProgressSubmission submission
protected StepAndPage stepAndPage
protected String handle
protected int errorFlag
protected List<String> errorFields
protected boolean requireSubmission
protected boolean requireWorkflow
protected boolean requireWorkspace
protected boolean requireStep
protected boolean requireHandle
| Constructor Detail |
|---|
public AbstractStep()
| Method Detail |
|---|
public void setup(org.apache.cocoon.environment.SourceResolver resolver,
Map objectModel,
String src,
org.apache.avalon.framework.parameters.Parameters parameters)
throws org.apache.cocoon.ProcessingException,
SAXException,
IOException
setup in interface org.apache.cocoon.sitemap.SitemapModelComponentsetup in class AbstractDSpaceTransformerorg.apache.cocoon.ProcessingException
SAXException
IOException
public void addPageMeta(PageMeta pageMeta)
throws SAXException,
WingException,
UIException,
SQLException,
IOException,
AuthorizeException
addPageMeta in interface DSpaceTransformeraddPageMeta in interface WingTransformeraddPageMeta in class AbstractDSpaceTransformerSAXException
WingException
UIException
SQLException
IOException
AuthorizeException
public void addSubmissionProgressList(Division div)
throws WingException
div - The division to add the list to.
WingException
public void addJumpButton(List list,
Message buttonText,
StepAndPage stepAndPage)
throws WingException
This method is used by the addSubmissionProgressList() method to create the progress bar at the top of the submission process.
This method is also used by the ReviewStep to add buttons to jump back to a particular step in the submission process
list - The List which the button will be added tobuttonText - The text to be displayed on the buttonstepAndPage - The step and page (a double of the form 'step.page', e.g. 1.2)
which this button will jump back to
WingException
public void addControlButtons(List controls)
throws WingException
Note: A given step may define its own buttons as necessary, and not call this method (since it must be explicitly invoked by the step's addBody() method)
controls - The List which will contain all control buttons
WingExceptionpublic int getStep()
public int getPage()
public boolean isFirstStep()
public boolean isLastStep()
public StepAndPage getMaxStepAndPageReached()
throws SQLException
SQLExceptionpublic List<String> getErrorFields(org.apache.avalon.framework.parameters.Parameters parameters)
public void recycle()
recycle in interface org.apache.avalon.excalibur.pool.Recyclablerecycle in class AbstractDSpaceTransformer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||