ilog.rules.teamserver.model.permalink

Class IlrPermanentLinkHelper

  • java.lang.Object
    • ilog.rules.teamserver.model.permalink.IlrPermanentLinkHelper


  • public class IlrPermanentLinkHelper
    extends java.lang.Object
    A set of helper methods to get permanent links on Decision Center data.
    • Constructor Detail

      • IlrPermanentLinkHelper

        public IlrPermanentLinkHelper(IlrSession session)
        Constructs a new permanent link helper.

        Parameters:
        session - The session from which the link is going to be built. Can be null. If not null, the first part of the console URL will be built using the following configuration parameters:
        • teamserver.server.hostname hostanme; for example: www.mycompany.com
        • teamserver.server.port port; for example: 80
        • teamserver.server.isSecure
      • IlrPermanentLinkHelper

        public IlrPermanentLinkHelper(IlrSession session,
                              java.util.Locale locale,
                              boolean anonymous)
        Constructs a new permanent link helper using the Decision Center console default values.

        The context path and servlet path are set to the default values of the JRules distribution. The datasource is taken from the datasource of the given session.

        Parameters:
        session - The session from which the link is going to be built. Can be null. If not null, the first part of the console URL will be built using the following configuration parameters:
        • teamserver.server.hostname hostname; for example: www.mycompany.com
        • teamserver.server.port port; for example: 80
        • teamserver.server.isSecure
        locale - The locale in which the referenced resource will be displayed.
        anonymous - Tells whether this link must be generated for anonymous users or not. Note that the anonymous mode needs to be enabled otherwise the generated links will not work.
      • IlrPermanentLinkHelper

        public IlrPermanentLinkHelper(IlrSession session,
                              java.util.Locale locale,
                              java.lang.String datasource,
                              java.lang.String defaultContextPath,
                              java.lang.String facesServletPath,
                              java.lang.String defaultServerName,
                              int defaultServerPort,
                              boolean defaultIsSecure)
        Constructs a new permanent link helper.

        Parameters:
        session - The session from which the link is going to be built. Can be null. If not null, the first part of the console URL will be built using the following configuration parameters:
        • teamserver.server.hostname hostanme; for example: www.mycompany.com
        • teamserver.server.port port; for example: 80
        • teamserver.server.isSecure
        locale - The locale in which the referenced resource will be displayed.
        datasource - The datasource to access. If null, the default datasource will be used.
        defaultContextPath - The context path of the resource. For example: /teamserver.
        facesServletPath - The path of the Faces servlet as per WEB-INF/web.xml. For example: /faces or /faces/anonymous.
        defaultServerName - The name of the server to use if the session is null or no server name is specified in the configuration parameters.
        defaultServerPort - The port of the server to use if the session is null or no server port is specified in the configuration parameters.
        defaultIsSecure - Tells whether the page must be accessed in a secured way or not (http and https).
      • IlrPermanentLinkHelper

        public IlrPermanentLinkHelper(IlrSession session,
                              java.util.Locale locale,
                              java.lang.String datasource,
                              java.lang.String defaultContextPath,
                              java.lang.String facesServletPath,
                              boolean absoluteURL,
                              java.lang.String defaultServerName,
                              int defaultServerPort,
                              boolean defaultIsSecure)
        Constructs a new permanent link helper.

        Parameters:
        session - The session from which the link is going to be built. Can be null. If not null, the first part of the console URL will be built using the following configuration parameters:
        • teamserver.server.hostname hostanme; for example: www.mycompany.com
        • teamserver.server.port port; for example: 80
        • teamserver.server.isSecure
        locale - The locale in which the referenced resource will be displayed.
        datasource - The datasource to access. If null, the default datasource will be used.
        defaultContextPath - The context path of the resource. For example: /teamserver.
        absoluteURL - If true the generated links will be absolute (with hostname and port), if false the generated URLs will begin by the RTS context.
        facesServletPath - The path of the Faces servlet as per WEB-INF/web.xml. For example: /faces or /faces/anonymous.
        defaultServerName - The name of the server to use if the session is null or no server name is specified in the configuration parameters.
        defaultServerPort - The port of the server to use if the session is null or no server port is specified in the configuration parameters.
        defaultIsSecure - Tells whether the page must be accessed in a secured way or not (http and https).
    • Method Detail

      • getProjectURL

        public java.lang.String getProjectURL(java.lang.String projectName)
        Gets the project URL.

        Parameters:
        projectName - The project name.
        Returns:
        The permanent link URL of the given project.
      • getProjectURL

        public java.lang.String getProjectURL(java.lang.String projectName,
                                     java.lang.String baselineName)
        Gets the permanent link URL of the given project for a specific baseline leading to the Decision Center Home page.

        Parameters:
        projectName - The project name.
        baselineName - The baseline name.
        Returns:
        The permanent link URL of the given project.
      • getProjectURL

        public java.lang.String getProjectURL(java.lang.String projectName,
                                     IlrElementHandle baseline)
        Gets the permanent link URL of the given project for a specific baseline leading to the Decision Center Home page.

        Parameters:
        projectName - The project name.
        baseline - The baseline.
        Returns:
        The permanent link URL of the given project.
      • getReportURL

        public java.lang.String getReportURL(java.lang.String projectName)
        Gets the permanent link URL of the given project report.

        Parameters:
        projectName - The project name.
        Returns:
        The permanent link URL of the given project report.
      • getReportURL

        public java.lang.String getReportURL(java.lang.String projectName,
                                    java.lang.String baselineName)
        Gets the permanent link URL of the given project report for a specific baseline leading to the Decision Center Home page.

        Parameters:
        projectName - The project name.
        baselineName - The baseline name.
        Returns:
        The permanent link URL of the given project report.
      • getReportURL

        public java.lang.String getReportURL(java.lang.String projectName,
                                    IlrElementHandle baseline)
        Gets the permanent link URL of the given project report for a specific baseline leading to the Decision Center Home page.

        Parameters:
        projectName - The project name.
        baseline - The baseline.
        Returns:
        The permanent link URL of the given project report.
      • getElementURL

        public java.lang.String getElementURL(IlrElementHandle element,
                                     IlrElementVersion version)
        Gets the permanent link URL of the given element.
        Parameters:
        element - The element.
        version - The version.
        Returns:
        The permanent link URL of the given project and element.
      • getElementDetailsURL

        public java.lang.String getElementDetailsURL(java.lang.String projectName,
                                            IlrElementHandle element)
        Gets the permanent link URL of the given project and element.

        Parameters:
        projectName - The project name.
        element - The element.
        Returns:
        The permanent link URL of the given project and element.
      • getElementDetailsURL

        public java.lang.String getElementDetailsURL(java.lang.String projectName,
                                            java.lang.String baselineName,
                                            IlrElementHandle element)
        Gets the permanent link URL of the given project and element for a specific baseline.
        Parameters:
        projectName - The project name.
        baselineName - The baseline name.
        element - The element.
        Returns:
        The permanent link URL of the given project and element for a specific baseline.
      • getElementDetailsURL

        public java.lang.String getElementDetailsURL(java.lang.String projectName,
                                            IlrElementHandle baseline,
                                            IlrElementHandle element)
        Gets the permanent link URL of the given project and element for a specific baseline.
        Parameters:
        projectName - The project name.
        baseline - The baseline.
        element - The element.
        Returns:
        The permanent link URL of the given project and element for a specific baseline.
      • getElementDetailsURL

        public java.lang.String getElementDetailsURL(java.lang.String projectName,
                                            java.lang.String baselineName,
                                            IlrElementHandle element,
                                            boolean identifyByPath)
        Gets the permanent link URL of the given project and element for a specific baseline.

        Parameters:
        projectName - The project name.
        baselineName - The baseline name.
        element - The element.
        identifyByPath -
        Returns:
        The permanent link URL of the given project and element for a specific baseline.
      • getElementVersionDetailsURL

        public java.lang.String getElementVersionDetailsURL(java.lang.String projectName,
                                                   IlrElementHandle baseline,
                                                   IlrElementHandle element,
                                                   IlrElementVersion version)
        Gets the permanent link URL of the given project and element for a specific baseline and element version.
        Parameters:
        projectName - The project name.
        baseline - The baseline.
        element - The element.
        version - The version.
        Returns:
        The permanent link URL of the given project and element.
      • getElementVersionDetailsURL

        public java.lang.String getElementVersionDetailsURL(java.lang.String projectName,
                                                   java.lang.String baselineName,
                                                   IlrElementHandle element,
                                                   IlrElementVersion version,
                                                   boolean identifyByPath)
        Gets the permanent link URL of the given project and element for a specific baseline and element version.

        Parameters:
        projectName - The project name.
        baselineName - The baseline name.
        element - The element.
        version - The version.
        Returns:
        The permanent link URL of the given project and element.
      • getElementVersionDetailsURL

        public java.lang.String getElementVersionDetailsURL(java.lang.String elementId,
                                                   java.lang.Integer subArtifactIndex)
        Gets the permanent link URL of the given element.
        Parameters:
        elementId - The element id.
        subArtifactIndex - The artifact index (the DT row number for example).
        Returns:
        The permanent link URL of the given project and element.

© Copyright IBM Corp. 1987, 2017