Authorized album is now working fully.
[photos] / src / main / java / org / wamblee / photos / wicket / HomePage.java
index ccb667034e39cf7bd512dfaada84396f83b280c0..acc2877089ee1cf209e25cfceea83048fc5cb473 100644 (file)
@@ -24,6 +24,7 @@ import org.apache.wicket.markup.html.basic.Label;
 import org.wamblee.photos.model.Album;
 import org.wamblee.photos.model.PhotoEntry;
 import org.wamblee.photos.model.plumbing.AllPhotos;
+import org.wamblee.photos.model.plumbing.AuthorizedPhotos;
 import org.wamblee.security.authentication.User;
 import org.wamblee.security.authentication.UserAdministration;
 
@@ -44,9 +45,9 @@ public class HomePage extends BasePage {
     @AllPhotos
     private Album album;
 
-    // @Inject
-    // @AuthorizedPhotos
-    // private Album authorized;
+    @Inject
+    @AuthorizedPhotos
+    private Album authorized;
 
     /**
      * Constructor that is invoked when page is invoked without a session.
@@ -73,13 +74,11 @@ public class HomePage extends BasePage {
                 entry.getPath());
         }
 
-        /*
         System.out.println("Authorized Entries: " + authorized.size());
         for (int i = 0; i < authorized.size(); i++) {
             PhotoEntry entry = authorized.getEntry(i);
             System.out.println("Entry " + i + " " + entry.getId() + " " +
                 entry.getPath());
         }
-        */
     }
 }