ilog.rules.teamserver.web.beans
Class NavigationBean
- java.lang.Object
-
- ilog.rules.teamserver.web.beans.NavigationBean
-
- All Implemented Interfaces:
- ilog.rules.teamserver.web.navigation.IlrNavigationConstants, java.io.Serializable
public class NavigationBean extends java.lang.Object implements java.io.Serializable, ilog.rules.teamserver.web.navigation.IlrNavigationConstants
Navigation bean.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description NavigationBean()
-
Method Summary
Methods Modifier and Type Method and Description java.lang.String
analyze()
Navigates to the Analyze page.java.lang.String
back()
Navigates to the previous page.java.lang.String
compose()
Navigates to the Compose page.java.lang.String
configure()
Navigates to the Configure page.void
dependentProjectChanged(javax.faces.event.ValueChangeEvent evt)
java.lang.String
error(java.lang.String title, java.lang.String message)
Navigates to the error page with the given title and message.java.lang.String
error(java.lang.String title, java.lang.String message, java.lang.Throwable throwable, boolean logout)
Navigates to the error page with the given title and message.java.lang.String
explore()
Navigates to the Explore page.java.util.List<ilog.rules.teamserver.web.beans.NavigationBean.BreadCrumb>
getBreadCrumbs()
java.lang.String
getCurrentActivityName()
java.lang.String
getCurrentDecisionServiceName()
java.lang.String
getCurrentReleaseName()
java.lang.String
getCurrentSnapshotName()
java.lang.String
getDependentProject()
java.util.List<javax.faces.model.SelectItem>
getDependentProjects()
static NavigationBean
getInstance()
Gets the instance of the bean in the current Faces context.static IlrBaseline
getMainDSBranch(IlrBranch baseline)
java.lang.String
home()
Navigates to the Home page.boolean
isAnalyzeEnabled()
Tells whether the 'Analyze' tab is enabled.boolean
isConfigureEnabled()
Tells whether the 'Configure' tab is enabled.boolean
isDecisionServiceActivityRendered()
boolean
isDecisionServiceSnapshotRendered()
boolean
isDecisionServiceValueRendered()
boolean
isDependentProjectSelected()
boolean
isDepProjectInfoValueRendered()
boolean
isProjectDecisionService()
boolean
isProjectEnabled()
Tells whether the 'Project' tab is enabled.boolean
isReportEnabled()
Tells whether the 'Report' tab is enabled.java.lang.String
project()
Navigates to the Project page.java.lang.String
query()
Navigates to the Query page.void
setCurrentActivityName(java.lang.String input)
void
setCurrentDecisionServiceName(java.lang.String input)
void
setCurrentReleaseName(java.lang.String input)
void
setCurrentSnapshotName(java.lang.String input)
void
setDependentProject(java.lang.String projectName)
-
-
-
Method Detail
-
getBreadCrumbs
public java.util.List<ilog.rules.teamserver.web.beans.NavigationBean.BreadCrumb> getBreadCrumbs()
-
isDecisionServiceValueRendered
public boolean isDecisionServiceValueRendered() throws IlrApplicationException
- Throws:
IlrApplicationException
-
getCurrentDecisionServiceName
public java.lang.String getCurrentDecisionServiceName() throws IlrApplicationException
- Throws:
IlrApplicationException
-
setCurrentDecisionServiceName
public void setCurrentDecisionServiceName(java.lang.String input) throws IlrApplicationException
- Throws:
IlrApplicationException
-
getCurrentReleaseName
public java.lang.String getCurrentReleaseName() throws IlrApplicationException
- Throws:
IlrApplicationException
-
setCurrentReleaseName
public void setCurrentReleaseName(java.lang.String input) throws IlrApplicationException
- Throws:
IlrApplicationException
-
isDecisionServiceActivityRendered
public boolean isDecisionServiceActivityRendered() throws IlrApplicationException
- Throws:
IlrApplicationException
-
getCurrentActivityName
public java.lang.String getCurrentActivityName() throws IlrApplicationException
- Throws:
IlrApplicationException
-
setCurrentActivityName
public void setCurrentActivityName(java.lang.String input) throws IlrApplicationException
- Throws:
IlrApplicationException
-
isDecisionServiceSnapshotRendered
public boolean isDecisionServiceSnapshotRendered() throws IlrApplicationException
- Throws:
IlrApplicationException
-
getCurrentSnapshotName
public java.lang.String getCurrentSnapshotName() throws IlrApplicationException
- Throws:
IlrApplicationException
-
setCurrentSnapshotName
public void setCurrentSnapshotName(java.lang.String input) throws IlrApplicationException
- Throws:
IlrApplicationException
-
isDepProjectInfoValueRendered
public boolean isDepProjectInfoValueRendered()
-
getDependentProject
public java.lang.String getDependentProject()
-
setDependentProject
public void setDependentProject(java.lang.String projectName)
-
dependentProjectChanged
public void dependentProjectChanged(javax.faces.event.ValueChangeEvent evt)
-
getDependentProjects
public java.util.List<javax.faces.model.SelectItem> getDependentProjects() throws IlrApplicationException
- Throws:
IlrApplicationException
-
isDependentProjectSelected
public boolean isDependentProjectSelected() throws IlrApplicationException
- Throws:
IlrApplicationException
-
getMainDSBranch
public static IlrBaseline getMainDSBranch(IlrBranch baseline) throws IlrApplicationException
- Throws:
IlrApplicationException
-
getInstance
public static NavigationBean getInstance()
Gets the instance of the bean in the current Faces context.- Returns:
- An instance of
NavigationBean
.
-
home
public java.lang.String home()
Navigates to the Home page.- Returns:
- A navigation constant.
-
explore
public java.lang.String explore()
Navigates to the Explore page.- Returns:
- A navigation constant.
-
compose
public java.lang.String compose()
Navigates to the Compose page.- Returns:
- A navigation constant.
-
query
public java.lang.String query()
Navigates to the Query page.- Returns:
- A navigation constant.
-
configure
public java.lang.String configure()
Navigates to the Configure page.- Returns:
- A navigation constant.
-
analyze
public java.lang.String analyze()
Navigates to the Analyze page.- Returns:
- A navigation constant.
-
project
public java.lang.String project()
Navigates to the Project page.- Returns:
- A navigation constant.
-
back
public java.lang.String back()
Navigates to the previous page.- Returns:
- A navigation constant.
-
error
public java.lang.String error(java.lang.String title, java.lang.String message)
Navigates to the error page with the given title and message.- Parameters:
title
- The title to display in the error page.message
- The detailed message to display in the error page.- Returns:
- A navigation constant to the error page.
-
error
public java.lang.String error(java.lang.String title, java.lang.String message, java.lang.Throwable throwable, boolean logout)
Navigates to the error page with the given title and message.- Parameters:
title
- The title to display in the error page.message
- The detailed message to display in the error pagethrowable
- The exception to display in the error page ornull
if none.logout
- Iftrue
, a logout button is displayed; aback
is displayed otherwise.- Returns:
- A navigation constant to the error page.
-
isReportEnabled
public boolean isReportEnabled()
Tells whether the 'Report' tab is enabled.
-
isConfigureEnabled
public boolean isConfigureEnabled()
Tells whether the 'Configure' tab is enabled.
-
isAnalyzeEnabled
public boolean isAnalyzeEnabled()
Tells whether the 'Analyze' tab is enabled.
-
isProjectEnabled
public boolean isProjectEnabled()
Tells whether the 'Project' tab is enabled.
-
isProjectDecisionService
public boolean isProjectDecisionService() throws IlrApplicationException
- Throws:
IlrApplicationException
-
-