ilog.rules.teamserver.web.beans

Class ManagerBean

  • java.lang.Object
    • ilog.rules.teamserver.web.beans.ManagerBean
    • Method Detail

      • isConnected

        public boolean isConnected()
        Checks if the manager sessions are connected to Decision Center.

        The manager bean attempts to connect to the manager sessions the first time a Decision Center JSP page is displayed. If the connection fails for any reason, this method returns false.

        Returns:
        If both managers session are connected, true is returned.
        See Also:
        IlrSessionFactory.connect(String, String, String, String)
      • getSession

        public IlrSession getSession()
        Gets the Decision Center session.
        Returns:
        An IlrSession, or null if no connection has been attempted so far.
      • isProjectOpened

        public boolean isProjectOpened()
        Indicates whether a project is currently open in the web console.
        Returns:
        true If a project is open in the web console.
      • isDsOpened

        public boolean isDsOpened()
        Indicates whether a decision service is currently open in the web console.
        Returns:
        true If a decision service is open in the web console.
      • isDecisionServiceOpened

        public boolean isDecisionServiceOpened()
        Indicates whether a project is currently open in the web console.
        Returns:
        true If a project is open in the web console.
      • isAnyProjectOpened

        public boolean isAnyProjectOpened()
      • isODMonCloud

        public boolean isODMonCloud()
      • getAvailableLocales

        public java.util.List<java.util.Locale> getAvailableLocales()
        Gets the list of available locales in the Decision Center console.

        This list can be seen in the Options / Display Options page of the console.

        Returns:
        A list of java.util.Locale objects.
      • getLocaleDir

        public java.lang.String getLocaleDir()
      • getLocale

        public java.util.Locale getLocale()
        Gets the locale of the Decision Center console.

        This locale is found in the Decision Center preferences of the connected user. If it is not found, then the locale is taken from the URL request passed to Decision Center (for example, http://localhost:9080/teamserver?locale=en). If it is not specified in the URL, then the locale used is the locale of the browser, provided that this locale is part of the available locales.

        Returns:
        A Locale object.
        See Also:
        getAvailableLocales()
      • setIsAccessible

        public void setIsAccessible(java.lang.Boolean isAccessible)
      • getAccessToken

        public java.lang.String getAccessToken()
      • getUsername

        public java.lang.String getUsername()
        Gets the current user name, that is, the name given by the user at sign in.
        Returns:
        The name of the user.
      • isAuthenticated

        public boolean isAuthenticated()
      • isDotNetProject

        public boolean isDotNetProject()
      • isBusinessSpaceContext

        public boolean isBusinessSpaceContext()
      • getInstance

        public static ManagerBean getInstance()
        Retrieves the instance of the manager for this HTTP session.
        Returns:
        The bean instance.
      • valueBound

        public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
        Specified by:
        valueBound in interface javax.servlet.http.HttpSessionBindingListener
      • valueUnbound

        public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
        Specified by:
        valueUnbound in interface javax.servlet.http.HttpSessionBindingListener
      • isAdministrator

        public boolean isAdministrator()
        Indicates whether the current user has the rtsAdministrator role.
      • isConfigManager

        public boolean isConfigManager()
        Indicates whether the current user has the rtsConfigManager role.
      • isUserInRole

        public boolean isUserInRole(java.lang.String role)
        Indicates whether the user has the given role.
        Parameters:
        role - The role to test.
        Returns:
        true if the user has the given role.
      • getIconPath

        public java.lang.String getIconPath()
      • isInstalled

        public boolean isInstalled()
        Indicates whether Decision Center has been installed, that is, whether the database tables have been created.
      • isInstalledAndInitialized

        public boolean isInstalledAndInitialized()
        Indicates whether Decision Center has been installed and initialized, that is, whether the database tables have been created and the metamodel uploaded.
      • isInstaller

        public boolean isInstaller()
        Indicates whether the current user has the rtsInstaller role.
      • getDetailsURL

        public static java.lang.String getDetailsURL(IlrElementHandle handle)
        Deprecated. replaced by getPermanentLinkHelper()
        Gets a URL that displays the Details page of the given element.

        The context and the datasource name are loaded from the session.

        Parameters:
        handle - Handle on the element from which you want to display the details.
        Returns:
        The URL of the element details.
      • getSelectedElementsInTable

        public java.util.List getSelectedElementsInTable()
        Returns the list of elements currently selected in the current displayed element table (Explore or Query tab).

        Returns:
        A list of ilog.rules.teamserver.model.IlrElementDetails objects.
      • getDisplayElements

        public java.util.List<IlrElementSummary> getDisplayElements()
        Gets the currently displayed elements in the table.
        Returns:
        a list of summaries, instances of IlrElementSummary
      • getSelectedElement

        public IlrElementDetails getSelectedElement()
        Gets the element currently selected in the console.

        The element will be either the one currently selected in the left pane of the Explore tab or the element currently being viewed or edited. In any case, the returned element is the one that was selected last.

      • noItemSelectedSingle

        public java.lang.String noItemSelectedSingle()
        Error message helper.

        Should be returned when an action is triggered but no element was selected.

        Returns:
        An error message.
      • getOrCreateAndOpenCurrentPort

        public static IlxWPort getOrCreateAndOpenCurrentPort()
        Gets or creates the current web component port and opens it if not already done.

        Always use this method instead of IlxWPort.getCurrentPort() and IlxWPort.open() when you want to print some web components in a JSP page containing some other tags that already print some components.

        The Decision Center JSF components that internally use the web components also call this method. This will ensure that 2 ports are not used twice in the same JSP page, which is not suported by the web component framework.

      • getPermanentLinkHelper

        public IlrPermanentLinkHelper getPermanentLinkHelper()
        Gets the permanent link helper for this bean.

        The helper will be set up so that when a permalink is generated from it, it will embed in any page of the Decision Center console.

        Since:
        JRules 6.7
        Returns:
        A permanent link helper.
      • getCurrentTreeController

        public IlrTreeController getCurrentTreeController()
        Returns:
        The tree controller for the rule explorer
      • isProjectModeInit

        public boolean isProjectModeInit()
      • setProjectModeInit

        public void setProjectModeInit(boolean init)
      • isWorkOnProject

        public boolean isWorkOnProject()
      • isWorkOnDS

        public boolean isWorkOnDS()
      • isWorkOnDGF

        public boolean isWorkOnDGF()
      • setWorkOnProjectValue

        public void setWorkOnProjectValue(java.lang.String newValue)
      • getWorkOnProjectValue

        public java.lang.String getWorkOnProjectValue()
      • confirmSelection

        public java.lang.String confirmSelection()
      • saveAsLastBaseline

        public void saveAsLastBaseline(IlrBaseline baseline)
      • isReleaseActive

        public boolean isReleaseActive()
      • isActivityActive

        public boolean isActivityActive()

© Copyright IBM Corp. 1987, 2017