Clone
Dan Haywood <dan@haywood-associates.co.uk>
committed
on 15 Jan 15
ISIS-970: working on ViewModelFacet, renamed to RecreatableObjectFacet (to support the generalization of this concept for domain objects wi… Show more
ISIS-970: working on ViewModelFacet, renamed to RecreatableObjectFacet  (to support the generalization of this concept for domain objects with nature=EXTERNAL_ENTITY etc)

Specifically:

- renamed ViewModelFacet to RecreatableObjectFacet, along with immediate subclasses

- introduced new RecreatableDomainObject interface in applib, equivalent to the ViewModel interface

- unified the two ViewModelXxxFacetFactory into one for two styles of facets for @ViewModel and ViewModel iface, extended to create facet for RecreatableDomainObject iface (called RecreatableObjectFacetFactory)

- added metamodel validator logic in RecreatableObjectFacetFactory such that cannot have two contradictory implementations of the RecreatableObjectFacet installed on an object spec

- update DomainObjectAnnotationFacetFactory to handle nature

Also:

- added the @ViewModelLayout as a clone of @DomainObjectLayout

- extended the Nature enum to include "NOT_SPECIFIED" and "INMEMORY_ENTITY"

Show less

master + 38 more