Commit graph

8312 commits

Author SHA1 Message Date
Manuel Rego Casasnovas
eddcbca243 Add info about status code in error logging
FEA: ItEr76S04BugFixing
2012-06-20 09:57:11 +02:00
Manuel Rego Casasnovas
f933522d21 Translate into English page_not_found.zul and mark strings to be translated
FEA: ItEr76S04BugFixing
2012-06-20 09:57:11 +02:00
Manuel Rego Casasnovas
3e6d8983c9 Remove unused file error.jsp
FEA: ItEr76S04BugFixing
2012-06-20 09:02:30 +02:00
Manuel Rego Casasnovas
a1c2903476 Move index.zul to common folder
FEA: ItEr76S30PermissionsEnhancements
2012-06-20 09:01:38 +02:00
Manuel Rego Casasnovas
ecba31619c Protect monthly timesheet page depending on user roles
The page cannot be used without entry points and depending on the entry point
used one role or other will be required.

FEA: ItEr76S30PermissionsEnhancements
2012-06-20 08:58:23 +02:00
Manuel Rego Casasnovas
eb58fd31d6 Move sendForbiddenStatusCodeInHttpServletResponse method to Util class
Refactor code where SC_FORBIDDEN code was been sent and used the new method.

FEA: ItEr76S30PermissionsEnhancements
2012-06-20 08:47:32 +02:00
Manuel Rego Casasnovas
ffe537ca7b Protect entry points methods in expenses sheet window
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
2012-06-20 08:39:14 +02:00
Manuel Rego Casasnovas
bfd6e56ceb Add check to avoid bound users to go directly (via URL) to expenses page
FEA: ItEr76S30PermissionsEnhancements
2012-06-19 18:23:06 +02:00
Manuel Rego Casasnovas
19ace553f2 Bug #1468: Reload bindings only in the existing user panel
FEA: ItEr76S04BugFixing
2012-06-19 17:39:24 +02:00
Susana Montes Pedreira
a3bbc73f5d fixes the error that happens at filtering by dates in the report
about order cost per resource.

FEA: ItEr76S04BugFixing
2012-06-19 15:20:30 +01:00
Manuel Rego Casasnovas
3ffce11df7 Prevent users to create templates from project edition if they do not have ROLE_TEMPLATES
FEA: ItEr76S30PermissionsEnhancements
2012-06-19 13:56:54 +02:00
Manuel Rego Casasnovas
00ea98e5d4 Prevent users to create labels from project edition if they do not have ROLE_LABELS
FEA: ItEr76S30PermissionsEnhancements
2012-06-19 13:27:34 +02:00
Manuel Rego Casasnovas
4dee1ced71 Change column "Administrator" for "Superuser" in users list
FEA: ItEr76S30PermissionsEnhancements
2012-06-19 13:10:23 +02:00
Manuel Rego Casasnovas
41ba7fcdcb Configure initial page when user clicks on LibrePlan logo depending on roles
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
2012-06-19 12:18:54 +02:00
Manuel Rego Casasnovas
f53c943c07 Set different initial page depending on user roles
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
2012-06-19 11:47:10 +02:00
Manuel Rego Casasnovas
37f7eac9b8 Protect main perspectives depending on user roles
* 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
2012-06-19 10:57:18 +02:00
Manuel Rego Casasnovas
fd5e751676 Limit visibility of planning pages depending on roles
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
2012-06-19 09:44:59 +02:00
Susana Montes Pedreira
f3ada1bea4 update web services documentation and add scripts to test this case and
some example files.

FEA: ItEr76S22ExpenseTrackingSystem
2012-06-18 09:08:11 +01:00
Susana Montes Pedreira
9080e7ecb4 implements an empty method called "beforeSaving" in the GenericRESTService
and overrides it in the ExpenseSheetServiceRest in order to save the sum
of expenses.

