w7cook/OpenBook — pull request #197 by darbs (2012-04-19 22:53:37+00:00)
Title: Page improvements

Created PGEphotos.java as kind of a controller for page/group/events, since we have no clear way to discern photos between users, pages, events etc. Right now only only works for pages but is kind of a skeleton to use to add photos to events and groups if we choose too. Feel free to add or change if we find something better.

Added enum type to Photo.java to help distinguish photos from regular user photos.and a new constructor for Photos to correlate with PGEphotos.java. This new constructor takes in Photo.type that can be {PAGE, EVENT, GROUP} along with that objects id. This way photos can be loaded to the appropriate object.

Created page bar similar to facebook's pre-timeline. Also implemented profile pictures for pages. These profile pictures are used as links when listing out the pages to solve issue #161.

Known issues:
photos uploaded by an admin of the page show up as their own pictures too
no way to delete photos yet