Package de.xima.fc.gui.utils.designer
Class ProjectPageHelper
java.lang.Object
de.xima.fc.gui.utils.designer.ProjectPageHelper
Helper for the workflow model bean that loads the model data from the DB.
- Since:
 - 7.0.0
 - Author:
 - XIMA MEDIA GmbH
 
- 
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic FormVersionloadFormVersionForCurrentRequest(javax.faces.context.FacesContext facesContext, IEntityContext ec, String formVersionIdParamName, Projekt project) Deprecated.static ProjektloadProjectForCurrentRequest(javax.faces.context.FacesContext facesContext, IEntityContext ec, String projectIdParamName) Loads the project from the ID as given by the current HTTP request.static WorkflowVersionloadWorkflowVersionFor(javax.faces.context.FacesContext facesContext, IEntityContext ec, Long wvid, Projekt project) static WorkflowVersionloadWorkflowVersionForCurrentRequest(javax.faces.context.FacesContext facesContext, IEntityContext ec, String workflowVersionIdParamName, Projekt project) Deprecated.Loads the workflow version from the ID as given by the current HTTP request. 
- 
Method Details
- 
loadProjectForCurrentRequest
public static Projekt loadProjectForCurrentRequest(javax.faces.context.FacesContext facesContext, IEntityContext ec, String projectIdParamName) Loads the project from the ID as given by the current HTTP request. Requires a faces context to be active.- Parameters:
 facesContext- Current faces context with the HTTP request.ec- Entity context for reading the project from the database.projectIdParamName- Name of the URL parameter that holds the requested project ID.- Returns:
 - The project with the ID as given by the HTTP request.
 
 - 
handleNotFound
public static void handleNotFound() - 
loadWorkflowVersionFor
public static WorkflowVersion loadWorkflowVersionFor(javax.faces.context.FacesContext facesContext, IEntityContext ec, Long wvid, Projekt project)  - 
loadFormVersionForCurrentRequest
@Deprecated public static FormVersion loadFormVersionForCurrentRequest(javax.faces.context.FacesContext facesContext, IEntityContext ec, String formVersionIdParamName, Projekt project) Deprecated. - 
loadWorkflowVersionForCurrentRequest
@Deprecated public static WorkflowVersion loadWorkflowVersionForCurrentRequest(javax.faces.context.FacesContext facesContext, IEntityContext ec, String workflowVersionIdParamName, Projekt project) Deprecated.Loads the workflow version from the ID as given by the current HTTP request. Requires a faces context to be active.- Parameters:
 facesContext- Current faces context with the HTTP request.ec- Entity context for reading the project from the database.workflowVersionIdParamName- Name of the URL parameter that holds the requested project ID.project- The project to which the version is expected to belong.- Returns:
 - The workflow version with the ID as given by the HTTP request. 
nullwhen no workflow version was specified. 
 
 -