Commit graph

72 commits

Author SHA1 Message Date
Manuel Rego Casasnovas
8509515e75 Add new method to delete a work report from the web service
FEA: ItEr77S06AllowDeleteWorkReports
2012-08-27 12:16:24 +02:00
Susana Montes Pedreira
f3ada1bea4 update web services documentation and add scripts to test this case and
some example files.

FEA: ItEr76S22ExpenseTrackingSystem
2012-06-18 09:08:11 +01:00
Manuel Rego Casasnovas
d166efe343 doc: Fix wrong path in web services documentation
FEA: ItEr76S03Community
2012-05-15 07:16:42 +02:00
Manuel Rego Casasnovas
67da9ab7ff doc: Improve web services documentation with the list of available services
FEA: ItEr76S03Community
2012-05-11 09:01:41 +02:00
Manuel Rego Casasnovas
da64d3bd26 Replace "Login name" for "Username"
FEA: ItEr76S27ResourceBinding
2012-05-09 13:36:48 +02:00
Manuel Rego Casasnovas
d8ade380b6 Change URL to demo in REST services example scripts 2012-03-09 18:01:07 +01:00
Manuel Rego Casasnovas
2a7e571edc Rename NavalPlan to LibrePlan
* Change all folders and file names
* Change string in all files

FEA: ItEr75S03CommunityMaterial
2011-10-28 09:13:16 +02:00
Manuel Rego Casasnovas
02a5c3c319 [doc] Add note in web services README about HTTP Basic Authentication 2011-10-08 12:29:18 +02:00
Manuel Rego Casasnovas
053f40dbb6 Fix issues in Ubuntu with REST scripts
FEA: ItEr75S04BugFixing
2011-10-03 10:34:25 +02:00
Manuel Rego Casasnovas
00354bd71a [Bug #1132] Fix web service example for CalendarExceptionTypeSample
Now it uses the new defined colors.

FEA: ItEr75S04BugFixing
2011-08-05 11:27:54 +02:00
Manuel Rego Casasnovas
69c7d4fc52 [doc] Updated web services documentation with info about new methods.
FEA: ItEr75S12AllowExportOneEntity
2011-07-12 17:22:40 +02:00
Manuel Rego Casasnovas
8f35436f26 Modified export script to test new get methods by code in web services.
FEA: ItEr75S12AllowExportOneEntity
2011-07-11 13:14:19 +02:00
Manuel Rego Casasnovas
0acc29aadf Replaced tabs for 4-spaces in several files. 2011-07-01 09:49:46 +02:00
Manuel Rego Casasnovas
2ee45a57a9 [doc] Fixed small things in web services basic documentation.
FEA: ItEr75S03CommunityMaterial
2011-06-28 16:27:37 +02:00
Manuel Rego Casasnovas
3697c7f8a5 [doc] Improved info about web services.
FEA: ItEr74S03CommunityMaterialItEr73S03
2011-06-19 17:46:57 +02:00
Manuel Rego Casasnovas
b19cc48936 Tidy not mandatory for example REST scripts.
* Fixed doc too.

FEA: ItEr74S04BugFixing
2011-06-19 16:51:15 +02:00
Manuel Rego Casasnovas
a50bd81335 [doc] Get rid of Ruby.
FEA: ItEr74S04BugFixing
2011-06-19 16:14:12 +02:00
Manuel Rego Casasnovas
dacf31f92e Updated script to get REST XML schema to new variables for environments.
FEA: ItEr74S04BugFixing
2011-06-19 15:33:21 +02:00
Manuel Rego Casasnovas
52e318b463 Remove needed to use Ruby for REST example scripts.
FEA: ItEr74S04BugFixing
2011-06-19 15:27:54 +02:00
Manuel Rego Casasnovas
dfca2f53e4 Now rest clients use demo deployment by default and have 2 new options --prod and --dev.
FEA: ItEr74S04BugFixing
2011-06-09 10:38:37 +02:00
Manuel Rego Casasnovas
f00ba4f3ce Exception type web services.
* Added new field to export service.
* Implemented import service and added example.

FEA: ItEr61S06ExceptionTypeEntity
2010-10-13 16:32:17 +02:00
Manuel Rego Casasnovas
44c8d656e0 Renaming example of work reports service to make it consistent with the rest of examples. 2010-09-20 11:07:07 +02:00
Manuel Rego Casasnovas
4d5342464b Fixed orders service examples and documentation.
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-20 11:07:07 +02:00
Manuel Rego Casasnovas
53d22d9af4 Fixed material categories service, updated examples and documentation.
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-18 13:39:00 +02:00
Manuel Rego Casasnovas
37c5777bb8 Fixed example of cost categories service in order to use the same codes than work hours types example.
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-18 13:38:57 +02:00
Manuel Rego Casasnovas
6020bb8af0 Fixed example of calendars service.
FEA: ItEr60S04ValidacionEProbasFuncionaisItEr59S04
2010-09-18 13:38:51 +02:00
Susana Montes Pedreira
6ce60c81f4 ItEr60S04ValidacionEProbasFuncionaisItEr59S04 : Fixing bug in the unit type class.
it shows the error messages when the importation is incorrect.
2010-07-09 13:49:04 +02:00
Susana Montes Pedreira
ca57ad2b2d ItEr60S04ValidacionEProbasFuncionaisItEr59S04 : Fixing bug in the type of work hours class.
adds the checkConstraintUniqueName method to check if the name is unique.
2010-07-09 13:49:01 +02:00
Susana Montes Pedreira
32af27067b ItEr60S04ValidacionEProbasFuncionaisItEr59S04 : Fixing bug in Order Service.
it shows the error messages when the importation is incorrect.
2010-07-09 13:48:58 +02:00
Susana Montes Pedreira
961eca61ea ItEr60S04ValidacionEProbasFuncionaisItEr59S04 : Fixing bug in the work report class.
it shows the error messages when the importation is incorrect.
2010-07-08 21:22:21 +02:00
Manuel Rego Casasnovas
4d5fa2a1e1 ItEr60S04ValidacionEProbasFuncionaisItEr59S04: Updated examples for order service to wrap with an "order-line". 2010-06-28 00:57:07 +02:00
Manuel Rego Casasnovas
813b77c04f ItEr55S07AdaptacionServiciosRESTItEr54S09: Fixed type in hors-per-day instead of hours-per-day. 2010-04-26 13:50:13 +02:00
Manuel Rego Casasnovas
d795fe6270 ItEr55S07AdaptacionServiciosRESTItEr54S09: Using a more human friendly code for CalendarExceptionType predefined entities. 2010-04-26 13:50:09 +02:00
Susana Montes Pedreira
fee8406e5e ItEr53S10AdaptacionServiciosRESTItEr52S10 : adds the import of calendars to the calendar service. 2010-04-13 11:15:15 +02:00
Manuel Rego Casasnovas
c4d60526c1 ItEr53S04ValidacionEProbasFuncionaisItEr52S04: Updated URL to navalplan.org for REST scripts. 2010-04-06 08:49:39 +02:00
Susana Montes Pedreira
3aeb9544e4 ItEr52S10AdaptacionServiciosRESTItEr51S10: Adapting of the material-categories-sample.xml 2010-03-26 18:57:31 +01:00
Susana Montes Pedreira
4126c6de43 ItEr52S10AdaptacionServiciosRESTItEr51S10: Creation and Adapting of UnitTypeServiceRest. 2010-03-26 17:58:49 +01:00
Susana Montes Pedreira
331837adf5 ItEr52S10AdaptacionServiciosRESTItEr51S10: Creation and Adapting of MaterialCategoryServiceRest. 2010-03-26 11:13:53 +01:00
Manuel Rego Casasnovas
fb3bd8bacf ItEr50S13AdaptacionServiciosRESTItEr49S18: Implementing calendars export service. 2010-03-22 16:39:34 +01:00
Manuel Rego Casasnovas
bafae1638a ItEr51S10AdaptacionServiciosRESTItEr50S13: Added export resources service. 2010-03-22 11:37:58 +01:00
Susana Montes Pedreira
daabf1ce4c ItEr50S13AdaptacionServiciosRESTItEr49S18 : Adapting of OrderServiceRest to GenericServiceRest. 2010-03-22 11:19:12 +01:00
Manuel Rego Casasnovas
2563ba73c6 ItEr50S13AdaptacionServiciosRESTItEr49S18: Creating web service for export CalendarExceptionType entities. 2010-03-16 14:08:04 +01:00
Susana Montes Pedreira
105a2f0169 ItEr50S13AdaptacionServiciosRESTItEr49S18 : Creation and Adapting of TypeOfWorkHoursServiceRest. 2010-03-15 16:06:49 +01:00
Susana Montes Pedreira
59b6776b8c ItEr50S13AdaptacionServiciosRESTItEr49S18 : Creation and Adapting of CostCategoryServiceRest to GenericServiceRest.
Important : it should be to add the column code to the table costcategory and the table hourcost.
2010-03-15 14:22:21 +01:00
Susana Montes Pedreira
4fe334f33c ItEr50S13AdaptacionServiciosRESTItEr49S18 : Adapting of WorkReportServiceRest to GenericServiceRest.
This patch should be applied after the following patches :
ItEr50S13AdaptacionServiciosRESTItEr49S18 : Adds class validations.
ItEr50S13AdaptacionServiciosRESTItEr49S18 : Refactoring the create way a work report line.

    It is need a work report to create a work report line , and now the work report line
    does not change its work report.
2010-03-15 10:56:38 +01:00
Susana Montes Pedreira
8f41cd5836 ItEr49S18AdaptacionServiciosREST: Fixes the LabelServiceREST. 2010-03-04 18:08:53 +01:00
Fernando Bellas Permuy
664d7a8f63 ItEr47S12CUImportacionRecursosProductivosItEr46S13: Added updating functionality to ResourceServiceREST
Updating functionality has been added to ResourceServiceREST. All data associated to a resource can be updated with the exception of the calendar field, since the updating semantics are only clearly defined for such field at this moment (what happens with the previous derived calendar: modified?, removed?, disabled?).

As part of this patch, some improvements to CriterionServiceREST implementation have also been made. In particular, updateUnvalidated methods has been added to related entities (as in ResourceServiceREST). Unlike createUnvalidated methods, such methods are used for updating, and like createUnvalidated methods, non-valid fields are allowed.

Finally, performance of GenericRESTService has been improved. Previously, validations were executed twice for each entity being imported due to previous limitations of IGenericDAO interface. Now, a new method has been added to IGenericDAO to make possible to execute validations only one time for each entity being imported.
2010-02-12 10:53:54 +01:00
Fernando Bellas Permuy
22c883820a ItEr47S12CUImportacionRecursosProductivosItEr46S13: ResourceServiceREST adapted to GenericRESTService and added support for recoverable errors.
ResourceServiceREST has been adapted to GenericRESTService. Updating functionality in ResourceServiceREST is not implemented yet.

As part of this patch, the generic infraestructure for REST services has been improved. In particular, recoverable error support has been provided. Exceptions representing recoverable errors must extend from RecoverableErrorException. To demonstrate this capability, ResourceServiceREST nows reports non-existent calendars, criterions, critetion types, and cost categories as recoverable errors.
2010-02-10 13:09:28 +01:00
Fernando Bellas Permuy
571f814b64 ItEr46S13CUImportacionRecursosProductivosItEr45S11: code added to entities imported by ResourceService.
IMPORTANT: "code" column has been added to tables of the following entitites: Resource, CriterionSatisfaction, and ResourcesCostCategoryAssignment. "code" column has been removed from Machine's table. In consequence, it is better to remove all the database when applying this patch (navaldev, navaldevtest, navalprod, and navaprodtest).

This change is compatible with the current Web user interface. The only thing you will notice is that when creating a machine, the form containing the code automatically displays a value in the code field (which, of course, can be changed by the user). Of course, the user interface should be improved to set a blank value or propose a more meaningful code to the user (probably this second option).

The service has not been adpated to GenericRESTService yet and duplicate codes in resources *being* imported are not detected yet (GenericRESTService will make this automatically).
2010-02-05 18:27:01 +01:00
Fernando Bellas Permuy
16b87de8ed ItEr46S13CUImportacionRecursosProductivosItEr45S11: First version of the generic REST service and CriterionServiceREST reimplemented in terms of it.
GenericRESTService provides initial common functionality to all services. Some another generic infraestructure has been improved (IntegrationEntity,  IIntegrationEntityDAO, InstanceConstraintViolationsDTO, and ConstraintViolationConverter) or simplified (IntegrationEntityDTO).

GenericRESTService does not implement all desirable features yet (e.g. recoverable errors). Please, do not use it yet.

CriterionServiceREST has been reimplemented in terms of it. Tests have also been improved.
2010-02-05 12:25:36 +01:00