working persistence.xml with authorization.
authorErik Brakkee <erik@brakkee.org>
Sat, 14 Sep 2013 21:08:09 +0000 (23:08 +0200)
committerErik Brakkee <erik@brakkee.org>
Sat, 14 Sep 2013 21:08:09 +0000 (23:08 +0200)
src/main/java/META-INF/persistence.xml

index 0a4525ed820a969943d07bc667863d7f206dfb79..df1adabf61ba5cf1ccefe14a30b859ac36ad3d25 100644 (file)
@@ -10,7 +10,6 @@
       <class>org.wamblee.security.authentication.User</class>
       <class>org.wamblee.security.authentication.Group</class>
       
-      <!--
       <class>org.wamblee.security.authorization.AbstractUserCondition</class>
       <class>org.wamblee.security.authorization.AnyUserCondition</class>
       <class>org.wamblee.security.authorization.GroupUserCondition</class>
       <class>org.wamblee.security.authorization.StartsWithPathCondition</class>
       
       <class>org.wamblee.security.authorization.AbstractAuthorizationRule</class>
+      <class>org.wamblee.security.authorization.UrlAuthorizationRule</class>
+      <class>org.wamblee.photos.security.PhotoAuthorizationRule</class>
       
       
       <class>org.wamblee.security.authorization.AbstractAuthorizationService</class>
       <class>org.wamblee.security.authorization.DefaultAuthorizationService</class>
-      -->
       
       <!-- from the photo app, subclass of UrlAuthorizationRule --> 
     
-      <!--
-      <class>org.wamblee.photos.authorizationrules.PhotoAuthorizationRule</class>
-      -->
-      
+   
       <exclude-unlisted-classes>true</exclude-unlisted-classes>
     
    </persistence-unit>