public boolean isUserAuthorized(String userId, List<String> groupIds, Permission permission, Resource resource) {
return commandExecutor.execute(new AuthorizationCheckCmd(userId, groupIds, permission, resource, null));
}
public boolean isUserAuthorized(String userId, List<String> groupIds, Permission permission, Resource resource, String resourceId) {
return commandExecutor.execute(new AuthorizationCheckCmd(userId, groupIds, permission, resource, resourceId));
}