Commit graph

9016 commits

Author SHA1 Message Date
miciele Ghiorghis
111b780752 jira and tim-connector: Constraints for OrderSyncInfo 2013-03-27 10:20:44 +01:00
miciele Ghiorghis
94f3763e32 jira and tim-connector: Constraints for JobSchedulerConfiguration 2013-03-27 10:20:41 +01:00
Manuel Rego Casasnovas
131941ea6f tim-connector: Remove unneeded lines in _jiraOrderElementSync.zul and _timOrderTimesheetSync.zul
This is managed now at JiraSynchronizationController.showOrHideJiraEditWindow()
and TimSynchronizationController.showOrHideTimEditWindow().

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-03-26 11:13:33 +01:00
Manuel Rego Casasnovas
c7508fbfa3 tim-connector: Rename connectorId to connectorName in OrderSyncInfo
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-03-26 10:59:37 +01:00
Manuel Rego Casasnovas
3e29b3023e tim-connector: Fix typo in JobSchedulerController.showSynchronizationInfo() method
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-03-26 10:28:32 +01:00
miciele Ghiorghis
ba8024aae7 jira and tim-connector: new job for Jira order element synchronizer and some improvement
- New Job implementation for Jira order element synchronizer
- Some imporvements to manage/display errors
2013-03-26 10:21:48 +01:00
miciele Ghiorghis
cea2996917 jira-and-tim-connector: correction on OrderSyncInfo
- In OrderSyncInfoDAO the method name findByKeyAndConnectorId is changed to findByKeyOrderAndConnectorId and
a parameter Order is added. The files that uses this method are  modified accordingly
- In JiraSynchronizationController refresh added. If OrderSyncInfo is saved the jira sync info screen will be
updated to show the change
2013-03-26 10:07:08 +01:00
miciele Ghiorghis
2fc452d1b7 jira and tim -connector: Refactoring OrderCRUDController and other improvements
- OrderCRUDController refactored
- Save or update for OrderSyncInfo instead of creating new instance for each sync
- Name change for TimImpExpInfo to SynchronizationInfo
- JiraSyncInfo is removed instead SynchronizationInfo is used
- All files which are affected by name changes are modified
- Translations added where applicable
- clean up unused variables etc
2013-03-25 14:44:15 +01:00
Manuel Rego Casasnovas
cc712d4055 jira-connector: Make OrderCRUDController.isJiraActivated() public as it's used from _edition.zul
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-03-14 13:22:07 +01:00
Manuel Rego Casasnovas
e7cc0297a7 Fix translation markers for ConnectorException and TimImpExpInfo classes
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-03-14 12:33:15 +01:00
miciele Ghiorghis
d764e0a3f8 Jira-connector: JIRA moved to connectors
- JIRA is moved to connectors and all files modified that has to do with this change.
- JiraConfiguration file is removed
- ImportedLabel attribute is deleted from Order and order.hbm.xml
- Imstead of importedLabel is now used the key from OrderSyncInfo
- and some more changes where applicable
2013-03-14 12:26:12 +01:00
miciele Ghiorghis
3891048f00 tim-connector: check if connector values are invalid and more
Better error handling:
* check if connector connection values are valid
* New ConnectorException
* New .zul file to show import/export failed/success information
* All files modified affected by these changes
2013-03-14 12:20:38 +01:00
Manuel Rego Casasnovas
9325470d3d tim-connector: Modify SchedulerManager to use ConfigurationDAO instead of ConfigurationModel
Remove unneeded public method in IConfigurationModel.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-03-07 12:31:04 +01:00
miciele Ghiorghis
a610afa957 tim-connector: main changes in scheduler
* CRUD for scheduler
* The UI job_scheduling.zul for CRUD is splits to _editJobScheduling.zul and _listJobScheduling.zul
* Lots of changes in scheduler to make it generic
  - jobs can be scheduled, rescheduled and deleted
  - check if job has a connector and is enabled
  - check if job is allowed to be scheduled
  - do manual is moved to JobConfigurationController
* attributes connectorName and scheduled added to JobSchedulerConfiguration modified
* triggerGroup and triggerName deleted from JobScheduleerConfiguration
* In JobConfigurationDAO findByConnectorName added
* New JobClassNameEnum added to be used as data type for JobClassName in JobSchedulerConfiguration
* Import/Export Jobs read the beans that do the real work from ApplicationContext
* Some minor changes in ConfigurationController
2013-03-07 11:50:53 +01:00
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
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
228bd94a50 tim-connector: Fix alignment of cron expression and button
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-14 13:38:25 +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
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