[MAGNOLIA-2454] Move support for properties format from MockUtil to core Created: 29/Oct/08  Updated: 23/Jan/13  Resolved: 26/Jan/09

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: None
Fix Version/s: 4.0

Type: New Feature Priority: Major
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MAGNOLIA-2584 Consolidate syntax of properties for... Closed
relation
is related to MAGNOLIA-2245 Review and suppress usage of deprecat... Closed
Template:
Acceptance criteria:
Empty

 Description   

In MockUtil, we currently have support for importing/creating nodes using properties, which is very handy for tests, but would actually also be handy for modules which have to maintain a lot of bootstrap files, whose format isn't the most practical to manipulate.

DataTransporter.importProperties() already provides a similar functionality, but it doesn't provide support for node type nor property type.

The only functionality that will probably have to stay in MockUtil is that, since its using MockContent instance, arbitrary uuid's can be assigned to nodes.

We will also have to implement conflict behaviours, probably similar to ImportUUIDBehavior.



 Comments   
Comment by Magnolia International [ 29/Oct/08 ]

done on svn - added PropertiesImportExport class in info.magnolia.cms.core.ie package.
To be completely reviewed.
TODO : move and write more tests
TODO : package
TODO : consolidate syntax, remove support for old dot-based syntax (/foo/bar.bar=dumdum should be the supported one)
TODO : handle conflicts (what to do with existing nodes, existing properties, what to do if we ignore the fact that a node exists and it has existing properties which are not specified by the properties file, etc. ) - we probably need a flag similar to ImportUUIDBehavior.

Comment by Magnolia International [ 29/Oct/08 ]

Also added info.magnolia.module.delta.PropertiesImportTask.

Comment by Magnolia International [ 26/Jan/09 ]

done, for further improvements, see MAGNOLIA-2584

Generated at Mon Feb 12 03:36:53 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.