Class ProjectPageHelper


  • public final class ProjectPageHelper
    extends Object
    Helper for the workflow model bean that loads the model data from the DB.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • 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()
      • loadFormVersionForCurrentRequest

        public static FormVersion loadFormVersionForCurrentRequest​(javax.faces.context.FacesContext facesContext,
                                                                   IEntityContext ec,
                                                                   String formVersionIdParamName,
                                                                   Projekt project)
      • loadWorkflowVersionForCurrentRequest

        public static WorkflowVersion loadWorkflowVersionForCurrentRequest​(javax.faces.context.FacesContext facesContext,
                                                                           IEntityContext ec,
                                                                           String workflowVersionIdParamName,
                                                                           Projekt project)
        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. null when no workflow version was specified.