isUserAuthorized
public static boolean isUserAuthorized(int tenantId,
String username,
String permission)
throws org.wso2.carbon.user.api.UserStoreException,
org.wso2.carbon.registry.core.exceptions.RegistryException
- Parameters:
tenantId - Tenant ID of the user
username - User name of the user
permission - Required permission to access the particular component
- Returns:
- true if the user has the required permission, unless false
- Throws:
UserStoreException,RegistryException
org.wso2.carbon.user.api.UserStoreException
org.wso2.carbon.registry.core.exceptions.RegistryException