Class CurrentProjectBean

All Implemented Interfaces:
IDataContainer, Serializable

@Named @ViewScoped @Deprecated public class CurrentProjectBean extends AMessaging implements IDataContainer
Deprecated.
Replaced by ProjectPageBean.
Project creation is done via ProjectCreationBean and ProjectImportBean. Bean for the currently selected project. The ProjectBean is used when a list of all Projekt is required, such as when selecting a form. This bean is used after a form was selected and is being edited.

The current project is set from the URL, e.g.

 /ui/project/access/202
 
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • CurrentProjectBean

      public CurrentProjectBean()
      Deprecated.
  • Method Details

    • getViewBean

      public ViewBean getViewBean()
      Deprecated.
    • setViewBean

      public void setViewBean(ViewBean viewBean)
      Deprecated.
    • getSessionBean

      public SessionBean getSessionBean()
      Deprecated.
    • getProjectId

      public String getProjectId()
      Deprecated.
      Returns:
      The ID of the currently selected project. Set from the URL (currently via prettyfaces).
    • setProjectId

      public void setProjectId(String projectId)
      Deprecated.
      Parameters:
      projectId - The ID of the currently selected project. Set from the URL (currently via prettyfaces).
    • loadProject

      public void loadProject()
      Deprecated.
      Loads the Projekt for the configured projectId.
    • getModel

      public IEntitySelectModel<Projekt> getModel()
      Deprecated.
    • setModel

      public void setModel(IEntitySelectModel<Projekt> model)
      Deprecated.
    • updateModel

      public void updateModel()
      Deprecated.
    • getProjectGroups

      @Deprecated public Set<String> getProjectGroups()
      Deprecated.
    • deleteProject

      public String deleteProject(long projectId, String targetView)
      Deprecated.
    • deleteProjectRecords

      @Deprecated public void deleteProjectRecords(long projectId)
      Deprecated.
    • saveProject

      public void saveProject(long projectId)
      Deprecated.
    • saveProject

      public void saveProject()
      Deprecated.
    • deleteProject

      public void deleteProject(long projectId)
      Deprecated.
    • handleProjectToGroupDropEvent

      @Deprecated public void handleProjectToGroupDropEvent()
      Deprecated.
      Set the group name of the project via request parameteres
    • getSubPageUrl

      public String getSubPageUrl(EViews view, Projekt project)
      Deprecated.
    • getUnreadVorgangCount

      public int getUnreadVorgangCount()
      Deprecated.
    • getUnreadVorgangCount

      public int getUnreadVorgangCount(Projekt p)
      Deprecated.
    • getTotalVorgangCount

      public int getTotalVorgangCount()
      Deprecated.
    • getTotalVorgangCount

      public int getTotalVorgangCount(Projekt p)
      Deprecated.
    • getCurrentProvideLink

      public String getCurrentProvideLink()
      Deprecated.
    • getProvideLink

      public String getProvideLink(Projekt p)
      Deprecated.
    • getRelativeProvideLink

      public String getRelativeProvideLink(Projekt p, boolean withContext)
      Deprecated.
    • getImageLink

      public String getImageLink(Projekt project)
      Deprecated.
    • hasPreviewImage

      public boolean hasPreviewImage(Projekt project)
      Deprecated.
    • getCurrentFullDesignerLink

      public String getCurrentFullDesignerLink()
      Deprecated.
    • getFullDesignerLink

      public String getFullDesignerLink(Projekt project)
      Deprecated.
    • getCurrentRelativDesignerLink

      public String getCurrentRelativDesignerLink()
      Deprecated.
      Returns:
      The relative link for opening the designer for the currently selected project.
    • getRelativeDesignerLink

      public String getRelativeDesignerLink(Projekt project)
      Deprecated.
    • getRelativeDesignerLink

      public String getRelativeDesignerLink(Projekt project, boolean withContext)
      Deprecated.
      Returns:
      The relative link for opening the designer for the given project.
    • isNew

      public boolean isNew(Projekt project)
      Deprecated.
    • getFormLinks

      public org.primefaces.model.menu.MenuModel getFormLinks(Projekt project)
      Deprecated.
    • updateIdentityTokens

      public void updateIdentityTokens()
      Deprecated.
      Updates all identity tokens for all form records of the currently selected project. Uses the identity token template of the current project. Adds meaningful error messages with the form records that caused the failure.
    • createNewProject

      public void createNewProject()
      Deprecated.
    • createNewProject

      public void createNewProject(String projectScope, boolean openDesigner)
      Deprecated.
    • createProjectFromTemplate

      public void createProjectFromTemplate(IProjectTemplate template)
      Deprecated.
      Creates a new project from the given template, and opens the designer.
    • createProjectFromTemplate

      public void createProjectFromTemplate(IProjectTemplate template, String projectScope, boolean openDesigner)
      Deprecated.
    • openDesignerAndRedirectToForms

      public void openDesignerAndRedirectToForms(Projekt project)
      Deprecated.
      Opens the designer for the given project in a new tab; and redirects to the forms page. If we are on the form page already, close the new-project-dialog and update the list of forms. Redirection is performed by calling a JavaScript method on the client: it first loads the designer in a new tab, then redirects to the forms page.
      Parameters:
      project - Project to open in the designer.
    • updateData

      public void updateData()
      Deprecated.
      Description copied from interface: IDataContainer
      Should update data when called
      Specified by:
      updateData in interface IDataContainer
    • closeNewProjectDialog

      public void closeNewProjectDialog()
      Deprecated.
    • setSelectedProjectByRp

      public void setSelectedProjectByRp()
      Deprecated.
    • openDesigner

      public void openDesigner(Projekt project)
      Deprecated.
    • openDesigner

      public void openDesigner(Projekt project, boolean doRedirectIfNecessary)
      Deprecated.
    • gotoProject

      public void gotoProject(Projekt project)
      Deprecated.
    • getSession

      public javax.servlet.http.HttpSession getSession()
      Deprecated.
    • getContext

      protected String getContext()
      Deprecated.
    • getRequest

      protected javax.servlet.http.HttpServletRequest getRequest()
      Deprecated.
    • getResponse

      protected javax.servlet.http.HttpServletResponse getResponse()
      Deprecated.
    • loadLazy

      protected void loadLazy(Object proxy)
      Deprecated.