You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by vt...@apache.org on 2004/03/20 00:22:58 UTC

svn commit: rev 9639 - incubator/directory/janus/trunk/core/api/src/java/org/apache/janus/authorization/policy

Author: vtence
Date: Fri Mar 19 15:22:57 2004
New Revision: 9639

Added:
   incubator/directory/janus/trunk/core/api/src/java/org/apache/janus/authorization/policy/MutablePolicyContext.java
Log:
o DIR-7: Implemented mutability on DefaultPolicyContext

Added: incubator/directory/janus/trunk/core/api/src/java/org/apache/janus/authorization/policy/MutablePolicyContext.java
==============================================================================
--- (empty file)
+++ incubator/directory/janus/trunk/core/api/src/java/org/apache/janus/authorization/policy/MutablePolicyContext.java	Fri Mar 19 15:22:57 2004
@@ -0,0 +1,31 @@
+/*
+ *   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.janus.authorization.policy;
+
+import org.apache.janus.authorization.Permission;
+
+/**
+ * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
+ */
+public interface MutablePolicyContext extends PolicyContext
+{
+    boolean addToExcludedPolicy( Permission p );
+
+    boolean addToUncheckedPolicy( Permission p );
+
+    boolean addToRole( String roleName, Permission p );
+}