Skip to content

Commit e42a262

Browse files
committed
Remove old APIs and old security checker plugins. Also use QuerySelector
adapater in ACL search routine.
1 parent e6238ba commit e42a262

41 files changed

Lines changed: 90 additions & 3036 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package org.apache.cloudstack.acl;
2+
3+
import java.util.List;
4+
5+
public interface AclProxyService {
6+
7+
List<String> listAclGroupsByAccount(long accountId);
8+
9+
}

‎api/src/org/apache/cloudstack/acl/QuerySelector.java‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,12 @@ public interface QuerySelector extends Adapter {
5454
*/
5555
List<Long> getAuthorizedResources(Account caller, String action);
5656

57+
/**
58+
* Check if this account is associated with a policy with scope of ALL
59+
* @param caller account to check
60+
* @param action action.
61+
* @return true if this account is attached with a policy for the given action of ALL scope.
62+
*/
63+
boolean isGrantedAll(Account caller, String action);
5764

5865
}

‎api/src/org/apache/cloudstack/api/ResponseGenerator.java‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,13 @@
2222
import java.util.List;
2323
import java.util.Map;
2424

25-
import org.apache.cloudstack.acl.AclGroup;
26-
import org.apache.cloudstack.acl.AclPolicy;
2725
import org.apache.cloudstack.affinity.AffinityGroup;
2826
import org.apache.cloudstack.affinity.AffinityGroupResponse;
2927
import org.apache.cloudstack.api.ApiConstants.HostDetails;
3028
import org.apache.cloudstack.api.ApiConstants.VMDetails;
3129
import org.apache.cloudstack.api.ResponseObject.ResponseView;
3230
import org.apache.cloudstack.api.command.user.job.QueryAsyncJobResultCmd;
3331
import org.apache.cloudstack.api.response.AccountResponse;
34-
import org.apache.cloudstack.api.response.AclGroupResponse;
35-
import org.apache.cloudstack.api.response.AclPolicyResponse;
3632
import org.apache.cloudstack.api.response.ApplicationLoadBalancerResponse;
3733
import org.apache.cloudstack.api.response.AsyncJobResponse;
3834
import org.apache.cloudstack.api.response.AutoScalePolicyResponse;
@@ -440,8 +436,4 @@ LBHealthCheckResponse createLBHealthCheckPolicyResponse(List<? extends HealthChe
440436

441437
IsolationMethodResponse createIsolationMethodResponse(IsolationType method);
442438

443-
AclPolicyResponse createAclPolicyResponse(AclPolicy policy);
444-
445-
AclGroupResponse createAclGroupResponse(AclGroup group);
446-
447439
}

‎api/src/org/apache/cloudstack/api/command/admin/acl/AddAccountToAclGroupCmd.java‎

Lines changed: 0 additions & 121 deletions
This file was deleted.

‎api/src/org/apache/cloudstack/api/command/admin/acl/AddAclPermissionToAclPolicyCmd.java‎

Lines changed: 0 additions & 144 deletions
This file was deleted.

0 commit comments

Comments
 (0)