public class JavaUtil extends Object
| Constructor and Description |
|---|
JavaUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
getObject(org.apache.axiom.om.OMElement omElement)
returns an object with the type of attibute class.
|
static String |
getResourcePath(String topicName,
String topicStoragePath) |
static Subscription |
getSubscription(org.wso2.carbon.registry.core.Resource subscriptionResource)
creates the subscription object from the subscription resource
|
static String |
getSubscriptionMode(String topicName) |
static String |
getValue(org.apache.axiom.om.OMElement omElement,
String localPart) |
static boolean |
isAdmin(String username)
Check if the given user has the admin role
|
public static Object getObject(org.apache.axiom.om.OMElement omElement) throws EventBrokerConfigurationException
omElement - EventBrokerConfigurationExceptionpublic static Subscription getSubscription(org.wso2.carbon.registry.core.Resource subscriptionResource)
subscriptionResource - public static boolean isAdmin(String username) throws EventBrokerException
username - - the user to be checked for permissionsEventBrokerException - - if fails to get list of user rolesCopyright © 2017 WSO2. All rights reserved.