Commit graph

13 commits

Author SHA1 Message Date
Fernando Bellas Permuy
d9f0a0ee51 ItEr42S12CUImportacionRecursosProductivosItEr41S15: Support for importing resources with cost assignments.
Support for importing resources with cost assignments has been implemented. Many test cases have been implemented for checking all constraint violations in cost assigments (special care has been taken to check time interval overlappings). toString method has been implemented in constraint violation related DTOs to facilitate debuging in testing.
2010-01-09 18:57:56 +01:00
Fernando Bellas Permuy
3f67d4aad5 ItEr42S12CUImportacionRecursosProductivosItEr41S15: Calendar-specification support for resources being imported.
Resources to be imported can now specify a calendar name. Each resource will have a derived calendar of the specified one. Furthermore, test cases have been implemented for the most common cases (calendar not specified -> use default calendar, calendar specified, and non-existent calendar).
2010-01-07 16:47:28 +01:00
Fernando Bellas Permuy
1a12344ce5 ItEr42S12CUImportacionRecursosProductivosItEr41S15: Detection of resoures with hthe same "logical" name among the resources being imported.
Resources with the same "logical" name (code for machines; first name, surnamne, and nif for workers) among the list of resources *being imported* are detected. This detection must be implemented at the service-level (at the entity-level, @AssertTrue annotations in Machine and Worker detect importation of resources with the same logical name as other resources already existing in the *database*). A test case has been added (furthermore, ResourceServiceTest has been refactorized a little bit).
2010-01-07 16:45:05 +01:00
Fernando Bellas Permuy
ae52e31f17 ItEr41S15CUImportacionRecursosProductivosItEr40S20: Test case added to check criterion and criterion type names when importing resources.
Test case added to check criterion and criterion type names when importing resources.
2010-01-03 13:19:40 +01:00
Fernando Bellas Permuy
77a236a5e8 ItEr41S15CUImportacionRecursosProductivosItEr40S20: Constraint added to verify criterion satisfactions are of a CriterionType compatible with the resource
--
Fernando Bellas Permuy

Associate Professor (Titular) at University of A Coruña
Department of Information and Communications Technologies
Facultad de Informática - Campus de Elviña, S/N
15071 - A Coruña - Spain
http://www.tic.udc.es/~fbellas - fbellas@udc.es
Tel: +34 981 167 000 (ext: 1353) - Fax: +34 981 167 160

>From c9af4778e28e370fb2a8dc2c63a4d75e41a07d7f Mon Sep 17 00:00:00 2001
From: Fernando Bellas Permuy <fbellas@udc.es>
Date: Thu, 31 Dec 2009 13:14:28 +0100
Subject: [PATCH 6/7] ItEr41S15CUImportacionRecursosProductivosItEr40S20: Constraint added to verify criterion satisfactions are of a CriterionType compatible with the resource.

A test case has also been added.
2010-01-03 13:19:36 +01:00
Fernando Bellas Permuy
523aa46263 ItEr41S15CUImportacionRecursosProductivosItEr40S20: Resource validations propagaged to CriterionSatisfactions.
@Valid has been specified in Resource::getCriterionSatisfactions. A test case has been added to verify a validation constraint is generated when a resource containing a criterion satisfaction without start date is being imported with the REST service (@Valid annotation is necessary).
2010-01-03 13:19:25 +01:00
Fernando Bellas Permuy
746ce17bf1 ItEr41S15CUImportacionRecursosProductivosItEr40S20: String fields when importing resources are trimmed.
String fields when importing resources are trimmed.
2010-01-03 13:19:21 +01:00
Fernando Bellas Permuy
ec0da2601e ItEr41S15CUImportacionRecursosProductivosItEr40S20: Bug fixed when firstName, surname or nif are null in a worker to be imported with the REST service.
Bug fixed when firstName, surname or nif are null in a worker to be imported with the REST service. Now, Worker::checkConstraintUniqueFirstName checks if such fields are null.
2010-01-03 13:19:19 +01:00
Manuel Rego Casasnovas
ef4bedfab9 ItEr41S16ImplantacionAplicacionItEr40S21: Added scripts for order elements service. 2010-01-02 12:58:45 +01:00
Fernando Bellas Permuy
ed5c0976d2 ItEr40S20CUImportacionRecursosProductivosItEr39S23: Added support for importing resources containing criterion satisfactions.
Added support for importing resources containing criterion satisfactions. Complex validations are not implemented yet.
2009-12-29 17:13:12 +01:00
Fernando Bellas Permuy
a01c1fa5b3 ItEr40S20CUImportacionRecursosProductivosItEr39S23: REST service for importing resources exported remotely.
REST service for importing resources has been exported remotely. A script and a sample file with resources is also provided. Complex validations are not implemented yet.
2009-12-29 17:13:12 +01:00
Fernando Bellas Permuy
6f2754ae56 ItEr40S20CUImportacionRecursosProductivosItEr39S23: get-*.sh and post-*.sh REST scripts have been renamed to export-*.sh and import-*.sh, respectively.
get-*.sh and post-*.sh REST scripts have been renamed to export-*.sh and import-*.sh, respectively.
2009-12-29 17:13:12 +01:00
Fernando Bellas Permuy
e4d9fa0e01 ItEr40S20CUImportacionRecursosProductivosItEr39S23: "scripts/rest-clients" folder has been created with initial scripts for REST clients.
The new foler includes a README file (please, update it when adding new scripts), common scripts (base64.sh and rest-common-env.sh), two scripts (post-criterions-types.sh and get-criterion-types.sh) for importing/exporting criterion types, and a sample file (criterion-types-sample.xml) with criterion types to be imported.
2009-12-23 13:53:13 +01:00