FEA: ItEr76S22ExpenseTrackingSystem
2012-06-18 09:00:56 +01:00
Susana Montes Pedreira
99d7a69885 fixes the empty block with the apropriate condition and the
needed behaviour.

FEA: ItEr76S22ExpenseTrackingSystem
2012-06-17 13:43:27 +01:00
Susana Montes Pedreira
fbad40f945 removes the validation in the method toDTO because there is already
the annotation @NotEmpty in the ExpenseSheet class.

FEA: ItEr76S22ExpenseTrackingSystem
2012-06-17 13:33:28 +01:00
Susana Montes Pedreira
79fe7d3bb4 renames this method getLabel to getExpenseSheet in IExpenseSheetService.
FEA: ItEr76S22ExpenseTrackingSystem
2012-06-17 13:29:36 +01:00
Susana Montes Pedreira
57f23e37fe changes the InstanceNotFoundException to ValidationException and if
the entity is not found the function returns a null.

FEA: ItEr76S22ExpenseTrackingSystem
2012-06-17 13:21:34 +01:00
Susana Montes Pedreira
5386c1eec5 update the end date of the subcontracted task according to the end date
communication sent by the subcontractor.

FEA: ItEr76S21UpdateEndDateToCustomer
2012-06-17 12:25:28 +01:00
Manuel Rego Casasnovas
6e9b96b77a Remove ROLE_BOUND_USER from roles list in user and profile edition
If a user has this role the remove button will appear disabled.

FEA: ItEr76S30PermissionsEnhancements
2012-06-15 15:23:29 +02:00
Manuel Rego Casasnovas
081d70d0c7 Disable buttons to go to user or worker edition in bound users depending on roles
FEA: ItEr76S30PermissionsEnhancements
2012-06-15 15:23:29 +02:00
Manuel Rego Casasnovas
b6889f7e7b Configure permissions for ROLE_BOUND_USER
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
2012-06-15 15:23:29 +02:00
Manuel Rego Casasnovas
787355428a Managing special role ROLE_BOUND_USER in workers and users windows
All bound users must have the role ROLE_BOUND_USER.

FEA: ItEr76S30PermissionsEnhancements
2012-06-15 15:23:29 +02:00
Manuel Rego Casasnovas
4e943710f4 Create default example profiles
FEA: ItEr76S30PermissionsEnhancements
2012-06-15 15:23:29 +02:00
Manuel Rego Casasnovas
9dfa1ea931 Show menus entries depending on user roles
FEA: ItEr76S30PermissionsEnhancements
2012-06-15 15:23:29 +02:00
Manuel Rego Casasnovas
48c422b06b Configure basic permissions for each page in Spring Security file
Only ROLE_SUPERUSER and role of the page will have access.

FEA: ItEr76S30PermissionsEnhancements
2012-06-15 15:23:29 +02:00
Manuel Rego Casasnovas
7bdb6f4c47 Add new roles in UserRole enum
FEA: ItEr76S30PermissionsEnhancements
2012-06-15 15:23:29 +02:00
Manuel Rego Casasnovas
438d8cdc10 Review and rename current roles
Include needed database migrations.

FEA: ItEr76S30PermissionsEnhancements
2012-06-15 15:23:29 +02:00
Manuel Rego Casasnovas
7470e34a29 Refactoring LibrePlan menu
At this moment roles are not taking into account at all as this will be reviewed
and properly fixed later.

FEA: ItEr76S30PermissionsEnhancements
2012-06-15 15:23:29 +02:00
Manuel Rego Casasnovas
69652b89bc doc: Fix problem in PDF generation for user help
Too many levels of headers for the PDF.

FEA: ItEr76S04BugFixing
2012-06-14 11:05:44 +02:00
Manuel Rego Casasnovas
c03969199f Fix changeset in MySQL
Required to drop foreign key before droping the column.

