|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CoefficientContext
DOCUMENT ME!
Method Summary | |
---|---|
java.lang.String |
clearModuleContent(java.lang.String name)
This method can be used to clear a modules set content from the page before it has been rendered. |
org.apache.commons.httpclient.Cookie[] |
getCookies()
|
CoefficientUser |
getCurrentUser()
If a user is logged in this will return that user otherwise it will return null |
java.lang.String |
getLastNonHelpOp()
|
BaseMultipartRequest |
getMultipartRequest()
|
Page |
getPage()
|
java.lang.String |
getParameter(java.lang.String name)
Passthru method to the request object. |
java.lang.String |
getParameter(java.lang.String name,
java.lang.String defaultValue)
Passthru method to the request object. |
boolean |
getParameterAsBoolean(java.lang.String name)
|
java.util.Date |
getParameterAsDate(java.lang.String name)
|
java.lang.Double |
getParameterAsDouble(java.lang.String name)
|
java.lang.Double |
getParameterAsDouble(java.lang.String name,
double defaultValue)
|
double |
getParameterAsDoublePrimitive(java.lang.String name,
double defaultValue)
|
int |
getParameterAsInt(java.lang.String name,
int defaultValue)
|
java.lang.Integer |
getParameterAsInteger(java.lang.String name)
|
java.lang.Integer |
getParameterAsInteger(java.lang.String name,
int defaultValue)
|
java.lang.Long |
getParameterAsLong(java.lang.String name)
|
java.lang.Long |
getParameterAsLong(java.lang.String name,
long defaultValue)
|
long |
getParameterAsLongPrimitive(java.lang.String name,
long defaultValue)
|
java.lang.String[] |
getParametersValues(java.lang.String name)
|
java.lang.String[] |
getParameterValues(java.lang.String name)
Passthru method to the request object. |
java.lang.Long[] |
getParameterValuesLong(java.lang.String name)
Passthru method to the request object. |
Project |
getProject()
|
java.lang.Object |
getRequestAttribute(java.lang.String name)
|
java.lang.String |
getRequestURL()
|
java.lang.Object |
getSessionAttribute(java.lang.String name)
|
java.lang.String |
getTheme()
|
UploadedFile |
getUploadedFile(java.lang.String name)
|
void |
invalidateSession()
|
boolean |
isError()
|
void |
removeSessionAttribute(java.lang.String name)
|
void |
setCookie(org.apache.commons.httpclient.Cookie cookie)
|
void |
setError(java.lang.String html)
Passthru method to set the error content on the internal Page object |
void |
setForward(java.lang.String moduleName)
This will forward to the module and perform its main method |
void |
setForward(java.lang.String moduleName,
java.lang.String opName)
This will forward to the module and perform the method specified by op and will pass no other parameters |
void |
setForward(java.lang.String moduleName,
java.lang.String opName,
java.util.HashMap params)
This method is used to force a redirect after the current iteration of the interceptor chain has completed. |
void |
setModuleContent(java.lang.String html,
java.lang.String name)
Passthru method to set the module content on the internal Page object |
void |
setModuleContent(java.lang.String html,
java.lang.String name,
java.lang.String theme)
force a specific theme - used primarily for printing |
void |
setProject(Project project)
|
boolean |
setProperties(java.lang.Object bean)
Uses bean introspection to set writable properties of bean from the parameters, where a (case-insensitive) name match between the bean property and the parameter is looked for |
void |
setSessionAttribute(java.lang.String name,
java.lang.Object value)
|
void |
setTheme(java.lang.String theme)
|
void |
setWorkflowUser(CoefficientUser workflowUser)
|
Methods inherited from interface za.co.csir.icomtek.workflow.interfaces.WorkflowContext |
---|
beginWorkflowAction, endWorkflowAction, removeRequestAttribute, setRequestAttribute |
Method Detail |
---|
void setCookie(org.apache.commons.httpclient.Cookie cookie)
org.apache.commons.httpclient.Cookie[] getCookies()
CoefficientUser getCurrentUser()
void setError(java.lang.String html)
html
- a String containing the html content defining an error
displayboolean isError()
void setForward(java.lang.String moduleName) throws ConfigurationException
ConfigurationException
void setForward(java.lang.String moduleName, java.lang.String opName) throws ConfigurationException
ConfigurationException
void setForward(java.lang.String moduleName, java.lang.String opName, java.util.HashMap params) throws ConfigurationException
moduleName
- is the module to forward control to, this must not
be nullopName
- is the operation that the forwarded module should perform
if this value is null then it will use the MainMethodparams
- is a hashmap containing key-value pairs that will be
additional parameters included on the request line to the
specified module. If null no additional parameters will
be sent
configuationException
- is thrown if module name is empty
or null
ConfigurationException
void setModuleContent(java.lang.String html, java.lang.String name) throws java.lang.RuntimeException
html
- a String containing the html content the module wants to
displayname
- is the result of the call to getModuleName on the module
setting the content
java.lang.RuntimeException
void setModuleContent(java.lang.String html, java.lang.String name, java.lang.String theme) throws java.lang.RuntimeException
java.lang.RuntimeException
java.lang.String clearModuleContent(java.lang.String name)
moduleName
- is the name of the modules content to clear.
BaseMultipartRequest getMultipartRequest() throws org.apache.commons.fileupload.FileUploadException
org.apache.commons.fileupload.FileUploadException
Page getPage()
java.lang.String getTheme()
void setTheme(java.lang.String theme)
java.lang.String getParameter(java.lang.String name)
name
- a String containing the paramameter name.
The getParameter() with a default value.
java.lang.String getParameter(java.lang.String name, java.lang.String defaultValue)
name
- a String with the name of the parameterdefaultValue
- if no parameter with that name is defined
the return value is the defaultValue
boolean getParameterAsBoolean(java.lang.String name)
java.util.Date getParameterAsDate(java.lang.String name)
java.lang.Double getParameterAsDouble(java.lang.String name, double defaultValue)
java.lang.Double getParameterAsDouble(java.lang.String name)
double getParameterAsDoublePrimitive(java.lang.String name, double defaultValue)
int getParameterAsInt(java.lang.String name, int defaultValue)
java.lang.Integer getParameterAsInteger(java.lang.String name, int defaultValue)
java.lang.Integer getParameterAsInteger(java.lang.String name)
java.lang.Long getParameterAsLong(java.lang.String name, long defaultValue)
java.lang.Long getParameterAsLong(java.lang.String name)
long getParameterAsLongPrimitive(java.lang.String name, long defaultValue)
java.lang.String[] getParameterValues(java.lang.String name)
name
- a String containing the parameter name.
java.lang.Long[] getParameterValuesLong(java.lang.String name)
name
- a String containing the parameter name.
java.lang.String[] getParametersValues(java.lang.String name)
void setProject(Project project)
Project getProject()
boolean setProperties(java.lang.Object bean)
bean
- an object
java.lang.Object getRequestAttribute(java.lang.String name)
java.lang.String getRequestURL()
java.lang.String getLastNonHelpOp()
void setSessionAttribute(java.lang.String name, java.lang.Object value)
java.lang.Object getSessionAttribute(java.lang.String name)
UploadedFile getUploadedFile(java.lang.String name) throws org.apache.commons.fileupload.FileUploadException
org.apache.commons.fileupload.FileUploadException
void setWorkflowUser(CoefficientUser workflowUser)
void invalidateSession()
void removeSessionAttribute(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |