Class UIUtils

java.lang.Object
org.wso2.carbon.andes.event.ui.UIUtils

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

    • UIUtils

      public UIUtils()
  • Method Details

    • getSubscriptionMode

      public static String getSubscriptionMode(String serverMode)
      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.andes.event.stub.core.TopicRolePermission> getFilteredRoleList(ArrayList<org.wso2.carbon.andes.event.stub.core.TopicRolePermission> fullList, int startingIndex, int maxRolesCount)
      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
    • getTopicID

      public static String getTopicID(String topicName)
      Get unique id for a topic
      Parameters:
      topicName - Name of the topic
      Returns:
      Topic id