Class UIUtils


  • @Deprecated
    public class UIUtils
    extends Object
    Deprecated.
    This class is used by the UI to connect to services and provides utilities. Used by JSP pages.
    • Constructor Detail

      • UIUtils

        public UIUtils()
        Deprecated.
    • Method Detail

      • getBrokerClient

        public static org.wso2.carbon.event.client.broker.BrokerClient getBrokerClient​(javax.servlet.ServletConfig config,
                                                                                       javax.servlet.http.HttpSession session,
                                                                                       javax.servlet.http.HttpServletRequest request)
        Deprecated.
        Gets the broker client for EventBrokerService Suppressing warning of unused declaration as it used by the UI (JSP pages)
        Parameters:
        config - the servlet configuration
        session - the http session
        request - the http servlet request
        Returns:
        the broker client
      • getSubscriptionMode

        public static String getSubscriptionMode​(String serverMode)
        Deprecated.
        Gets subscription mode description. Suppressing warning of unused declaration as it used by the UI (JSP pages)
        Parameters:
        serverMode - subscription mode
        Returns:
        subscription mode description
      • getFilteredRoleList

        public static ArrayList<org.wso2.carbon.event.stub.internal.xsd.TopicRolePermission> getFilteredRoleList​(ArrayList<org.wso2.carbon.event.stub.internal.xsd.TopicRolePermission> fullList,
                                                                                                                 int startingIndex,
                                                                                                                 int maxRolesCount)
        Deprecated.
        Filter the full user-roles list to suit the range. Suppressing warning of unused declaration as it used by the UI (JSP pages)
        Parameters:
        fullList - full list of roles
        startingIndex - starting index to filter
        maxRolesCount - maximum number of roles that the filtered list can contain
        Returns:
        ArrayList