Package de.xima.fc.gui.bean.project
Class CurrentProjectBean
- java.lang.Object
-
- de.xima.fc.gui.common.utils.msg.I18nUtils
-
- de.xima.fc.gui.common.utils.msg.MessageUtils
-
- de.xima.fc.gui.common.utils.msg.AMessaging
-
- de.xima.fc.gui.bean.project.CurrentProjectBean
-
- All Implemented Interfaces:
IDataContainer
,Serializable
@Named @ViewScoped @Deprecated public class CurrentProjectBean extends AMessaging implements IDataContainer
Deprecated.Replaced byProjectPageBean
.Project creation is done viaProjectCreationBean
andProjectImportBean
. Bean for the currently selected project. TheProjectBean
is used when a list of allProjekt
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CurrentProjectBean.EntitySelectModelImpl
Deprecated.
-
Constructor Summary
Constructors Constructor Description CurrentProjectBean()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
closeNewProjectDialog()
Deprecated.void
createNewProject()
Deprecated.void
createNewProject(String projectScope, boolean openDesigner)
Deprecated.void
createProjectFromTemplate(IProjectTemplate template)
Deprecated.Creates a new project from the given template, and opens the designer.void
createProjectFromTemplate(IProjectTemplate template, String projectScope, boolean openDesigner)
Deprecated.void
deleteProject(long projectId)
Deprecated.String
deleteProject(long projectId, String targetView)
Deprecated.void
deleteProjectRecords(long projectId)
Deprecated.protected String
getContext()
Deprecated.String
getCurrentFullDesignerLink()
Deprecated.String
getCurrentProvideLink()
Deprecated.String
getCurrentRelativDesignerLink()
Deprecated.org.primefaces.model.menu.MenuModel
getFormLinks(Projekt project)
Deprecated.String
getFullDesignerLink(Projekt project)
Deprecated.String
getImageLink(Projekt project)
Deprecated.IEntitySelectModel<Projekt>
getModel()
Deprecated.Set<String>
getProjectGroups()
Deprecated.String
getProjectId()
Deprecated.String
getProvideLink(Projekt p)
Deprecated.String
getRelativeDesignerLink(Projekt project)
Deprecated.String
getRelativeDesignerLink(Projekt project, boolean withContext)
Deprecated.String
getRelativeProvideLink(Projekt p, boolean withContext)
Deprecated.protected javax.servlet.http.HttpServletRequest
getRequest()
Deprecated.protected javax.servlet.http.HttpServletResponse
getResponse()
Deprecated.javax.servlet.http.HttpSession
getSession()
Deprecated.SessionBean
getSessionBean()
Deprecated.String
getSubPageUrl(EViews view, Projekt project)
Deprecated.int
getTotalVorgangCount()
Deprecated.int
getTotalVorgangCount(Projekt p)
Deprecated.int
getUnreadVorgangCount()
Deprecated.int
getUnreadVorgangCount(Projekt p)
Deprecated.ViewBean
getViewBean()
Deprecated.void
gotoProject(Projekt project)
Deprecated.void
handleProjectToGroupDropEvent()
Deprecated.boolean
hasPreviewImage(Projekt project)
Deprecated.boolean
isNew(Projekt project)
Deprecated.protected void
loadLazy(Object proxy)
Deprecated.void
loadProject()
Deprecated.Loads theProjekt
for the configured projectId.void
openDesigner(Projekt project)
Deprecated.void
openDesigner(Projekt project, boolean doRedirectIfNecessary)
Deprecated.void
openDesignerAndRedirectToForms(Projekt project)
Deprecated.Opens the designer for the given project in a new tab; and redirects to the forms page.void
saveProject()
Deprecated.void
saveProject(long projectId)
Deprecated.void
setModel(IEntitySelectModel<Projekt> model)
Deprecated.void
setProjectId(String projectId)
Deprecated.void
setSelectedProjectByRp()
Deprecated.void
setViewBean(ViewBean viewBean)
Deprecated.void
updateData()
Deprecated.Should update data when calledvoid
updateIdentityTokens()
Deprecated.Updates all identity tokens for all form records of the currently selected project.void
updateModel()
Deprecated.-
Methods inherited from class de.xima.fc.gui.common.utils.msg.MessageUtils
addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, errorMsg, errorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg, msg
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue, rbValueOrDefault, rbValueOrDefault
-
-
-
-
Method Detail
-
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 theProjekt
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.
-
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
-
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.
-
getRelativeProvideLink
public String getRelativeProvideLink(Projekt p, boolean withContext)
Deprecated.
-
hasPreviewImage
public boolean hasPreviewImage(Projekt project)
Deprecated.
-
getCurrentFullDesignerLink
public String getCurrentFullDesignerLink()
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, 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 interfaceIDataContainer
-
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.
-
-