Package org.wso2.carbon.andes.event.ui
Class UIUtils
java.lang.Object
org.wso2.carbon.andes.event.ui.UIUtils
This class is used by the UI to connect to services and provides utilities. Used by JSP pages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.static StringgetSubscriptionMode(String serverMode) Gets subscription mode description.static StringgetTopicID(String topicName) Get unique id for a topic
-
Constructor Details
-
UIUtils
public UIUtils()
-
-
Method Details
-
getSubscriptionMode
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 rolesstartingIndex- starting index to filtermaxRolesCount- maximum number of roles that the filtered list can contain- Returns:
- ArrayList
-
getTopicID
Get unique id for a topic- Parameters:
topicName- Name of the topic- Returns:
- Topic id
-