Commit graph

1783 commits

Author SHA1 Message Date
Manuel Rego Casasnovas
21c788316a tim-connector: Refactor majorId attribute of Connector entity to name
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-27 19:14:14 +01:00
Manuel Rego Casasnovas
ef1328eee1 tim-connector: Moved tests to proper package
They were in importers and they're moved to org.libreplan.importers.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-27 14:58:34 +01:00
Manuel Rego Casasnovas
c29015e9af tim-connector: Created new entity Connector based on AppProperties
AppProperties entity has been removed as it stores the same information
(majorId) repeated in each database record and it doesn't match with the real
model that we need.

A new entity Connector with a majorId identifier has been created, this entity
contains a list of properties (pairs key-value).

Moreover it has been created the predefined Tim connector with its own
properties (predefined too).

For new connectors, apart from the specific classes implementing them it would
be only needed to modify PredefinedConnectors and PredefinedConnectorProperties.
The database will be updated automatically on LibrePlan startup thanks to the
ConnectorBootstrap.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-27 14:41:48 +01:00
Lorenzo Tilve Álvaro
18dc5e7749 Clean global session variables after saving preferences
This will refresh all company-level variables with the corresponding
values depending on the filtering preferences saved.

FEA: ItEr77S15FilteringEnhancements
2013-02-22 20:15:40 +01:00
Lorenzo Tilve Álvaro
2c34faa7e0 Avoid cast exception when using workers on company view filter
FEA: ItEr77S15FilteringEnhancements
2013-02-22 20:15:32 +01:00
Lorenzo Tilve Álvaro
9b47f33e38 Handled manually emptied dateboxes to avoid inconsistences with default values
FEA: ItEr77S15FilteringEnhancements
2013-02-22 20:15:23 +01:00
Lorenzo Tilve Álvaro
5550f4926d Added onChange event listener to Project Gantt and WBS bandbox
FEA: ItEr77S15FilteringEnhancements
2013-02-22 20:15:14 +01:00
Lorenzo Tilve Álvaro
bd86dfd183 Force synchronization of filter changes when switching between loaded perspectives
Either in the Company view/Projects list perspectives and the Project Gantt/WBS ones,
their filter values are synchronized when shitching between them. All the perspectives
were loading the rigth session values when they were loaded for the first time, but
needed to be updated after changes in the filter values to actualize the widgets
on the sibling perspective.

FEA: ItEr77S15FilteringEnhancements
2013-02-22 20:15:04 +01:00
Lorenzo Tilve Álvaro
9ba7d7c285 Fix bug in BandboxSearch that was causing its text to be wrongly updated
Calling getSelectedElemets was returning a WrongFilterValue exception, and filling
in the bandbox value with the partial string used to filter the listbox.

FEA: ItEr77S15FilteringEnhancements
2013-02-22 20:14:55 +01:00
Lorenzo Tilve Álvaro
fb243cc5d5 Fix problem in bandbox search filters deleting session values
There was an issue that was causing bandbox search filter in company view to be
cleared, and deleting the corresponding session variable,  the second time
that perspective was accesed without changing the filter.

FEA: ItEr77S15FilteringEnhancements
2013-02-22 20:14:31 +01:00
miciele Ghiorghis
4aae86335e tim-connector: added attribute key and connectorId and removed code and label attributes
- attributes key and connectorId added
- modified findBys with this new change
- modified other files affected by this change
2013-02-21 17:32:19 +01:00
miciele Ghiorghis
604368f822 tim-connector: more imporovements spcecially calculating exception hours
- Import rosters for all departments configured in DB implemented
- Unneeded checks for resource calendar removed
- Some hardcoded strings moved to constants
- Exception with 0h effort allowed
- confirmSave is used to update exceptions
- RESOURCE_HOLIDAY or BANK_HOLIDAY used correctly
- calculating exception hours solved
2013-02-18 10:19:32 +01:00
Manuel Rego Casasnovas
75ef2de231 Forced reference to zoom listener to write resourcesLoad session parameter
The new listener registered to track changes on ResourceLoad perspective zoomLevel
was not always being called. An explicit reference was defined to avoid that
listener to be wrongly freed.

