You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by an...@apache.org on 2016/01/12 17:07:28 UTC
svn commit: r1724266 - in
/jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol:
L1_IntroductionTest.java L2_AccessControlManagerTest.java
L3_AccessControlListTest.java L7_RestrictionsTest.java
Author: angela
Date: Tue Jan 12 16:07:27 2016
New Revision: 1724266
URL: http://svn.apache.org/viewvc?rev=1724266&view=rev
Log:
OAK-3008 : Training material for Oak security (WIP)
Modified:
jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L1_IntroductionTest.java
jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L2_AccessControlManagerTest.java
jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L3_AccessControlListTest.java
jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L7_RestrictionsTest.java
Modified: jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L1_IntroductionTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L1_IntroductionTest.java?rev=1724266&r1=1724265&r2=1724266&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L1_IntroductionTest.java (original)
+++ jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L1_IntroductionTest.java Tue Jan 12 16:07:27 2016
@@ -41,7 +41,7 @@ import org.apache.jackrabbit.oak.Abstrac
* Question: Where is the access control manager being used for?
* Question: Who is the expected API consumer?
* Question: What are the characteristics of this areas?
- * Question: Can identify areas where oak-jcr and oak-core actually make use of the access control management API?
+ * Question: Can you identify areas where oak-jcr and oak-core actually make use of the access control management API?
*
* - Configuration
* Look at the default implementation(s) of the {@link org.apache.jackrabbit.oak.spi.security.authorization.AuthorizationConfiguration}
@@ -57,7 +57,7 @@ import org.apache.jackrabbit.oak.Abstrac
*
* Question: What means does Oak provide to change or extend the access control management?
* Question: Can you identify the interfaces that you needed to implement?
- * Question: Would it be possible to only replace the implementation of {@link AccessControlManager}?
+ * Question: Would it be possible to only replace the implementation of {@link javax.jcr.security.AccessControlManager}?
* How could you achieve this?
* And what would be the consequences for the whole authorization module?
*
Modified: jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L2_AccessControlManagerTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L2_AccessControlManagerTest.java?rev=1724266&r1=1724265&r2=1724266&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L2_AccessControlManagerTest.java (original)
+++ jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L2_AccessControlManagerTest.java Tue Jan 12 16:07:27 2016
@@ -125,7 +125,7 @@ import org.apache.jackrabbit.test.Abstra
* policies, the specification defines the nature of access control policies an
* implementation detail.
*
- * - {@link testPoliciesAtNullPath()}
+ * - {@link #testPoliciesAtNullPath()}
* All test above use a regular, absolute path pointing to a Node to read and
* write access control policies.
* As of JSR 283 it is also allowed to use 'null' instead. Use this exercise
Modified: jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L3_AccessControlListTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L3_AccessControlListTest.java?rev=1724266&r1=1724265&r2=1724266&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L3_AccessControlListTest.java (original)
+++ jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L3_AccessControlListTest.java Tue Jan 12 16:07:27 2016
@@ -55,7 +55,7 @@ import org.apache.jackrabbit.test.NotExe
* Use this test to play with the different ways of adding one (or multiple) ACE
* to the list. Verify your expectations and keep an eye on the size of the ACL.
*
- * - {@link #testRemoveEntries()}
+ * - {@link #testRemoveEntry()}
* Remove one ACE that has been added to the policy before and verify the result.
*
* - {@link #testReorderEntries()}
Modified: jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L7_RestrictionsTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L7_RestrictionsTest.java?rev=1724266&r1=1724265&r2=1724266&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L7_RestrictionsTest.java (original)
+++ jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/authorization/accesscontrol/L7_RestrictionsTest.java Tue Jan 12 16:07:27 2016
@@ -66,7 +66,7 @@ import org.apache.jackrabbit.test.NotExe
* Create an new ACE with a single valued restriction like e.g. the path globbing
* restriction.
*
- * - {@link #testAddEntryWithMultipleRestrictions()}
+ * - {@link #testAddEntryWithMultiValuedRestriction()}
* Create an new ACE with multiple restrictions mixing both single and multi-
* valued restrictions.
*