|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FlowHelper
Flowscript utility class.
Field Summary | |
---|---|
static java.lang.String |
ROLE
The Avalon Role. |
Method Summary | |
---|---|
DocumentHelper |
getDocumentHelper(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon)
Returns a DocumentHelper instance. |
java.lang.String |
getImageParameterValue(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon,
java.lang.String parameterName)
Resolves the request parameter value for a specific name. |
java.util.Map |
getObjectModel(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon)
Returns the Cocoon Object Model |
PageEnvelope |
getPageEnvelope(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon)
Returns the current page envelope. |
org.apache.cocoon.environment.Request |
getRequest(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon)
Returns the request object of the current request. |
java.lang.String |
getRequestURI(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon)
Returns the request URI of the current request. |
void |
reservedCheckIn(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon,
boolean backup)
Checkis in the current document from the PageEnvelope context. |
void |
triggerWorkflow(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon,
java.lang.String event)
Trigger a workflow event for the document associated with the current PageEnvelope. |
Field Detail |
---|
static final java.lang.String ROLE
Method Detail |
---|
PageEnvelope getPageEnvelope(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon) throws PageEnvelopeException
cocoon
- The FOM_Cocoon object.
PageEnvelopeException
- when something went wrong.java.lang.String getRequestURI(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon)
cocoon
- The FOM_Cocoon object.
org.apache.cocoon.environment.Request getRequest(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon)
cocoon
- The FOM_Cocoon object.
java.util.Map getObjectModel(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon)
cocoon
- The Flow Object Model of Cocoon
DocumentHelper getDocumentHelper(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon)
cocoon
- The Flow Object Model of Cocoon
DocumentHelper
java.lang.String getImageParameterValue(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon, java.lang.String parameterName)
{name}:{value}.{axis}
. This is a
workaround for the <input type="image"/> bug in Internet Explorer.
cocoon
- The FOM_Cocoon object.parameterName
- The request parameter name.
void triggerWorkflow(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon, java.lang.String event) throws WorkflowException, PageEnvelopeException, AccessControlException
cocoon
- The Cocoon Flow Object Modelevent
- The name of the workflow event to trigger.
WorkflowException
- If an workflow error occurs
PageEnvelopeException
- Page envelope can not operate properly.
AccessControlException
- If an access control violation occurs.void reservedCheckIn(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon, boolean backup) throws FileReservedCheckInException, java.lang.Exception
cocoon
- The Cocoon Flow Object Modelbackup
- Wether a new revision should be created.
FileReservedCheckInException
java.lang.Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |