Commit graph

8948 commits

Author SHA1 Message Date
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
Miciele Ghiorghis
3ee39bcffe Tim-connector: Hibernate mapping file for JobSchedulerConfiguration 2013-02-08 11:16:16 +01:00
Miciele Ghiorghis
4ffd4e5b50 Tim-connector: Hibernate mapping file for AppProperties 2013-02-08 11:16:16 +01:00
Miciele Ghiorghis
f1762336ee Tim-connector: OrderSyncInfo entity 2013-02-08 11:16:16 +01:00
Miciele Ghiorghis
07c2ccaec9 Tim-connector: DAO for OrderSyncInfo
An implementation of the interface IOrderSyncInfoDAO
2013-02-08 11:16:16 +01:00
Miciele Ghiorghis
b459606e72 Tim-connector: Contract for OrderSyncInfo
An interface that OrderSyncInfoDAO implements.
2013-02-08 11:16:16 +01:00
Miciele Ghiorghis
8869325b60 Tim-connector: JobSchedulerConfiguration entity 2013-02-08 11:16:16 +01:00
Miciele Ghiorghis
ed26857809 Tim-connector: AppProperties entity 2013-02-08 11:16:16 +01:00
Miciele Ghiorghis
f985a65a94 Tim-connector: DAO for JobSchedulerConfiguration
An implementation of IJobSchedulerConfigurationDAO
2013-02-08 11:16:16 +01:00
Miciele Ghiorghis
5418fc21b0 Tim-connector: Contract for JobSchedulerConfigurationDAO
An interface that JobSchedulerConfigurationDAO implements
2013-02-08 11:16:16 +01:00
Miciele Ghiorghis
3ba555853f Tim-connector: Contract for AppPropertiesDAO
An interface that AppPropertiesDAO implements
2013-02-08 11:16:16 +01:00
Miciele Ghiorghis
fa310807db Tim-connector: DAO for AppProperties
DAO for AppProperties. Implementation of the interface IAppPropertiesDAO
2013-02-08 11:16:16 +01:00
Manuel Rego Casasnovas
be38a3455e jira-integration: Change own implementation to strip whitespaces by StringUtils method
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-08 10:38:33 +01:00
miciele Ghiorghis
1cad4ca9b6 Jira-integration: some improvement on get issues.
getIssues gets now the issues from jira in one request. This is done by adding a
query fields with desired fields to be included in response. Moreover the max_results
is now outside if(!query.isEmpty) statetment.
Test case is modified to read label from jira-properties instead of hard coded
2013-02-08 10:33:45 +01:00
miciele Ghiorghis
946c66163b Jira-integration: modified to test the classes instead code copied and jira label is moved to jira-conn-properties 2013-02-05 14:02:25 +01:00
Manuel Rego Casasnovas
685f0ac77d jira-integration: Allow to search labels by any chars and not only the first ones
Add simple comment explaining the purpose of SimpleListModelExt.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-01 11:34:34 +01:00
Manuel Rego Casasnovas
cdc140c7c8 jira-integration: Increase size of field jiraLabels
As this field could be used to store a list of labels, it's better that it's
longer than 255 chars.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-01 11:30:04 +01:00
Manuel Rego Casasnovas
9d17881ddb jira-integration: Fix issue in _jiraSyncInfo that was using args instead of arg
This was causing that the messages to show or not depending on the success
operation were not working properly.

Moreover, it has been updated the messages to give more information to the user.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-01 11:10:28 +01:00
Manuel Rego Casasnovas
21da67ffcd jira-integration: Fix minor visual stuff in JIRA part inside project edition
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-01 10:38:28 +01:00
Manuel Rego Casasnovas
87747a1cdc jira-integration: Hide JIRA part in project edition if not activated
If JIRA is not activated the part to do the synchronization with the server in
the project edition shouldn't be visible.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-01 10:35:59 +01:00
Manuel Rego Casasnovas
c956b17542 jira-integration: Reload order after JIRA synchronization
This allows user to change to WBS tab and see the imported tasks just after
import the issues from JIRA.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-02-01 10:06:45 +01:00
miciele Ghiorghis
78e1d7b10b Jira-integration: classes renamed and basic comments added 2013-02-01 09:53:24 +01:00
Manuel Rego Casasnovas
25d1461263 jira-integration: Rename jiraLabelUrl to jiraLabels
Due to previous commit, this field could save a URL or a list of labels, so the
name has been changed to avoid misunderstandings.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 17:13:24 +01:00
Manuel Rego Casasnovas
5d439b032a jira-integration: Allow to store a comma-separated list of labels instead of URL
This patch allows the user to store a URL or a comma-separated list of words to
specify the possible labels for the JIRA connector.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 17:03:45 +01:00
Manuel Rego Casasnovas
f5d8984c5b jira-integration: Disable code edition in task pop-up for JIRA issues
JIRA issues code is not editable in the WBS and it shouldn't be editable in the
task edition pop-up either.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 11:00:52 +01:00
Manuel Rego Casasnovas
7a26294060 jira-integration: Avoid issue with code comming back from task edition pop-up
When you enter in the edition of a task in the WBS, if the task is a JIRA issue,
when you come back to the WBS LibrePlan was trying to update the code column,
however this column doesn't exist for JIRA issues as we're using a link.

