Author: angela
Date: Mon Feb 22 15:50:13 2016
New Revision: 1731666
URL: http://svn.apache.org/viewvc?rev=1731666&view=rev
Log:
OAK-3210 : Complete privilege management related exercises (WIP)
Modified:
jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/privilege/L1_IntroductionTest.java
jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/privilege/L3_BuiltInPrivilegesTest.java
Modified:
jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/privilege/L1_IntroductionTest.java
URL:
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/privilege/L1_IntroductionTest.java?rev=1731666&r1=1731665&r2=1731666&view=diff
==============================================================================
---
jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/privilege/L1_IntroductionTest.java
(original)
+++
jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/privilege/L1_IntroductionTest.java
Mon Feb 22 15:50:13 2016
@@ -32,11 +32,26 @@ import org.apache.jackrabbit.oak.Abstrac
* Having completed this section should also be familiar with the internals of
* privilege management in Oak.
*
- *
* Exercises:
*
- * - TODO
+ * - Privilege Management in the JCR API
+ * Search for interfaces and methods related to privilege management in JSR
283
+ * and the corresponding JCR API definitions.
+ *
+ * Question: Can you list all interfaces and methods?
+ *
+ * - Privilege Management in Jackrabbit API extensions
+ * Search for interfaces and methods related to privilege management in the
+ * Jackrabbit API extensions.
+ *
+ * Question: Can you list all interfaces and methods?
+ * Question: What can you say wrt the difference in privilege management
between JCR and Jackrabbit API?
+ *
+ * - Privilege Management in Oak
+ * Search the Oak security modules for privilege related extensions.
*
+ * Question: Can you list the interfaces, classes, methods?
+ * Question: Can you describe the relation between these extensions and the
JCR|Jackrabbit API?
*
* Related Exercises:
*
-----------------------------------------------------------------------------
Modified:
jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/privilege/L3_BuiltInPrivilegesTest.java
URL:
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/privilege/L3_BuiltInPrivilegesTest.java?rev=1731666&r1=1731665&r2=1731666&view=diff
==============================================================================
---
jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/privilege/L3_BuiltInPrivilegesTest.java
(original)
+++
jackrabbit/oak/trunk/oak-exercise/src/test/java/org/apache/jackrabbit/oak/security/privilege/L3_BuiltInPrivilegesTest.java
Mon Feb 22 15:50:13 2016
@@ -70,9 +70,10 @@ import static org.junit.Assert.assertEqu
*
* - {@link #testMapItems()}
* This allows you to become familiar with the mapping of individual
privileges
- * to items. Use the Oak API to change those items directly (instead of using
- * the corresponding JCR API call.
- * Use the JCR specification, the privilege definitions and {@link
org.apache.jackrabbit.oak.spi.security.authorization.permission.Permissions}
+ * to items. Use the Oak API or individual pluggins to change those items
+ * (instead of using the corresponding JCR API call).
+ * Use the JCR specification and the Oak security documentation to learn
about
+ * the mapping between privileges and items|operations.
*
* Question: Can you map the items to the corresponding JCR API calls? (see
additional exercises below)
* Question: Can you extract the rules when a dedicated specific privilege is