FEA: ItEr76S04BugFixing
2012-06-14 09:45:33 +02:00
Diego Pino
bc071a1734 Bug #1275: Montecarlo combo for selecting critical path is empty
* 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
2012-06-13 18:18:56 +02:00
Diego Pino
2706a71659 Fix bug: Remove 'Expected Spread Progress' bar from 'Global Progress' chart
FEA: ItEr76S15OrganizingPerProjectDashboard
2012-06-12 18:08:24 +02:00
Diego Pino
9382ce3d29 Fix bug: LazyInitializationException in WorkReportLines
FEA: ItEr76S29WorkReports
2012-06-12 17:53:37 +02:00
Diego Pino
a11c38d34c Refactoring: Class for creating GanttDiagram
Move code in CriticalPathBuilder for creating a Gantt diagram in memory
to its own class

FEA: ItEr76S04BugFixing
2012-06-12 16:05:20 +02:00
Diego Pino
215d8cb395 Bug #1451: Error rendering GanttView coming directly from MonteCarlo
The error was in the code that builds the graph for calculating the
CriticalPath. There was a very similar code for building the graph in
TemplateModel, the only difference were the two lines of the patch.

These two lines were changed for fixing bug #1423. I tried this bug
again with the patch applied and it works too.

FEA: ItEr76S04BugFixing
2012-06-12 12:59:16 +02:00
Diego Pino
df86b42aa4 Fix bug: WorkReportLines filtering not working if there's no Task selected
If there's no Task selected apply the rest of the filter parameters to
all WorkReportLines

FEA: ItEr76S29WorkReports
2012-06-11 20:48:54 +02:00
Manuel Rego Casasnovas
8a10614cc0 Add default user wssubcontracting/wssubcontracting
FEA: ItEr76S30PermissionsEnhancements
2012-06-11 17:08:31 +02:00
Manuel Rego Casasnovas
1a19400990 Add new role to protect subcontracting services
New role ROLE_WS_SUBCONTRACTING has been created, now the web services are
separated in two parts:
* Common web services are allowed to be read by role ROLE_WS_READER and written
  by role ROLE_WS_WRITER
* Subcontracting web services are allowed to be read and written by role
  ROLE_WS_SUBCONTRACTING

In this way you can give access to a different companies to your subcontracting
services, however prevent them to access to the rest of your data (via common
web services).

FEA: ItEr76S30PermissionsEnhancements
2012-06-11 17:08:09 +02:00
Manuel Rego Casasnovas
cc34202f84 Bug #1463: Fix issue changing order in parameters of entry point
The problem was that before the change, the children of the order returned a
proxy when you used the method getOrder() over them. However, this doesn't
happen if you change the order of the parameters.

I guess that this is because of the converter of the Order is now called before
the converter of the OrderElement and the problem disappears.

FEA: ItEr76S04BugFixing
2012-06-11 11:24:07 +02:00
Diego Pino
43044a78af Bug #1461: NullPointerException in WorkReportLines
Clicking button 'Filter' if there was no Task selected resulted into a
NullPointerException

FEA: ItEr76S29WorkReports
2012-06-08 17:18:15 +02:00
Diego Pino
db25351f15 Add 'Spread Progress' bar to 'Global Progress' chart
FEA: ItEr76S15OrganizingPerProjectDashboard
2012-06-08 14:24:39 +02:00
Diego Pino
a1e6e8a768 Add pop-up tooltip in 'Global Progress' chart
FEA: ItEr76S15OrganizingPerProjectDashboard
2012-06-08 13:23:08 +02:00
Susana Montes Pedreira
bd80e44e92 keep sorted the expense sheet lines when some date is changed.
FEA: ItEr76S22ExpenseTrackingSystem
2012-06-08 10:40:24 +01:00
Susana Montes Pedreira
dc1c566118 changes some functions names in ExpenseSheetModel in order to
understand its behaviour easily.

FEA: ItEr76S22ExpenseTrackingSystem
2012-06-08 10:37:10 +01:00