Need to open transaction in ProfileDAO.findByProfileName() because of this
method is called via TemplateController (which is accessing the new predefined
users).
The new predefined users with a profile are using the method
PredefinedProfiles.getFromDB() that is calling the ProfileDAO.
FEA: ItEr76S30PermissionsEnhancements
This will work like the rest of bootstraps. Accordingly to its behavior the
class has been renamed from MandatoryUser to PredefinedUsers.
FEA: ItEr76S30PermissionsEnhancements
The page cannot be used without entry points and depending on the entry point
used one role or other will be required.
FEA: ItEr76S30PermissionsEnhancements
Entry points can only be used by ROLE_BOUND_USER.
Moreover an extra checking has been added in the edit entry point to check that
the expense sheet is personal and it belongs to the worker bound to current
user.
FEA: ItEr76S30PermissionsEnhancements
Different situations:
* If user has ROLE_SUPERUSER: Redirect to "Planning > Company View"
* If user has ROLE_BOUND_USER: Redirect to "Personal Area > Home"
* If user has ROLE_PLANNING: Redirect to "Planning > Company View"
* If user has read or write authorizations over any project: Redirect to "Planning > Company View"
* Otherwise: Redirect to "Personal Area > Preferences"
FEA: ItEr76S30PermissionsEnhancements
Different situations:
* If user has ROLE_SUPERUSER: It'll keep working like before, if you set a
concrete URL you'll go to that URL, otherwise you'll go to "Planning > Company
View"
* If user has ROLE_BOUND_USER: Go to "Personal Area > Home"
* If user has ROLE_PLANNING: Go to "Planning > Company View"
* If user has read or write authorizations over any project: Go to "Planning >
Company View"
* Otherwise: Go to "Personal Area > Preferences"
FEA: ItEr76S30PermissionsEnhancements
* Projects Planning and Projects List: Allow access to ROLE_SUPERUSER,
ROLE_PLANNING and users that has any project authorization.
* Resource Usage and Limiting Resources planning: Allow access to
ROLE_SUPERUSER and ROLE_PLANNING.
FEA: ItEr76S30PermissionsEnhancements
If the user has read or write authorization over any project then the pages
"Planning > Company View" and "Planning > Projects" will be visible.
Configure properly the perspectives (tabs) in order to hide some of them if user
is not ROLE_SUPERUSER or ROLE_PLANNING.
FEA: ItEr76S30PermissionsEnhancements
Only bound users will have access to page "Personal Area > Home".
Moreover bound users will have access to expenses sheet edition form, even if
they don't have access to "Cost > Expenses" page.
Finally users with role ROLE_SUERUSER, ROLE_SUERUSER or ROLE_TIMESHEETS will
have access to monthly timesheets edition page.
FEA: ItEr76S30PermissionsEnhancements
* Move code for calculating all critical paths to its own class
* The former code broke in many clases so I reimplemented the algorithm
FEA: ItEr76S04BugFixing