public class WSAuthorizationManager extends Object implements org.wso2.carbon.user.core.AuthorizationManager
| Constructor and Description |
|---|
WSAuthorizationManager(String serverUrl,
String cookie,
org.apache.axis2.context.ConfigurationContext configCtxt) |
public void authorizeRole(String roleName, String resourceId, String action) throws org.wso2.carbon.user.core.UserStoreException
authorizeRole in interface org.wso2.carbon.user.api.AuthorizationManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void authorizeUser(String userName, String resourceId, String action) throws org.wso2.carbon.user.core.UserStoreException
authorizeUser in interface org.wso2.carbon.user.api.AuthorizationManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void clearResourceAuthorizations(String resourceId) throws org.wso2.carbon.user.core.UserStoreException
clearResourceAuthorizations in interface org.wso2.carbon.user.api.AuthorizationManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void clearRoleActionOnAllResources(String roleName, String action) throws org.wso2.carbon.user.core.UserStoreException
clearRoleActionOnAllResources in interface org.wso2.carbon.user.api.AuthorizationManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void clearRoleAuthorization(String roleName, String resourceId, String action) throws org.wso2.carbon.user.core.UserStoreException
clearRoleAuthorization in interface org.wso2.carbon.user.api.AuthorizationManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void clearRoleAuthorization(String roleName) throws org.wso2.carbon.user.core.UserStoreException
clearRoleAuthorization in interface org.wso2.carbon.user.api.AuthorizationManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void clearUserAuthorization(String userName, String resourceId, String action) throws org.wso2.carbon.user.core.UserStoreException
clearUserAuthorization in interface org.wso2.carbon.user.api.AuthorizationManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void clearUserAuthorization(String userName) throws org.wso2.carbon.user.core.UserStoreException
clearUserAuthorization in interface org.wso2.carbon.user.api.AuthorizationManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void denyRole(String roleName, String resourceId, String action) throws org.wso2.carbon.user.core.UserStoreException
denyRole in interface org.wso2.carbon.user.api.AuthorizationManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void denyUser(String userName, String resourceId, String action) throws org.wso2.carbon.user.core.UserStoreException
denyUser in interface org.wso2.carbon.user.api.AuthorizationManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic String[] getAllowedRolesForResource(String resourceId, String action) throws org.wso2.carbon.user.core.UserStoreException
getAllowedRolesForResource in interface org.wso2.carbon.user.api.AuthorizationManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic String[] getAllowedUIResourcesForUser(String userName, String permissionRootPath) throws org.wso2.carbon.user.core.UserStoreException
getAllowedUIResourcesForUser in interface org.wso2.carbon.user.api.AuthorizationManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic String[] getDeniedRolesForResource(String resourceId, String action) throws org.wso2.carbon.user.core.UserStoreException
getDeniedRolesForResource in interface org.wso2.carbon.user.api.AuthorizationManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic String[] getExplicitlyAllowedUsersForResource(String resourceId, String action) throws org.wso2.carbon.user.core.UserStoreException
getExplicitlyAllowedUsersForResource in interface org.wso2.carbon.user.api.AuthorizationManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic String[] getExplicitlyDeniedUsersForResource(String resourceId, String action) throws org.wso2.carbon.user.core.UserStoreException
getExplicitlyDeniedUsersForResource in interface org.wso2.carbon.user.api.AuthorizationManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic boolean isRoleAuthorized(String roleName, String resourceId, String action) throws org.wso2.carbon.user.core.UserStoreException
isRoleAuthorized in interface org.wso2.carbon.user.api.AuthorizationManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic boolean isUserAuthorized(String userName, String resourceId, String action) throws org.wso2.carbon.user.core.UserStoreException
isUserAuthorized in interface org.wso2.carbon.user.api.AuthorizationManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic void resetPermissionOnUpdateRole(String roleName, String newRoleName) throws org.wso2.carbon.user.core.UserStoreException
resetPermissionOnUpdateRole in interface org.wso2.carbon.user.api.AuthorizationManagerorg.wso2.carbon.user.core.UserStoreExceptionpublic int getTenantId()
throws org.wso2.carbon.user.core.UserStoreException
getTenantId in interface org.wso2.carbon.user.api.AuthorizationManagerorg.wso2.carbon.user.core.UserStoreExceptionCopyright © 2015 WSO2. All rights reserved.