org.jbpm.jsf.core.impl
Class JbpmJsfContextImpl

java.lang.Object
  extended by org.jbpm.jsf.core.impl.JbpmJsfContextImpl
All Implemented Interfaces:
JbpmJsfContext

public final class JbpmJsfContextImpl
extends Object
implements JbpmJsfContext


Constructor Summary
JbpmJsfContextImpl()
           
 
Method Summary
 void addSuccessMessage(javax.faces.application.FacesMessage.Severity severity, String message, String detail)
           
 void addSuccessMessage(String message)
           
 void addSuccessMessage(String message, String detail)
           
 String getActionName()
           
 org.jbpm.identity.hibernate.IdentitySession getIdentitySession()
           
 org.jbpm.JbpmContext getJbpmContext()
           
 List<javax.faces.application.FacesMessage> getMessages()
           
 String getOutcome()
           
 String getOutcomeActionName()
           
 boolean hasJbpmContext()
           
 boolean isError()
           
 void reset()
           
 void selectOutcome(String outcomeName)
          Choose an outcome.
 void setActionName(String actionName)
           
 void setEnableNavigation(boolean enableNavigation)
           
 void setError(String message)
           
 void setError(String message, String detail)
           
 void setError(String message, Throwable cause)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JbpmJsfContextImpl

public JbpmJsfContextImpl()
Method Detail

hasJbpmContext

public boolean hasJbpmContext()

getJbpmContext

public org.jbpm.JbpmContext getJbpmContext()
Specified by:
getJbpmContext in interface JbpmJsfContext

getIdentitySession

public org.jbpm.identity.hibernate.IdentitySession getIdentitySession()
Specified by:
getIdentitySession in interface JbpmJsfContext

addSuccessMessage

public void addSuccessMessage(String message)
Specified by:
addSuccessMessage in interface JbpmJsfContext

addSuccessMessage

public void addSuccessMessage(String message,
                              String detail)
Specified by:
addSuccessMessage in interface JbpmJsfContext

addSuccessMessage

public void addSuccessMessage(javax.faces.application.FacesMessage.Severity severity,
                              String message,
                              String detail)
Specified by:
addSuccessMessage in interface JbpmJsfContext

selectOutcome

public void selectOutcome(String outcomeName)
Description copied from interface: JbpmJsfContext
Choose an outcome. The last outcome selected will be the one returned to the navigation layer, unless an error occurs, in which case, the outcome will be set to "error".

Specified by:
selectOutcome in interface JbpmJsfContext
Parameters:
outcomeName - the outcome name

getOutcome

public String getOutcome()
Specified by:
getOutcome in interface JbpmJsfContext

isError

public boolean isError()
Specified by:
isError in interface JbpmJsfContext

setError

public void setError(String message)
Specified by:
setError in interface JbpmJsfContext

setError

public void setError(String message,
                     String detail)
Specified by:
setError in interface JbpmJsfContext

setError

public void setError(String message,
                     Throwable cause)
Specified by:
setError in interface JbpmJsfContext

getActionName

public String getActionName()

setActionName

public void setActionName(String actionName)

getOutcomeActionName

public String getOutcomeActionName()

setEnableNavigation

public void setEnableNavigation(boolean enableNavigation)

reset

public void reset()

getMessages

public List<javax.faces.application.FacesMessage> getMessages()