public class AuthorizationUtil extends Object
| Constructor and Description |
|---|
AuthorizationUtil() |
public static boolean isUserAuthorized(int tenantId,
String username,
String permission)
throws org.wso2.carbon.user.api.UserStoreException,
org.wso2.carbon.registry.core.exceptions.RegistryException
tenantId - Tenant ID of the userusername - User name of the userpermission - Required permission to access the particular componentUserStoreException,RegistryExceptionorg.wso2.carbon.user.api.UserStoreExceptionorg.wso2.carbon.registry.core.exceptions.RegistryExceptionCopyright © 2016 WSO2. All rights reserved.