public class UIUtils extends Object
Constructor and Description |
---|
UIUtils() |
Modifier and Type | Method and Description |
---|---|
static org.wso2.carbon.andes.stub.AndesAdminServiceStub |
getAndesAdminServiceStub(javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletRequest request)
Gets the AndesAdminServices stub.
|
static org.wso2.carbon.andes.event.stub.service.AndesEventAdminServiceStub |
getAndesEventAdminServiceStub(javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session,
javax.servlet.http.HttpServletRequest request)
Get the AndesEventAdminService stub
|
static org.wso2.carbon.andes.mgt.stub.AndesManagerServiceStub |
getAndesManagerServiceStub(javax.servlet.ServletConfig config,
javax.servlet.http.HttpSession session)
Get Andes Manager Service stub.
|
static org.wso2.carbon.andes.stub.admin.types.Queue[] |
getFilteredQueueList(org.wso2.carbon.andes.stub.admin.types.Queue[] fullList,
int startingIndex,
int maxQueueCount)
filter the full queue list to suit the range
Suppressing warning of unused declaration as it used by the UI (JSP pages)
|
static ArrayList<org.wso2.carbon.andes.stub.admin.types.QueueRolePermission> |
getFilteredRoleList(ArrayList<org.wso2.carbon.andes.stub.admin.types.QueueRolePermission> allPermissions,
int startingIndex,
int maxRolesCount)
Filter the full user-roles list to suit the range.
|
static org.wso2.carbon.andes.stub.admin.types.Subscription[] |
getFilteredSubscriptionList(org.wso2.carbon.andes.stub.admin.types.Subscription[] fullList,
int startingIndex,
int maxSubscriptionCount)
Gets filtered list of subscription list
Suppressing warning of unused declaration as it used by the UI (JSP pages)
|
static String |
getHtmlString(String message)
Gets html string value encoded.
|
static String |
getTCPConnectionURL(String userName,
String accessKey)
Gets the TCP connection url to reach the broker by using the currently logged in user and the access key for
the user, generated by andes Authentication Service
Suppressing warning of unused declaration as it used by the UI (JSP pages)
|
static boolean |
isSSLOnly()
Checks if its SSL
|
public static final String QPID_CONF
public static String getHtmlString(String message)
message
- the string valuepublic static org.wso2.carbon.andes.stub.AndesAdminServiceStub getAndesAdminServiceStub(javax.servlet.ServletConfig config, javax.servlet.http.HttpSession session, javax.servlet.http.HttpServletRequest request) throws org.apache.axis2.AxisFault
config
- the servlet configurationsession
- the http sessionrequest
- the http servlet requestorg.apache.axis2.AxisFault
public static org.wso2.carbon.andes.mgt.stub.AndesManagerServiceStub getAndesManagerServiceStub(javax.servlet.ServletConfig config, javax.servlet.http.HttpSession session) throws org.apache.axis2.AxisFault
config
- the servlet configurationsession
- the http sessionException
org.apache.axis2.AxisFault
public static org.wso2.carbon.andes.event.stub.service.AndesEventAdminServiceStub getAndesEventAdminServiceStub(javax.servlet.ServletConfig config, javax.servlet.http.HttpSession session, javax.servlet.http.HttpServletRequest request) throws org.apache.axis2.AxisFault
config
- the servlet configurationsession
- the http sessionrequest
- the http servlet requestorg.apache.axis2.AxisFault
public static org.wso2.carbon.andes.stub.admin.types.Queue[] getFilteredQueueList(org.wso2.carbon.andes.stub.admin.types.Queue[] fullList, int startingIndex, int maxQueueCount)
fullList
- a complete list of queuesstartingIndex
- the starting index to start from the queue listmaxQueueCount
- the maximum queue count to limitpublic static org.wso2.carbon.andes.stub.admin.types.Subscription[] getFilteredSubscriptionList(org.wso2.carbon.andes.stub.admin.types.Subscription[] fullList, int startingIndex, int maxSubscriptionCount)
fullList
- the complete list of subscriptionsstartingIndex
- the starting index to start from the subscription listmaxSubscriptionCount
- the maximum subscription count to limitpublic static String getTCPConnectionURL(String userName, String accessKey) throws FileNotFoundException, XMLStreamException, org.wso2.andes.kernel.AndesException
userName
- - currently logged in useraccessKey
- - the key (uuid) generated by authentication serviceFileNotFoundException
XMLStreamException
org.wso2.andes.kernel.AndesException
public static boolean isSSLOnly() throws FileNotFoundException, XMLStreamException
FileNotFoundException
XMLStreamException
public static ArrayList<org.wso2.carbon.andes.stub.admin.types.QueueRolePermission> getFilteredRoleList(ArrayList<org.wso2.carbon.andes.stub.admin.types.QueueRolePermission> allPermissions, int startingIndex, int maxRolesCount)
allPermissions
- full list of rolesstartingIndex
- starting index to filtermaxRolesCount
- maximum number of roles that the filtered list can containCopyright © 2018 WSO2. All rights reserved.