Commit graph

1390 commits

Author SHA1 Message Date
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
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
Miciele Ghiorghis
7f60352a1a Tim-connector: new Connectors-configuration functioality 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