Fixed that to avoid an exception in this situation.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 10:53:39 +01:00
Manuel Rego Casasnovas
eea2ace0cc jira-integration: Fix bug if comment length is lower than max length
If the comment length is lower than the max length of the DescriptionField, then
it's not needed to truncate it.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 10:26:20 +01:00
Manuel Rego Casasnovas
d736a512ec jira-integration: Avoid create the work report line if worker is not found
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 10:12:12 +01:00
Manuel Rego Casasnovas
a3271120d7 jira-integration: Set scale for progress measurement when synchronizing order elements
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 10:01:54 +01:00
Manuel Rego Casasnovas
54d17c5380 jira-integration: Only catch WebApplicationException in try for WebClient.create
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 10:01:54 +01:00
Manuel Rego Casasnovas
f2709cb293 jira-integration: Surround WebClient.create calls with try/catch
In order to avoid exceptions accessing to an URL, the calls to WebClient.create
have been enclosed into try/catch statements, logging the exception and showing
an appropriate message to the user.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 08:28:06 +01:00
Manuel Rego Casasnovas
72c2d0dc1b Revert "jira-integration: Avoid saving in startSyncWithJir"
This reverts commit f3bec8193f.

Because of it was causing some issues:
* The WBS was not loaded properly after synchronization
* WorkReports cannot be saved as the order elements where not saved yet

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-31 08:26:19 +01:00
Manuel Rego Casasnovas
4cd0afc504 jira-integration: Simplify code in updateOrCreateDescriptionValuesAndAddToWorkReportLine
As we know that the predefined WorkReportType will only have 1 DescriptionValue,
we can take advantage of this to simplify the code.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 17:43:38 +01:00
Manuel Rego Casasnovas
e16ec15add jira-integration: Move code part from updateWorkReportLine to updateOrCreateWorkReportLineAndAddToWorkReport
The code was being generated in 2 parts, first for the query and then to be set.
As in other cases if the WorkReportLine is found by code, we don't need to set
it again. So the part related to manage the code has been moved close to the
query and only set for newly created objects.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 17:39:23 +01:00
Manuel Rego Casasnovas
15bbcde0c4 jira-integration: Use new predefined work report type in JiraTimesheetSynchronizer
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 17:39:23 +01:00
Manuel Rego Casasnovas
52a0e89071 jira-integration: Add predefined WorkReportType for JIRA connector
* The predefined type will have a line description value to store comments in
  each line.
* As for the case of personal timesheets the new type will be hidden for the
  users in the list of timesheets templates.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 17:13:33 +01:00
Manuel Rego Casasnovas
f3bec8193f jira-integration: Avoid saving in startSyncWithJir
User should be able to do not save if he is not happy with the result of the
JIRA importation.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 14:10:52 +01:00
Manuel Rego Casasnovas
4ebff70afa jira-integration: Remove event from syncWithJira as it's not used
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 14:10:15 +01:00
Manuel Rego Casasnovas
72ada7c634 jira-integration: Disable hours edition in JIRA issues
For tasks that are JIRA issues the hours fields will be readonly.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 14:01:39 +01:00
Manuel Rego Casasnovas
2a359993ce jira-integration: Refactorization related to paint a link in the WBS if the task is a JIRA issue
* A new method isJiraIssue has been added to OrderElement checking if the code
  uses the JIRA prefix or not.
* The method Util.bind has been removed as it was specific of this link and only
  used in one place.
* To calculate issue code for the link it has been used StringUtils.removeStart.

TODO: Pending to disable hours in WBS if the task is a JIRA issue.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 13:43:40 +01:00
Manuel Rego Casasnovas
78379f56b3 jira-integration: Replace Jira by JIRA in all the strings
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 12:53:42 +01:00
Manuel Rego Casasnovas
bf33fbc1ed jira-integration: Check status code against OK
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 12:53:42 +01:00
Manuel Rego Casasnovas
55b5bedf81 jira-integration: Replace printStackTrace by throw RuntimeException
FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 12:53:42 +01:00
Manuel Rego Casasnovas
25d508ef46 jira-integration: By default ignore tests that only passes if you have a JIRA server
Some tests only passes if you have a JIRA server installed, as it's not
something mandatory to run LibrePlan, these tests are ignored by default.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
2013-01-30 12:22:00 +01:00