incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mlsoren...@apache.org
Subject [16/50] git commit: APIChecker: Fix interface definition to take in User
Date Wed, 16 Jan 2013 20:59:58 GMT
APIChecker: Fix interface definition to take in User

Signed-off-by: Rohit Yadav <bhaisaab@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/resizevolume
Commit: b9c020fa7c80481fa9444dc6affb1beb069a8768
Parents: 0a1e4b8
Author: Rohit Yadav <bhaisaab@apache.org>
Authored: Mon Jan 14 18:54:26 2013 -0800
Committer: Rohit Yadav <bhaisaab@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;
 }


Mime
View raw message