You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by tr...@apache.org on 2005/09/17 01:57:06 UTC
svn commit: r289676 -
/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/acl/ACDFEngine.java
Author: trustin
Date: Fri Sep 16 16:57:03 2005
New Revision: 289676
URL: http://svn.apache.org/viewcvs?rev=289676&view=rev
Log:
Added skeleton implementation of ACDFEngine.
Added:
directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/acl/ACDFEngine.java (with props)
Added: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/acl/ACDFEngine.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/acl/ACDFEngine.java?rev=289676&view=auto
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/acl/ACDFEngine.java (added)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/acl/ACDFEngine.java Fri Sep 16 16:57:03 2005
@@ -0,0 +1,53 @@
+/*
+ * @(#) $Id$
+ *
+ * Copyright 2004 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.ldap.common.acl;
+
+import java.util.Collection;
+
+import javax.naming.Name;
+import javax.naming.directory.Attributes;
+
+import org.apache.ldap.common.exception.LdapNoPermissionException;
+
+public class ACDFEngine
+{
+ public ACDFEngine()
+ {
+ }
+
+ public void checkPermission(
+ Name username,
+ Name entryName, String attrId, Object attrValue, Attributes entry,
+ Collection requiredGrants, Collection aciTuples ) throws LdapNoPermissionException
+ {
+ if( !hasPermission( username, entryName, attrId, attrValue, entry,
+ requiredGrants, aciTuples ) )
+ {
+ throw new LdapNoPermissionException();
+ }
+ }
+
+ public boolean hasPermission(
+ Name username,
+ Name entryName, String attrId, Object attrValue, Attributes entry,
+ Collection requiredGrants, Collection aciTuples )
+ {
+ return false;
+ }
+}
Propchange: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/acl/ACDFEngine.java
------------------------------------------------------------------------------
svn:keywords = HeadURL Id LastChangedBy LastChangedDate LastChangedRevision