You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by hu...@apache.org on 2013/01/15 09:21:20 UTC

[8/26] git commit: APIChecker: Fix interface definition to take in User

APIChecker: Fix interface definition to take in User

Signed-off-by: Rohit Yadav <bh...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/b9c020fa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/b9c020fa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/b9c020fa

Branch: refs/heads/cloud-agent-with-openvswitch
Commit: b9c020fa7c80481fa9444dc6affb1beb069a8768
Parents: 0a1e4b8
Author: Rohit Yadav <bh...@apache.org>
Authored: Mon Jan 14 18:54:26 2013 -0800
Committer: Rohit Yadav <bh...@apache.org>
Committed: Mon Jan 14 19:01:25 2013 -0800

----------------------------------------------------------------------
 api/src/org/apache/cloudstack/acl/APIChecker.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b9c020fa/api/src/org/apache/cloudstack/acl/APIChecker.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/acl/APIChecker.java b/api/src/org/apache/cloudstack/acl/APIChecker.java
index 9e5c6c6..0d0dfd1 100644
--- a/api/src/org/apache/cloudstack/acl/APIChecker.java
+++ b/api/src/org/apache/cloudstack/acl/APIChecker.java
@@ -23,5 +23,8 @@ import com.cloud.utils.component.Adapter;
 // APIChecker checks the ownership and access control to API requests
 public interface APIChecker extends Adapter {
     // Interface for checking access for a role using apiname
+    // If true, apiChecker has checked the operation
+    // If false, apiChecker is unable to handle the operation or not implemented
+    // On exception, checkAccess failed don't allow
     boolean checkAccess(User user, String apiCommandName) throws PermissionDeniedException;
 }