FEA: ItEr77S15FilteringEnhancements
2013-02-15 12:43:45 +01:00
Manuel Rego Casasnovas
228bd94a50 tim-connector: Fix alignment of cron expression and button
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-14 13:38:25 +01:00
Lorenzo Tilve Álvaro
177a9b40b8 Fix hibernate exception when entering into order resourcesload due to company filter parameters
FEA: ItEr77S15FilteringEnhancements
2013-02-14 13:08:30 +01:00
miciele Ghiorghis
81479a1850 tim-connector: comments improved and NotNull annotations added 2013-02-14 11:48:55 +01:00
Manuel Rego Casasnovas
3b34928a23 tim-connector: Remove unneeded checkings in testConnection method
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-14 11:35:38 +01:00
Manuel Rego Casasnovas
b9022bc6a4 tim-connector: Pass component to WrongValueException in connectors configuration
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-14 11:11:01 +01:00
Manuel Rego Casasnovas
0d921ce747 tim-connector: Increase width of textboxes in connector properties
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-14 11:04:39 +01:00
Manuel Rego Casasnovas
6898dbdbf1 tim-connector: Rename page to "Job Scheduling" and associated files
* Renamed .zul file and page to "Job Scheduling".
* Include ROLE_JOB_SCHEDULING in default profile SYSTEMS_ADMINISTRATOR.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-13 13:59:11 +01:00
Manuel Rego Casasnovas
04f3138b82 tim-connector: Hide Tim sync UI in order edition if Tim is not activated
Like in the case of JIRA, the Tim synchronization UI in the project edition will
only appear if Tim connector is activated.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-13 13:45:47 +01:00
Manuel Rego Casasnovas
ab41d205cd tim-connector: Improve configuration UI for connectors
Several changes in the UI and implementation.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-13 13:09:12 +01:00
Lorenzo Tilve Álvaro
35e1644cee Merge branch 'master' into filtering-improvements
FEA: ItEr77S15FilteringEnhancements
2013-02-13 12:19:45 +01:00
Lorenzo Tilve Álvaro
9bcff66e71 Remove sorting of bandbox contents in user settings
FEA: ItEr77S15FilteringEnhancements
2013-02-13 11:01:57 +01:00
Manuel Rego Casasnovas
c5796d602b tim-connector: Changes in JobSchedulerController and zul
Lots of changes:
* Created a new model to follow the standard structure of controllers in
  LibrePlan.
* Marked several strings to be internationalized.
* Improved .zul page, removing unneeded stuff and simplifying code.
* Checked that cron expression is right, otherwise inform the user.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-12 14:29:38 +01:00
Manuel Rego Casasnovas
8824c9a24a tim-connector: Avoid to load all workers to import/export timesheets from/to Tim
Maybe it's not needed to get all workers, so the call to findAll has been changed by findByCode.

Moreover, it was using code in ExportTimesheetsToTim and NIF in
ImportRosterFromTim which was not coherent, so it has been changed to use code
in both places.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-11 14:03:54 +01:00
Manuel Rego Casasnovas
863c087f0f tim-connector: Remove commented line
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-11 13:53:24 +01:00
Manuel Rego Casasnovas
df53c2dd97 tim-connector: Use LocalDate API
It makes code simpler than using Calendar API, and it's the common way to manage
dates into LibrePlan.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-11 13:52:08 +01:00
Lorenzo Tilve Álvaro
454ff4330d Avoid NPE when sorting Labels and Criteria for user setting bandboxes
FEA: ItEr77S15FilteringEnhancements
2013-02-11 01:05:46 +01:00
Manuel Rego Casasnovas
7fe5eb2350 Keep tasks converted into containers also in the filtered WBS
This allows to add a task over a leaf in a filtered WBS, and being able to keep
seeing the 3 elements: the new container (with the name of the previous leaf),
the previous leaf without name and the new task added.

It's easier to understand with an example. Imagine you have the following WBS:
* Task 1
* Task 2

And you filter by task name using "2", then you'll have:
* Task 2

Then you select "Task 2" and add a new task called "Subtask A".

Without this patch you'll only see:
* Task 2 (the new container using the name of the old leaf)
  |- Subtask A (the new task)

However, it's better you see the following
* Task 2 (the new container using the name of the old leaf)
  |- (empty task) (the old leaf that you should rename)
  |- Subtask A (the new task)

