You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by an...@apache.org on 2009/03/10 11:31:16 UTC

svn commit: r752037 - /jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/api/jsr283/security/AccessControlDiscoveryTest.java

Author: angela
Date: Tue Mar 10 10:31:16 2009
New Revision: 752037

URL: http://svn.apache.org/viewvc?rev=752037&view=rev
Log:
javadoc

Modified:
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/api/jsr283/security/AccessControlDiscoveryTest.java

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/api/jsr283/security/AccessControlDiscoveryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/api/jsr283/security/AccessControlDiscoveryTest.java?rev=752037&r1=752036&r2=752037&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/api/jsr283/security/AccessControlDiscoveryTest.java (original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/api/jsr283/security/AccessControlDiscoveryTest.java Tue Mar 10 10:31:16 2009
@@ -128,8 +128,8 @@
 
     /**
      *
-     * @throws RepositoryException
-     * @throws NotExecutableException
+     * @throws RepositoryException If an error occurs.
+     * @throws NotExecutableException If the test cannot be executed.
      */
     public void testWritePrivilege() throws RepositoryException, NotExecutableException {
         Privilege w = acMgr.privilegeFromName(Privilege.JCR_WRITE);
@@ -142,7 +142,7 @@
      * Tests if the privilege name is treated as JCR Name and consequently
      * reflects changes made to the namespace prefix.
      * 
-     * @throws RepositoryException
+     *  @throws RepositoryException If an error occurs.
      */
     public void testPrivilegeName() throws RepositoryException {
         Privilege allPriv = acMgr.privilegeFromName(Privilege.JCR_ALL);
@@ -174,7 +174,7 @@
 
     /**
      *
-     * @throws RepositoryException
+     * @throws RepositoryException If an error occurs.
      */
     public void testGetPrivileges() throws RepositoryException {
         acMgr.getPrivileges(testRootNode.getPath());
@@ -182,7 +182,7 @@
 
     /**
      *
-     * @throws RepositoryException
+     * @throws RepositoryException If an error occurs.
      */
     public void testGetPrivilegesOnNonExistingNode() throws RepositoryException {
         String path = getPathToNonExistingNode();
@@ -196,8 +196,8 @@
 
     /**
      *
-     * @throws RepositoryException
-     * @throws NotExecutableException
+     * @throws RepositoryException If an error occurs.
+     * @throws NotExecutableException If the test cannot be executed.
      */
     public void testGetPrivilegesOnProperty() throws RepositoryException, NotExecutableException {
         String path = getPathToProperty();
@@ -211,7 +211,7 @@
 
     /**
      *
-     * @throws RepositoryException
+     * @throws RepositoryException If an error occurs.
      */
     public void testHasPrivileges() throws RepositoryException {
         Privilege[] privs = acMgr.getPrivileges(testRootNode.getPath());
@@ -220,7 +220,7 @@
 
     /**
      *
-     * @throws RepositoryException
+     * @throws RepositoryException If an error occurs.
      */
     public void testHasIndividualPrivileges() throws RepositoryException {
         Privilege[] privs = acMgr.getPrivileges(testRootNode.getPath());
@@ -233,8 +233,8 @@
 
     /**
      *
-     * @throws RepositoryException
-     * @throws NotExecutableException
+     * @throws RepositoryException If an error occurs.
+     * @throws NotExecutableException If the test cannot be executed.
      */
     public void testNotHasPrivileges() throws RepositoryException, NotExecutableException {
         Privilege[] privs = acMgr.getPrivileges(testRootNode.getPath());
@@ -261,7 +261,7 @@
 
     /**
      *
-     * @throws RepositoryException
+     * @throws RepositoryException If an error occurs.
      */
     public void testHasPrivilegesOnNotExistingNode() throws RepositoryException {
         String path = getPathToNonExistingNode();
@@ -275,8 +275,8 @@
 
     /**
      *
-     * @throws RepositoryException
-     * @throws NotExecutableException
+     * @throws RepositoryException If an error occurs.
+     * @throws NotExecutableException If the test cannot be executed.
      */
     public void testHasPrivilegesOnProperty() throws RepositoryException, NotExecutableException {
         String path = getPathToProperty();
@@ -290,8 +290,8 @@
 
     /**
      *
-     * @throws RepositoryException
-     * @throws NotExecutableException
+     * @throws RepositoryException If an error occurs.
+     * @throws NotExecutableException If the test cannot be executed.
      */
     public void testHasPrivilegesEmptyArray() throws RepositoryException, NotExecutableException {
         assertTrue(acMgr.hasPrivileges(testRootNode.getPath(), new Privilege[0]));
@@ -299,7 +299,12 @@
 
     //--------------------------------------------------------------------------
     /**
-     * Retrieve the 'real' jcr name from a given privilege name constant.
+     * Retrieve the prefixed jcr name from a given privilege name constant.
+     *
+     * @param privilegeNameConstant
+     * @param session
+     * @return
+     * @throws RepositoryException If an error occurs.
      */
     private static String getJCRName(String privilegeNameConstant, Session session) throws RepositoryException {
         int pos = privilegeNameConstant.indexOf('}');