|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.lenya.cms.cocoon.flow.FlowHelperImpl
public class FlowHelperImpl
Flowscript utility class. The FOM_Cocoon object is not passed in the constructor to avoid errors. This way, not the initial, but the current FOM_Cocoon object is used by the methods.
Field Summary | |
---|---|
static java.lang.String |
SEPARATOR
SEPARATOR The separator |
Fields inherited from interface org.apache.lenya.cms.cocoon.flow.FlowHelper |
---|
ROLE |
Constructor Summary | |
---|---|
FlowHelperImpl()
Ctor. |
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 |
service(org.apache.avalon.framework.service.ServiceManager manager)
|
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. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SEPARATOR
SEPARATOR
The separator
Constructor Detail |
---|
public FlowHelperImpl()
Method Detail |
---|
public PageEnvelope getPageEnvelope(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon) throws PageEnvelopeException
FlowHelper
getPageEnvelope
in interface FlowHelper
cocoon
- The FOM_Cocoon object.
PageEnvelopeException
- when something went wrong.FlowHelper.getPageEnvelope(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon)
public java.lang.String getRequestURI(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon)
FlowHelper
getRequestURI
in interface FlowHelper
cocoon
- The FOM_Cocoon object.
FlowHelper.getRequestURI(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon)
public org.apache.cocoon.environment.Request getRequest(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon)
FlowHelper
getRequest
in interface FlowHelper
cocoon
- The FOM_Cocoon object.
FlowHelper.getRequest(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon)
public java.util.Map getObjectModel(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon)
FlowHelper
getObjectModel
in interface FlowHelper
cocoon
- The Flow Object Model of Cocoon
FlowHelper.getObjectModel(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon)
public DocumentHelper getDocumentHelper(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon)
FlowHelper
getDocumentHelper
in interface FlowHelper
cocoon
- The Flow Object Model of Cocoon
FlowHelper.getDocumentHelper(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon)
public java.lang.String getImageParameterValue(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon, java.lang.String parameterName)
FlowHelper
{name}:{value}.{axis}
. This is a
workaround for the <input type="image"/> bug in Internet Explorer.
getImageParameterValue
in interface FlowHelper
cocoon
- The FOM_Cocoon object.parameterName
- The request parameter name.
FlowHelper.getImageParameterValue(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon,
java.lang.String)
public void triggerWorkflow(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon, java.lang.String event) throws WorkflowException, PageEnvelopeException, AccessControlException
FlowHelper
triggerWorkflow
in interface FlowHelper
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.FlowHelper.triggerWorkflow(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon,
java.lang.String)
public void reservedCheckIn(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon cocoon, boolean backup) throws FileReservedCheckInException, java.lang.Exception
FlowHelper
reservedCheckIn
in interface FlowHelper
cocoon
- The Cocoon Flow Object Modelbackup
- Wether a new revision should be created.
FileReservedCheckInException
java.lang.Exception
FlowHelper.reservedCheckIn(org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon,
boolean)
public void service(org.apache.avalon.framework.service.ServiceManager manager) throws org.apache.avalon.framework.service.ServiceException
service
in interface org.apache.avalon.framework.service.Serviceable
org.apache.avalon.framework.service.ServiceException
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |