Commit graph

8991 commits

Author SHA1 Message Date
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
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
Manuel Rego Casasnovas
dc15df3d2e tim-connector: Add protected default constructor for Hibernate to new entities
Include proper comments warning about not using it directly.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-11 13:47:23 +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
b83f47ce60 Tim-connector: test xml file 2013-02-08 11:16:19 +01:00
Miciele Ghiorghis
0ce55101d9 Tim-connecotr: Property file for Tim SOAP connection 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
85a03ac50d Tim-connector: new dependency Quartz scheduler added 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
b622b68589 Tim-connector: Two mapping resource added
AppProperties.hbm.xml and JosSchedulerConfiguration.hb.mxl are added
2013-02-08 11:16:18 +01:00
Miciele Ghiorghis
21c65717a8 Tim-connector: Three new tables added
Three tables added:
order_sync_info: holds the order synchronization information
app_properties: holds app configuration properties
job_scheduler_configuratiion: holds job to be scheduled
Both app_properties and job_scheduler_configurations are filled with default values
2013-02-08 11:16:18 +01:00
Miciele Ghiorghis
3f606eab3c Tim-connector: An implementation of method findByOrderElementAndChildrenFilteredByDate
To find all WorkReportLines of an order between 2 dates
2013-02-08 11:16:18 +01:00
Miciele Ghiorghis
1ce4477c84 Tim-connector: new search method added
findByOrderElementAndChildrenFilteredByDate added, to find all workReportLines of an order between 2 dates
2013-02-08 11:16:18 +01:00
Miciele Ghiorghis
9463d94a84 Tim-connector: Method getWorkReportLines added
getWorkReportLines: gets all WorkReportLines of this order specified between start and end date.
2013-02-08 11:16:18 +01:00
Miciele Ghiorghis
ddce4b2f1d Tim-connector: Hibernate mapping for OrderSyncInfo is added 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
Miciele Ghiorghis
7f60352a1a Tim-connector: new Connectors-configuration functioality added 2013-02-08 11:16:18 +01:00
Miciele Ghiorghis
23b24f46fd Tim-connector: A new ROLE for job scheduler added 2013-02-08 11:16:18 +01:00
Miciele Ghiorghis
82a1b9023b Tim-connector: Test for TimSoapClient 2013-02-08 11:16:18 +01:00
Miciele Ghiorghis
05ed133214 Tim-connector: Test for ImportRosterFromTim 2013-02-08 11:16:18 +01:00
Miciele Ghiorghis
3a9b3bada4 Tim-connector: Test for ExportTimesheetsToTim 2013-02-08 11:16:17 +01:00
Miciele Ghiorghis
58fa93da0e Tim-connector: UI for timesheet synchronization 2013-02-08 11:16:17 +01:00
Miciele Ghiorghis
4605d318f8 Tim-connector: UI for job scheduling 2013-02-08 11:16:17 +01:00
Miciele Ghiorghis
339a35a28d Tim-connector: A controller for job scheduling 2013-02-08 11:16:17 +01:00
Miciele Ghiorghis
5cd6ac7566 Tim-connector: A controller for Tim synchronizing of timesheets 2013-02-08 11:16:17 +01:00
Miciele Ghiorghis
ae54764b17 Tim-connector: SOAP client to interact with Tim SOAP server
This client creates SOAP message, makes connection to the SOAP server, sends
the request and processes the response. It uses jaxb lirary to marshal and
unmarshal the request and response.
2013-02-08 11:16:17 +01:00
Miciele Ghiorghis
b313de6935 Tim-connector: Helper class to convert Tim rosters to RosterExceptions 2013-02-08 11:16:17 +01:00
Miciele Ghiorghis
7520f27604 Tim-connector: The scheduler info (non persistent bean) 2013-02-08 11:16:17 +01:00
Miciele Ghiorghis
fd30e75940 Tim-connector: A manager that dynamically creates jobs and cron-triggers using spring quartz libraray
An implementation of the interface ISchedulerManager
Dynamically creates jobs and cron triggers. It associated the triggers with the jobs and add
them to the scheduler. It also supports the rescheduling of jobs.
2013-02-08 11:16:17 +01:00
Miciele Ghiorghis
3619f716ee Tim-connector: A manager that dynamically creates jobs and cron-triggers using spring quartz library
An interface that SchedulerManager implements.
Dynamically creates jobs and cron triggers. It associated the triggers with the jobs and add
them to the scheduler. It also supports the rescheduling of jobs.
2013-02-08 11:16:17 +01:00
Miciele Ghiorghis
93fc9a8a41 Tim-connector: A job that import rosters from Tim SOAP server
This is the job that is scheduled by the scheduler to import rosters from Tim SOAP server.
It is executed based on the cron-expression defined for this job.
2013-02-08 11:16:17 +01:00
Miciele Ghiorghis
d9fba94d7c 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:17 +01:00
Miciele Ghiorghis
225a3475de Tim-connector: Imports Rosters from Tim SOAP server
An interface that ImportRosterFromTim implements
It import Rosters from Tim SOAP server and convert them to workers calendar Exception.
If workers calendar exception already existis it updates the effort duration, otherwise
creates new worker's calendar exception
2013-02-08 11:16:17 +01:00
Miciele Ghiorghis
071c3e84d9 Tim-connector: A job that exports timesheets to Tim SOAP server
This is the job that is scheduled by the scheduler to export timesheets to tim SOAP server
It is executed based on the cron-expression defined for this job.
2013-02-08 11:16:16 +01:00
Miciele Ghiorghis
d783587123 Tim-connector: exports timesheet to Tim SOAP server
An implementation of the interface IExportTimesheetsTOTim.
It exports timesheets of an existing order to Tim SOAP server.
2013-02-08 11:16:16 +01:00
Miciele Ghiorghis
138e4d6fac Tim-connector: Export timesheets to Tim SOAP server
An interface that ExportTimesheetsTomTim implements.
It exports timesheets of an existing order to Tim SOAP server.
2013-02-08 11:16:16 +01:00