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.
71 lines
1.9 KiB
Text
71 lines
1.9 KiB
Text
+ Check you have "tidy" available from the command line.
|
|
|
|
+ Check you have "/usr/bin/ruby".
|
|
|
|
+ chmod u+x *.sh
|
|
|
|
+ When working with the local application:
|
|
|
|
* Get XML Schema for any service:
|
|
|
|
- get-xml-schema.sh <service-path>
|
|
|
|
Example:
|
|
- get-xml-schema.sh criteriontypes
|
|
|
|
* [Optional] For clarity: remove "navaldev" database + reload Jetty.
|
|
|
|
* Import criterion types:
|
|
|
|
- import-criterions-types.sh criterion-types-sample.xml
|
|
(authenticate with wswriter/wswriter)
|
|
|
|
- Check the returned errors are consistent with the comments in
|
|
criterion-types-sample.xml.
|
|
|
|
- Repeat with criterion-types-update-sample.xml (for updating some
|
|
criterion types).
|
|
|
|
* Export criterion types:
|
|
|
|
- export-criterion-types.sh (authenticate with wsreader/wsreader)
|
|
|
|
* Import resources:
|
|
|
|
- import-resources.sh resources-sample-mini.xml (or resources-sample.xml)
|
|
(authenticate with wswriter/wswriter)
|
|
|
|
- Check the returned errors are consistent with the comments in
|
|
resources-sample.xml.
|
|
|
|
- Repeat with resources-update-sample.xml (resources-sample-mini.xml
|
|
must be previously imported).
|
|
|
|
* Export order elements:
|
|
|
|
- export-order-element.sh ORDER-ELEMENT-CODE (authenticate with
|
|
wsreader/wsreader)
|
|
|
|
* Import orders:
|
|
|
|
- import-order.sh order-sample.xml (authenticate with wswriter/wswriter)
|
|
|
|
* Update orders:
|
|
|
|
- update-order.sh order-update-sample.xml (authenticate with
|
|
wswriter/wswriter)
|
|
|
|
* Export resources hours:
|
|
|
|
- export-resources-hours.sh 2010-01-01 2010-12-31 (authenticate with
|
|
wsreader/wsreader)
|
|
|
|
- export-resources-hours.sh 21654685 2010-01-01 2010-12-31 (authenticate
|
|
with wsreader/wsreader)
|
|
|
|
+ When working with the online demo add "--prod" argument to every command.
|
|
Example:
|
|
|
|
* import-criterions-types.sh --prod criterion-types-sample.xml
|
|
(authenticate with wswriter/wswriter)
|
|
|