Interface UIResourceLocator

    • Method Detail

      • createWebComponentForRootSession

        UIHttpManagerComponent createWebComponentForRootSession()
        Returns a factory for creating a URL that, when used, creates a new navigation context in a separate root user session (namely, a Web Component).

        When the property ebx.servlet.useLocalUrl in the EBX® main configuration file is set to 'true', the URL obtained can be used as a permanent link (permalink) to access the current EBX® repository.

        The authentication must be properly managed by passing adequate parameters or the end user will need to authenticate by logging in.

        The Web Component must be invoked within a pop-up or inner pop-up (or iFrame). A standard inner pop-up can be created by using the method UIComponentWriter.buildButtonPreview(String).

        Since:
        5.2.5
        See Also:
        createWebComponentForSubSession(), getURLForSelection(Adaptation)
      • createWebComponentForSubSession

        UIHttpManagerComponent createWebComponentForSubSession()
        Returns a factory for creating a URL that, when used, creates a new navigation context in a separate sub-session (namely, a Web Component). As this uses a sub-session, the URL obtained by this type of component is not a permanent link (permalink). It is automatically authenticated and inherits all its properties from its parent session, except trackingInfo (these inherited properties are available using the Session interface).

        The Web Component must be invoked within a pop-up, inner pop-up, or iFrame. A standard inner pop-up can be created by using the method UIComponentWriter.buildButtonPreview(String).

        Since:
        5.2.5
        See Also:
        createWebComponentForRootSession(), getURLForSelection(Adaptation)
      • getURLForSelection

        String getURLForSelection​(WorkItemKey aWorkItemKey)
        Returns a URL that, when used, changes the current navigation context to the specified work item. In this case, the workflow section will be set to WorkflowView.INBOX

        It is recommended to keep the target of the link in the same window.

        Parameters:
        aWorkItemKey - key of the work item to be selected
        Since:
        5.2.3
      • getURLForSelection

        String getURLForSelection​(WorkItemKey aWorkItemKey,
                                  boolean shouldAllocateAndStart)
        Returns a URL that, when used, changes the current navigation context to the specified work item. In this case, the workflow section will be set to WorkflowView.INBOX

        It is recommended to keep the target of the link in the same window.

        Parameters:
        aWorkItemKey - key of the work item to be selected
        shouldAllocateAndStart - if true the target work item will be automatically allocated to and started for the current user; does nothing if this is already the case.
        Since:
        5.4.3
      • getURLForSelection

        String getURLForSelection​(WorkflowView aWorkflowView)
        Returns a URL that, when used, changes the current navigation context to the specified data workflows section.

        It is recommended to keep the target of the link in the same window.

        Parameters:
        aWorkflowView - key of the workflow view to be selected
        Since:
        5.4.3
      • getURLForPerspectiveSelection

        String getURLForPerspectiveSelection​(String aPerspectiveName)
        Returns a URL that, when used, changes the current navigation context to the specified perspective.

        It is recommended to keep the target of the link in the same window.

        Parameters:
        aPerspectiveName - name of the perspective to be selected
        Since:
        5.9.0 fix B
      • getURLForPerspectiveSelection

        String getURLForPerspectiveSelection​(String aPerspectiveName,
                                             String aPerspectiveActionName)
        Returns a URL that, when used, changes the current navigation context to the specified perspective action.

        It is recommended to keep the target of the link in the same window.

        Parameters:
        aPerspectiveName - name of the perspective to be selected
        aPerspectiveActionName - name of the perspective action to be selected
        Since:
        5.9.0 fix B
      • getURLForAjaxComponent

        String getURLForAjaxComponent​(String ajaxComponentName)
        Returns the URL for the specified Ajax component.
        Parameters:
        ajaxComponentName - name of the Ajax component declared either in the data model or in the module.
        See Also:
        UIAjaxComponent
      • getURLForAjaxComponent

        String getURLForAjaxComponent​(String ajaxComponentName,
                                      Map<String,​String> parameters)
        Returns the URL for the specified Ajax component.
        Parameters:
        ajaxComponentName - name of the Ajax component declared either in the data model or in the module. If the Ajax component is declared in the module, the name should be prefixed by the module's name and '@' for example module_name@ajax_component_name.
        parameters - map defining HTTP parameters that are passed in the Ajax request. It maps HTTP parameter names with their values.
        See Also:
        UIAjaxComponent
      • getURLForResource

        String getURLForResource​(String aResourcePath)
        Returns the URL string for the specified web resource.

        The resource must be in the same web application as the service.

        Parameters:
        aResourcePath - must begin with a "/" and is interpreted as relative to the module (web application) root.
      • getURLForResource

        String getURLForResource​(ResourceType aResourceType,
                                 String aResourceName,
                                 Locale aLocale)
        Returns the URL of the specified web resource in the current module (that is, the module of the current adaptation) for the specified locale.
        Throws:
        UnsupportedOperationException - if the resource type is internal (not accessible from HTTP).