jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1040606 - in /jackrabbit/trunk: jackrabbit-api/src/main/java/org/apache/jackrabbit/api/security/ jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/authorization/
Date Tue, 30 Nov 2010 16:09:56 GMT
Author: angela
Date: Tue Nov 30 16:09:55 2010
New Revision: 1040606

URL: http://svn.apache.org/viewvc?rev=1040606&view=rev
Log:
JCR-2824 -  Add RepositoryException to JackrabbitAccessControlList#getRestrictionNames and
#getRestrictionType

Modified:
    jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/security/JackrabbitAccessControlList.java
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/authorization/JackrabbitAccessControlListTest.java

Modified: jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/security/JackrabbitAccessControlList.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/security/JackrabbitAccessControlList.java?rev=1040606&r1=1040605&r2=1040606&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/security/JackrabbitAccessControlList.java
(original)
+++ jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/security/JackrabbitAccessControlList.java
Tue Nov 30 16:09:55 2010
@@ -41,8 +41,9 @@ public interface JackrabbitAccessControl
      *
      * @return the names of the supported restrictions or an empty array.
      * @see #addEntry(Principal, Privilege[], boolean, Map)
+     * @throws RepositoryException If an error occurs.
      */
-    String[] getRestrictionNames();
+    String[] getRestrictionNames() throws RepositoryException;
 
     /**
      * Return the expected {@link javax.jcr.PropertyType property type} of the
@@ -51,8 +52,9 @@ public interface JackrabbitAccessControl
      * @param restrictionName Any of the restriction names retrieved from
      * {@link #getRestrictionNames()}.
      * @return expected {@link javax.jcr.PropertyType property type}.
+     * @throws RepositoryException If an error occurs.
      */
-    int getRestrictionType(String restrictionName);
+    int getRestrictionType(String restrictionName) throws RepositoryException;
 
     /**
      * Returns <code>true</code> if this policy does not yet define any

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/authorization/JackrabbitAccessControlListTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/authorization/JackrabbitAccessControlListTest.java?rev=1040606&r1=1040605&r2=1040606&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/authorization/JackrabbitAccessControlListTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/authorization/JackrabbitAccessControlListTest.java
Tue Nov 30 16:09:55 2010
@@ -44,6 +44,7 @@ public class JackrabbitAccessControlList
 
     private JackrabbitAccessControlList templ;
 
+    @Override
     protected void setUp() throws Exception {
         super.setUp();
 
@@ -63,6 +64,7 @@ public class JackrabbitAccessControlList
         }
     }
 
+    @Override
     protected void tearDown() throws Exception {
         // make sure transient ac-changes are reverted.
         superuser.refresh(false);
@@ -83,11 +85,11 @@ public class JackrabbitAccessControlList
         }
     }
 
-    public void testGetRestrictionNames() {
+    public void testGetRestrictionNames() throws RepositoryException {
         assertNotNull(templ.getRestrictionNames());
     }
 
-    public void testGetRestrictionType() {
+    public void testGetRestrictionType() throws RepositoryException {
         String[] names = templ.getRestrictionNames();
         for (String name : names) {
             int type = templ.getRestrictionType(name);



Mime
View raw message