public abstract class AbstractStep extends AbstractDSpaceTransformer
| Modifier and Type | Field and Description |
|---|---|
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 |
context, contextPath, eperson, knot, objectModel, parameters, servletPath, sitemapURI, url| Constructor and Description |
|---|
AbstractStep() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
addBody, addOptions, addUserMeta, decodeFromURL, dispose, encodeForURL, generateURL, getComponentName, getObjectManager, handleExceptioncreateWingDocument, endDocument, endElement, endPrefixMapping, getDefaultMessageCatalogue, message, message, setupWing, startDocument, startElement, startPrefixMappingcharacters, comment, endCDATA, endDTD, endEntity, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startEntitysetConsumer, setContentHandler, setLexicalHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharacters, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntitycomment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntityprotected 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
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.ProcessingExceptionSAXExceptionIOExceptionpublic void addPageMeta(PageMeta pageMeta) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException
addPageMeta in interface DSpaceTransformeraddPageMeta in interface WingTransformeraddPageMeta in class AbstractDSpaceTransformerSAXExceptionWingExceptionUIExceptionSQLExceptionIOExceptionAuthorizeExceptionpublic void addSubmissionProgressList(Division div) throws WingException
div - The division to add the list to.WingExceptionpublic 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 toWingExceptionpublic 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 buttonsWingExceptionpublic 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 AbstractDSpaceTransformerCopyright © 2014 DuraSpace. All Rights Reserved.