FEA: ItEr77S15FilteringEnhancements
2013-02-08 13:53:44 +01:00
Lorenzo Tilve Álvaro
cdd4c74c32 Write order filter bandbox from WBS screen
FEA: ItEr77S15FilteringEnhancements
2013-02-08 13:45:43 +01:00
Lorenzo Tilve Álvaro
b71ab8611e Fixed fuzzy translation strings
FEA: ItEr77S15FilteringEnhancements
2013-02-08 13:45:43 +01:00
Lorenzo Tilve Álvaro
8ab5db2195 Improved graphical appearance of filter parameters configuration widgets
FEA: ItEr77S15FilteringEnhancements
2013-02-08 13:45:43 +01:00
Manuel Rego Casasnovas
210c111b62 Apply filter when entering project details view
This will allow to get a already filtered WBS if you have been inside the
project before and you have applied some filters, as the filter is already
stored in the session.

FEA: ItEr77S15FilteringEnhancements
2013-02-08 13:32:37 +01:00
Manuel Rego Casasnovas
75ecc38664 Revert "Apply filter when entering project details view"
This reverts commit 800cf8b50d.

This patch was breaking the possibility to select a task in the WBS.

FEA: ItEr77S15FilteringEnhancements
2013-02-08 13:21:51 +01:00
Lorenzo Tilve Álvaro
5da7d810ea Added translations for filtering improvements strings
FEA: ItEr77S15FilteringEnhancements
2013-02-08 12:04:40 +01:00
Manuel Rego Casasnovas
5ff02eaae6 jira-integration: By default ignore tests that only passes if you have a Tim server
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-08 11:55:27 +01:00
Miciele Ghiorghis
48cdded3e0 Tim-connector: Classes renamed according Libreplan naming convention
DTO classes are renamed to class-name with suffix DTO according to Libreplan naming convention
Modified all classes which are affected by the renamed classes
Comments and author information added where applicable
Test cases modified
2013-02-08 11:16:19 +01:00
Miciele Ghiorghis
a5ddbd45d4 Tim-connector: Import rosters from Tim SOAP Server and convert them to worker's calendar exception
An implementation of the interface IImportRosterFromTim
It import rosters from Tim convert them to workers calendar exception. If
worker's calendar exception already exists it updates effort duration, otherwise
creates new worker's calendar exception.
2013-02-08 11:16:19 +01:00
Miciele Ghiorghis
82157da7d2 Tim-connector: Test for ExportTimesheetsToTim 2013-02-08 11:16:19 +01:00
Miciele Ghiorghis
982e9ca06b Tim-connector: Test for ImportRosterFromTim 2013-02-08 11:16:19 +01:00
Miciele Ghiorghis
1a6392fdb9 Tim-connector: Data object models for request and response 2013-02-08 11:16:19 +01:00
Miciele Ghiorghis
6d2b0d3480 Tim-connector: Job scheduler menu item added 2013-02-08 11:16:19 +01:00
Miciele Ghiorghis
772824bab2 Tim-connector: Quarz dependencies added 2013-02-08 11:16:18 +01:00
Miciele Ghiorghis
4b67e10ab8 Tim-connector: new method setupTimSynchronizationController to setup a controller for TimSynchronization 2013-02-08 11:16:18 +01:00
Miciele Ghiorghis
f8d71c9881 Tim-connector: SchedulerManager bean is added
SchedulerManager bean and schedulerFactoryBean are added to make scheduling of jobs possible
2013-02-08 11:16:18 +01:00
Miciele Ghiorghis
77fcc3fed2 Tim-connector: extended with connectors-configuration functionality
New methods added to store and get connectors-configurations(AppProperties)
2013-02-08 11:16:18 +01:00
Miciele Ghiorghis
e0788a30e4 Tim-connector: extended with connectors functionaliteit.
Functionaliteit added to save and get connector properties
2013-02-08 11:16:18 +01:00
Miciele Ghiorghis
65b7d138f0 Tim-connector: A new panel for Connectors-configuration added 2013-02-08 11:16:18 +01:00
Miciele Ghiorghis
5b3b278e9e Tim-connector: new component _timOrderTimesheetSync.zul added
A user interface _timOrderTimesheetSync.zul for exporting timesheets to Tim SOAP
server added
2013-02-08 11:16:18 +01:00