Image.java - Added new enum PhotoStatus. Mainly used to let us know where the photo is in the review process. Added deletionDate variable to track image deletions. Removed the active and hidden flags. Added variable for Admin user to add notes to the image being reviewed. Can be used in email sent for declined images.
Location.java - Changed the where clause on the Image associated collection to not bring in the images that have been declined or deleted.
AdminController.java - Added the LocationProviderServiceImpl and EmailServiceImpl classes. Add method to controller that either retrieve the photos for approval by user name or all of them. Added processing for the reviewed photos so that their status is updated in the database and an email is sent to the user for each photo letting them know what the status is.
FileUploadController.java - Set the image status to NOT_REVIEWED when uploaded. Using constant for the next page url.
LocationProviderController.java - Methods now use the global variable for the location provider home page to display the templates. Set the user level for newly created Location Providers. Added email functionality when submitting a property.
LocationScoutController.java - Methods now use the global variable for the location provider home page to display the templates. Set the user level for newly created Location Providers.
LocationProvider.java - Turned off the cascading styles for the providerLocations collection. It was causing problems when an Admin User was trying to do photo reviews. For the photo review process we replace the providerLocations collection with one that only has Location objects with photos that need review. The cascading style was preventing us from reassigning the new collection.
PhotoStatus.java - Enum that contains the different states of review for photos. NOT_REVIEWED, APPROVED, DECLINED, DELETED, SKIPPED_ON_REVIEW.
UserType.java - Added CUSTOMER_SERVICE, SUPPORT, and SALES as new user types.
AdminServiceImpl.java - Added functionality for retrieving photos that need reviewing either by user name or all of them.
EmailService.java - Added a general sendEmail method.
EmailServiceImpl.java - Added a general sendEmail method.
LocationProviderServiceImpl.java - Added setting the Image status and deletion date when an image is deleted.
LocationUserService.java - Moved some of the general service methods into this class. Added deleteImage method.
GlobalVars.java - Added more email static strings. Added constants for Tile Template usage such as home page constants for the Location Provider, Location Scout, and Admin users.
adminApproveDeclinePhotos.jsp - New jsp used for reviewing photos submitted by a user for approval.
adminNavigation.jsp - Removed some of the unused links.
lmStyle.css - Added entries for font sizes of 10, 18 and 20.
baseAdminLayout.jsp - Base template for Admin Users.
addPhoto.jsp - Added filtering to not show deleted or declined photos.
deletePhotos.jsp - Added filtering to not show deleted or declined photos.
scoutAlerts.jsp - Was using the wrong id to show the alert.
viewLocationPhotos.jsp - Filtering now to just show approved photos.