You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by Dan Haywood <da...@haywood-associates.co.uk> on 2014/05/06 17:05:31 UTC

Re: Unable to finish partial implementation of

Thanks for starting on this Oscar ... I'll look at it this eve.

Cheers
Dan



On 6 May 2014 15:49, GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>wrote:

>
> Hi, Dan.
>
> I've tried to complete an implementation of @PostsCollectionAddedToEvent,
> but unable to complete it.
>
> I think that there's a need to import CollectionFacet, in order to detect
> if the element had been previously added to the collection, and that forces
> to specify if it's a JavaCollection or an ArrayCollection.
>
> Dan, please, can you complete this one?
>
> I can replicate it aftewards for @PostsCollectionRemovedFromEvent
>
>
> We need it for decoupling one projection that must be generated
> automatically from another context, and that's the best way we've found.
> The alternatives seems to be to implement on each collection the addToXXX,
> removeFromXXX and inside those methods, post the event.
>
>
>
> Many Thanks,
>
> Oscar
>
>
> [1] https://issues.apache.org/jira/browse/ISIS-550
>
>

Re: Unable to finish partial implementation of

Posted by GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>.
Hi, Dan.

I have compilation errors on that branch.

[INFO] 10 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Isis Core .................................. SUCCESS [14.532s]
[INFO] Isis Core Unit Test Support ....................... SUCCESS [7.543s]
[INFO] Isis Core AppLib .................................. SUCCESS [6.146s]
[INFO] Isis Core Log4j Impls ............................. SUCCESS [1.363s]
[INFO] Isis Core MetaModel ............................... SUCCESS [59.567s]
[INFO] Isis Core Runtime ................................. SUCCESS [7.334s]
[INFO] Isis Core WebServer ............................... SUCCESS [1.628s]
[INFO] Isis Core CgLib Bytecode .......................... SUCCESS [1.491s]
[INFO] Isis Core Javassist Bytecode ...................... SUCCESS [1.057s]
[INFO] Isis Core (In-Memory) ObjectStore ................. SUCCESS [1.317s]
[INFO] Isis Core (In-memory) ProfileStore ................ SUCCESS [0.998s]
[INFO] Isis Core (Bypass) Security ....................... SUCCESS [0.959s]
[INFO] Isis Core TCK App ................................. SUCCESS [0.372s]
[INFO] Isis Core TCK DOM ................................. SUCCESS [3.335s]
[INFO] Isis Core Wrapper Service ......................... SUCCESS [1.575s]
[INFO] Isis Core Spec Support ............................ SUCCESS [2.320s]
[INFO] Isis Core Integration Testing Support ............. SUCCESS [2.674s]
[INFO] Isis Core TCK Fixtures ............................ SUCCESS [1.082s]
[INFO] Isis Groovy ProgModel ............................. SUCCESS [0.927s]
[INFO] Isis Groovy ProgModel AppLib ...................... SUCCESS [1.049s]
[INFO] Isis Groovy ProgModel MetaModel ................... SUCCESS [1.023s]
[INFO] Isis XML ProfileStore ............................. SUCCESS [1.602s]
[INFO] Isis File Security ................................ SUCCESS [1.153s]
[INFO] Isis Shiro Security ............................... SUCCESS [1.781s]
[INFO] Isis Drag-n-Drop Viewer ........................... SUCCESS [0.271s]
[INFO] Isis Drag-n-Drop Viewer Implementation ............ SUCCESS [6.946s]
[INFO] Isis XML ObjectStore .............................. SUCCESS [1.921s]
[INFO] Isis Drag-n-Drop Viewer TCK tests ................. SUCCESS [14.478s]
[INFO] Isis Scimpi Viewer ................................ SUCCESS [0.510s]
[INFO] Isis Scimpi Viewer Dispatcher ..................... SUCCESS [3.046s]
[INFO] Isis Scimpi Viewer Servlet ........................ SUCCESS [1.019s]
[INFO] Isis Scimpi Viewer TCK tests ...................... SUCCESS [6.524s]
[INFO] Isis Wicket Viewer ................................ SUCCESS [0.277s]
[INFO] Isis Wicket Viewer Model .......................... SUCCESS [3.530s]
[INFO] Isis Wicket Viewer UI Components .................. SUCCESS [10.785s]
[INFO] Isis Wicket Viewer Implementation ................. SUCCESS [2.449s]
[INFO] Isis Wicket Viewer TCK tests ...................... SUCCESS [5.248s]
[INFO] Isis RestfulObjects Viewer ........................ SUCCESS [0.396s]
[INFO] Isis RestfulObjects Viewer AppLib ................. SUCCESS [3.228s]
[INFO] Isis RestfulObjects Viewer Rendering .............. SUCCESS [1.964s]
[INFO] Isis RestfulObjects Viewer Server ................. SUCCESS [2.239s]
[INFO] Isis RestfulObjects Viewer TCK tests .............. FAILURE [2.962s]
[INFO] Isis NOSQL ObjectStore ............................ SKIPPED
[INFO] Isis JDO ObjectStore .............................. SKIPPED
[INFO] Isis JDO ObjectStore AppLib ....................... SKIPPED
[INFO] Isis JDO ObjectStore MetaModel Support ............ SKIPPED
[INFO] Isis JDO ObjectStore DataNucleus impl ............. SKIPPED
[INFO] Quickstart (Scimpi/NoSQL) App ..................... SKIPPED
[INFO] Quickstart (Scimpi/NoSQL) DOM ..................... SKIPPED
[INFO] Quickstart (Scimpi/NoSQL) Fixtures ................ SKIPPED
[INFO] Quickstart (Scimpi/NoSQL) Scimpi Viewer ........... SKIPPED
[INFO] Quickstart Wicket/Restful/JDO App ................. SKIPPED
[INFO] Quickstart Wicket/Restful/JDO DOM ................. SKIPPED
[INFO] Quickstart Wicket/Restful/JDO Fixtures ............ SKIPPED
[INFO] Quickstart Wicket/Restful/JDO Integration Tests ... SKIPPED
[INFO] Quickstart Wicket/Restful/JDO Webapp .............. SKIPPED
[INFO] Simple Wicket/Restful/JDO App ..................... SKIPPED
[INFO] Simple Wicket/Restful/JDO DOM ..................... SKIPPED
[INFO] Simple Wicket/Restful/JDO Fixtures ................ SKIPPED
[INFO] Simple Wicket/Restful/JDO Integration Tests ....... SKIPPED
[INFO] Simple Wicket/Restful/JDO Webapp .................. SKIPPED
[INFO] quickstart_wicket_restful_jdo-archetype ........... SKIPPED
[INFO] simple_wicket_restful_jdo-archetype ............... SKIPPED
[INFO] Isis Maven Mojo (isis-maven-plugin) ............... SKIPPED
[INFO] Apache Isis (Aggregator) .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:13.353s
[INFO] Finished at: Fri May 09 10:43:18 CEST 2014
[INFO] Final Memory: 71M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project isis-viewer-restfulobjects-tck: Compilation failure: Compilation failure:
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/property/Get_thenRepresentation_ok.java:[74,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.property.Get_thenRepresentation_ok
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/property/Get_thenRepresentation_ok.java:[81,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.property.Get_thenRepresentation_ok
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/property/Get_thenRepresentation_ok.java:[90,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.property.Get_thenRepresentation_ok
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/property/Get_thenRepresentation_ok.java:[101,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.property.Get_thenRepresentation_ok
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/property/Get_thenRepresentation_ok.java:[108,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.property.Get_thenRepresentation_ok
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/collection/Get_thenRepresentation_ok.java:[72,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.collection.Get_thenRepresentation_ok
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/collection/Get_thenRepresentation_ok.java:[79,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.collection.Get_thenRepresentation_ok
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/collection/Get_thenRepresentation_ok.java:[88,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.collection.Get_thenRepresentation_ok
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/collection/Get_thenRepresentation_ok.java:[99,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.collection.Get_thenRepresentation_ok
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/collection/Get_thenRepresentation_ok.java:[110,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.collection.Get_thenRepresentation_ok
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :isis-viewer-restfulobjects-tck




El 08/05/2014, a las 10:38, GESCONSULTOR - Óscar Bou <o....@gesconsultor.com> escribió:

> 
> Hi, Dan.
> 
> Many thanks. I'll complete it with the CollectionRemoveFrom... logic.
> 
> I've seen now the treat to avoid using the CollectionFacet on:
> 
> 		final Object referencedObject = AdapterUtils.unwrap(referencedObjectAdapter);
> 		
> 		// get hold of underlying collection
> 		final Object collection = getterFacet.getProperty(targetAdapter);
> 
> 		// don't post event if has set semantics and contains object
> 		if(collection instanceof Set) {
>             Set<?> set = (Set<?>) collection;
>             if(set.contains(referencedObject)) {
>                 return;
>             }
> 		}
> 
> 
> That's clear now!
> 
> Also, I've seen you've introduced a WrapperFactory policy that seems to not force the Disable or Hidden checks, but stills execute the business logic associated. 
> 
> So this way we can always configure use 
> 
> wrapperFactory(domainObject).setXXX
> 
> to ensure that the business logic on the modifyXXX methods is execute, despite the property is hidden or disabled.
> 
> That's really useful on domain entities code.
> 
> Unlike the previous case, on BDD tests (testing the user's behavior) it makes more sense to test forcing those hidden and disabled policies.
> 
> 
> So, how (or where) should be inject, configure or invoke the WrapperFactory on each case?
> - Domain Entities.
> - BDD tests.
> 
> I'm sure there's something I'm missing...
> 
> Thanks,
> 
> Oscar
> 
> 
> 
> 
> 
> 
> El 07/05/2014, a las 09:56, Dan Haywood <da...@haywood-associates.co.uk> escribió:
> 
>> Hi Oscar,
>> I've just pushed branch ISIS-550; this pretty much implements the collection add-to stuff.
>> 
>> The CollectionFacet isn't needed; that's for iterating over collections, not for manipulating them.
>> 
>> Take a look at the ToDoItem class, specifically its getDependencies() method.  Note also the add(...) method, and how it can use the wrap(...) even though the colleciton is disabled (via ToDoItem.layout.json).
>> 
>> Cheers
>> Dan
>> 
>> 
>> 
>> 
>> 
>> 
>> 2014-05-06 17:35 GMT+01:00 GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>:
>> Many thanks.
>> 
>> Cheers,
>> 
>> Oscar
>> 
>> 
>> El 06/05/2014, a las 17:05, Dan Haywood <da...@haywood-associates.co.uk> escribió:
>> 
>> 
>>> Thanks for starting on this Oscar ... I'll look at it this eve.
>>> 
>>> Cheers
>>> Dan
>>> 
>>> 
>>> 
>>> On 6 May 2014 15:49, GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>wrote:
>>> 
>>>> 
>>>> Hi, Dan.
>>>> 
>>>> I've tried to complete an implementation of @PostsCollectionAddedToEvent,
>>>> but unable to complete it.
>>>> 
>>>> I think that there's a need to import CollectionFacet, in order to detect
>>>> if the element had been previously added to the collection, and that forces
>>>> to specify if it's a JavaCollection or an ArrayCollection.
>>>> 
>>>> Dan, please, can you complete this one?
>>>> 
>>>> I can replicate it aftewards for @PostsCollectionRemovedFromEvent
>>>> 
>>>> 
>>>> We need it for decoupling one projection that must be generated
>>>> automatically from another context, and that's the best way we've found.
>>>> The alternatives seems to be to implement on each collection the addToXXX,
>>>> removeFromXXX and inside those methods, post the event.
>>>> 
>>>> 
>>>> 
>>>> Many Thanks,
>>>> 
>>>> Oscar
>>>> 
>>>> 
>>>> [1] https://issues.apache.org/jira/browse/ISIS-550
>>>> 
>>>> 
>> 
>> 
>> Óscar Bou Bou
>> Responsable de Producto
>> Auditor Jefe de Certificación ISO 27001 en BSI
>> CISA, CRISC, APMG ISO 20000, ITIL-F
>> 
>> <contactenos.html.gif>   902 900 231 / 620 267 520
>> <Pasted Graphic 1.tiff>   http://www.twitter.com/oscarbou
>> 
>> <gesdatos-software.gif>   http://es.linkedin.com/in/oscarbou
>> 
>> <blog.png>   http://www.GesConsultor.com 
>> 
>> <gesconsultor_logo_blue_email.png>
>> 
>> 
>> Este mensaje y los ficheros anexos son confidenciales. Los mismos contienen información reservada que no puede ser difundida. Si usted ha recibido este correo por error, tenga la amabilidad de eliminarlo de su sistema y avisar al remitente mediante reenvío a su dirección electrónica; no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.
>> Su dirección de correo electrónico junto a sus datos personales constan en un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la de mantener el contacto con Ud. Si quiere saber de qué información disponemos de Ud., modificarla, y en su caso, cancelarla, puede hacerlo enviando un escrito al efecto, acompañado de una fotocopia de su D.N.I. a la siguiente dirección: Gesdatos Software, S.L. , Paseo de la Castellana, 153 bajo - 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 (Valencia). Asimismo, es su responsabilidad comprobar que este mensaje o sus archivos adjuntos no contengan virus informáticos, y en caso que los tuvieran eliminarlos.
>> 
>> 
>> 
>> 
>> 
>> 
> 
> 
> Óscar Bou Bou
> Responsable de Producto
> Auditor Jefe de Certificación ISO 27001 en BSI
> CISA, CRISC, APMG ISO 20000, ITIL-F
> 
> <contactenos.html.gif>   902 900 231 / 620 267 520
> <Pasted Graphic 1.tiff>   http://www.twitter.com/oscarbou
> 
> <gesdatos-software.gif>   http://es.linkedin.com/in/oscarbou
> 
> <blog.png>   http://www.GesConsultor.com 
> 
> <gesconsultor_logo_blue_email.png>
> 
> 
> Este mensaje y los ficheros anexos son confidenciales. Los mismos contienen información reservada que no puede ser difundida. Si usted ha recibido este correo por error, tenga la amabilidad de eliminarlo de su sistema y avisar al remitente mediante reenvío a su dirección electrónica; no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.
> Su dirección de correo electrónico junto a sus datos personales constan en un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la de mantener el contacto con Ud. Si quiere saber de qué información disponemos de Ud., modificarla, y en su caso, cancelarla, puede hacerlo enviando un escrito al efecto, acompañado de una fotocopia de su D.N.I. a la siguiente dirección: Gesdatos Software, S.L. , Paseo de la Castellana, 153 bajo - 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 (Valencia). Asimismo, es su responsabilidad comprobar que este mensaje o sus archivos adjuntos no contengan virus informáticos, y en caso que los tuvieran eliminarlos.


Óscar Bou Bou
Responsable de Producto
Auditor Jefe de Certificación ISO 27001 en BSI
CISA, CRISC, APMG ISO 20000, ITIL-F

   902 900 231 / 620 267 520
   http://www.twitter.com/oscarbou

   http://es.linkedin.com/in/oscarbou

   http://www.GesConsultor.com 




Este mensaje y los ficheros anexos son confidenciales. Los mismos contienen información reservada que no puede ser difundida. Si usted ha recibido este correo por error, tenga la amabilidad de eliminarlo de su sistema y avisar al remitente mediante reenvío a su dirección electrónica; no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.
Su dirección de correo electrónico junto a sus datos personales constan en un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la de mantener el contacto con Ud. Si quiere saber de qué información disponemos de Ud., modificarla, y en su caso, cancelarla, puede hacerlo enviando un escrito al efecto, acompañado de una fotocopia de su D.N.I. a la siguiente dirección: Gesdatos Software, S.L. , Paseo de la Castellana, 153 bajo - 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 (Valencia). Asimismo, es su responsabilidad comprobar que este mensaje o sus archivos adjuntos no contengan virus informáticos, y en caso que los tuvieran eliminarlos.






Re: Unable to finish partial implementation of

Posted by GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>.
Forget by now.

Not sure, but seems I was working on an old workspace with old libraries.

Let's progress on this.


-----


Hi, Dan.

I have compilation errors on that branch.

[INFO] 10 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Isis Core .................................. SUCCESS [14.532s]
[INFO] Isis Core Unit Test Support ....................... SUCCESS [7.543s]
[INFO] Isis Core AppLib .................................. SUCCESS [6.146s]
[INFO] Isis Core Log4j Impls ............................. SUCCESS [1.363s]
[INFO] Isis Core MetaModel ............................... SUCCESS [59.567s]
[INFO] Isis Core Runtime ................................. SUCCESS [7.334s]
[INFO] Isis Core WebServer ............................... SUCCESS [1.628s]
[INFO] Isis Core CgLib Bytecode .......................... SUCCESS [1.491s]
[INFO] Isis Core Javassist Bytecode ...................... SUCCESS [1.057s]
[INFO] Isis Core (In-Memory) ObjectStore ................. SUCCESS [1.317s]
[INFO] Isis Core (In-memory) ProfileStore ................ SUCCESS [0.998s]
[INFO] Isis Core (Bypass) Security ....................... SUCCESS [0.959s]
[INFO] Isis Core TCK App ................................. SUCCESS [0.372s]
[INFO] Isis Core TCK DOM ................................. SUCCESS [3.335s]
[INFO] Isis Core Wrapper Service ......................... SUCCESS [1.575s]
[INFO] Isis Core Spec Support ............................ SUCCESS [2.320s]
[INFO] Isis Core Integration Testing Support ............. SUCCESS [2.674s]
[INFO] Isis Core TCK Fixtures ............................ SUCCESS [1.082s]
[INFO] Isis Groovy ProgModel ............................. SUCCESS [0.927s]
[INFO] Isis Groovy ProgModel AppLib ...................... SUCCESS [1.049s]
[INFO] Isis Groovy ProgModel MetaModel ................... SUCCESS [1.023s]
[INFO] Isis XML ProfileStore ............................. SUCCESS [1.602s]
[INFO] Isis File Security ................................ SUCCESS [1.153s]
[INFO] Isis Shiro Security ............................... SUCCESS [1.781s]
[INFO] Isis Drag-n-Drop Viewer ........................... SUCCESS [0.271s]
[INFO] Isis Drag-n-Drop Viewer Implementation ............ SUCCESS [6.946s]
[INFO] Isis XML ObjectStore .............................. SUCCESS [1.921s]
[INFO] Isis Drag-n-Drop Viewer TCK tests ................. SUCCESS [14.478s]
[INFO] Isis Scimpi Viewer ................................ SUCCESS [0.510s]
[INFO] Isis Scimpi Viewer Dispatcher ..................... SUCCESS [3.046s]
[INFO] Isis Scimpi Viewer Servlet ........................ SUCCESS [1.019s]
[INFO] Isis Scimpi Viewer TCK tests ...................... SUCCESS [6.524s]
[INFO] Isis Wicket Viewer ................................ SUCCESS [0.277s]
[INFO] Isis Wicket Viewer Model .......................... SUCCESS [3.530s]
[INFO] Isis Wicket Viewer UI Components .................. SUCCESS [10.785s]
[INFO] Isis Wicket Viewer Implementation ................. SUCCESS [2.449s]
[INFO] Isis Wicket Viewer TCK tests ...................... SUCCESS [5.248s]
[INFO] Isis RestfulObjects Viewer ........................ SUCCESS [0.396s]
[INFO] Isis RestfulObjects Viewer AppLib ................. SUCCESS [3.228s]
[INFO] Isis RestfulObjects Viewer Rendering .............. SUCCESS [1.964s]
[INFO] Isis RestfulObjects Viewer Server ................. SUCCESS [2.239s]
[INFO] Isis RestfulObjects Viewer TCK tests .............. FAILURE [2.962s]
[INFO] Isis NOSQL ObjectStore ............................ SKIPPED
[INFO] Isis JDO ObjectStore .............................. SKIPPED
[INFO] Isis JDO ObjectStore AppLib ....................... SKIPPED
[INFO] Isis JDO ObjectStore MetaModel Support ............ SKIPPED
[INFO] Isis JDO ObjectStore DataNucleus impl ............. SKIPPED
[INFO] Quickstart (Scimpi/NoSQL) App ..................... SKIPPED
[INFO] Quickstart (Scimpi/NoSQL) DOM ..................... SKIPPED
[INFO] Quickstart (Scimpi/NoSQL) Fixtures ................ SKIPPED
[INFO] Quickstart (Scimpi/NoSQL) Scimpi Viewer ........... SKIPPED
[INFO] Quickstart Wicket/Restful/JDO App ................. SKIPPED
[INFO] Quickstart Wicket/Restful/JDO DOM ................. SKIPPED
[INFO] Quickstart Wicket/Restful/JDO Fixtures ............ SKIPPED
[INFO] Quickstart Wicket/Restful/JDO Integration Tests ... SKIPPED
[INFO] Quickstart Wicket/Restful/JDO Webapp .............. SKIPPED
[INFO] Simple Wicket/Restful/JDO App ..................... SKIPPED
[INFO] Simple Wicket/Restful/JDO DOM ..................... SKIPPED
[INFO] Simple Wicket/Restful/JDO Fixtures ................ SKIPPED
[INFO] Simple Wicket/Restful/JDO Integration Tests ....... SKIPPED
[INFO] Simple Wicket/Restful/JDO Webapp .................. SKIPPED
[INFO] quickstart_wicket_restful_jdo-archetype ........... SKIPPED
[INFO] simple_wicket_restful_jdo-archetype ............... SKIPPED
[INFO] Isis Maven Mojo (isis-maven-plugin) ............... SKIPPED
[INFO] Apache Isis (Aggregator) .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3:13.353s
[INFO] Finished at: Fri May 09 10:43:18 CEST 2014
[INFO] Final Memory: 71M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project isis-viewer-restfulobjects-tck: Compilation failure: Compilation failure:
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/property/Get_thenRepresentation_ok.java:[74,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.property.Get_thenRepresentation_ok
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/property/Get_thenRepresentation_ok.java:[81,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.property.Get_thenRepresentation_ok
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/property/Get_thenRepresentation_ok.java:[90,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.property.Get_thenRepresentation_ok
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/property/Get_thenRepresentation_ok.java:[101,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.property.Get_thenRepresentation_ok
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/property/Get_thenRepresentation_ok.java:[108,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.property.Get_thenRepresentation_ok
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/collection/Get_thenRepresentation_ok.java:[72,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.collection.Get_thenRepresentation_ok
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/collection/Get_thenRepresentation_ok.java:[79,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.collection.Get_thenRepresentation_ok
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/collection/Get_thenRepresentation_ok.java:[88,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.collection.Get_thenRepresentation_ok
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/collection/Get_thenRepresentation_ok.java:[99,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.collection.Get_thenRepresentation_ok
[ERROR] /Users/oscarboubou/dev/isis-as-committer/component/viewer/restfulobjects/tck/src/test/java/org/apache/isis/viewer/restfulobjects/tck/domainobject/oid/collection/Get_thenRepresentation_ok.java:[110,9] cannot find symbol
[ERROR] symbol  : method assertThat(org.apache.isis.viewer.restfulobjects.applib.LinkRepresentation,org.apache.isis.viewer.restfulobjects.tck.RestfulMatchers.LinkMatcherBuilder)
[ERROR] location: class org.apache.isis.viewer.restfulobjects.tck.domainobject.oid.collection.Get_thenRepresentation_ok
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :isis-viewer-restfulobjects-tck




El 08/05/2014, a las 10:38, GESCONSULTOR - Óscar Bou <o....@gesconsultor.com> escribió:

> 
> Hi, Dan.
> 
> Many thanks. I'll complete it with the CollectionRemoveFrom... logic.
> 
> I've seen now the treat to avoid using the CollectionFacet on:
> 
> 		final Object referencedObject = AdapterUtils.unwrap(referencedObjectAdapter);
> 		
> 		// get hold of underlying collection
> 		final Object collection = getterFacet.getProperty(targetAdapter);
> 
> 		// don't post event if has set semantics and contains object
> 		if(collection instanceof Set) {
>             Set<?> set = (Set<?>) collection;
>             if(set.contains(referencedObject)) {
>                 return;
>             }
> 		}
> 
> 
> That's clear now!
> 
> Also, I've seen you've introduced a WrapperFactory policy that seems to not force the Disable or Hidden checks, but stills execute the business logic associated. 
> 
> So this way we can always configure use 
> 
> wrapperFactory(domainObject).setXXX
> 
> to ensure that the business logic on the modifyXXX methods is execute, despite the property is hidden or disabled.
> 
> That's really useful on domain entities code.
> 
> Unlike the previous case, on BDD tests (testing the user's behavior) it makes more sense to test forcing those hidden and disabled policies.
> 
> 
> So, how (or where) should be inject, configure or invoke the WrapperFactory on each case?
> - Domain Entities.
> - BDD tests.
> 
> I'm sure there's something I'm missing...
> 
> Thanks,
> 
> Oscar
> 
> 
> 
> 
> 
> 
> El 07/05/2014, a las 09:56, Dan Haywood <da...@haywood-associates.co.uk> escribió:
> 
>> Hi Oscar,
>> I've just pushed branch ISIS-550; this pretty much implements the collection add-to stuff.
>> 
>> The CollectionFacet isn't needed; that's for iterating over collections, not for manipulating them.
>> 
>> Take a look at the ToDoItem class, specifically its getDependencies() method.  Note also the add(...) method, and how it can use the wrap(...) even though the colleciton is disabled (via ToDoItem.layout.json).
>> 
>> Cheers
>> Dan
>> 
>> 
>> 
>> 
>> 
>> 
>> 2014-05-06 17:35 GMT+01:00 GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>:
>> Many thanks.
>> 
>> Cheers,
>> 
>> Oscar
>> 
>> 
>> El 06/05/2014, a las 17:05, Dan Haywood <da...@haywood-associates.co.uk> escribió:
>> 
>> 
>>> Thanks for starting on this Oscar ... I'll look at it this eve.
>>> 
>>> Cheers
>>> Dan
>>> 
>>> 
>>> 
>>> On 6 May 2014 15:49, GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>wrote:
>>> 
>>>> 
>>>> Hi, Dan.
>>>> 
>>>> I've tried to complete an implementation of @PostsCollectionAddedToEvent,
>>>> but unable to complete it.
>>>> 
>>>> I think that there's a need to import CollectionFacet, in order to detect
>>>> if the element had been previously added to the collection, and that forces
>>>> to specify if it's a JavaCollection or an ArrayCollection.
>>>> 
>>>> Dan, please, can you complete this one?
>>>> 
>>>> I can replicate it aftewards for @PostsCollectionRemovedFromEvent
>>>> 
>>>> 
>>>> We need it for decoupling one projection that must be generated
>>>> automatically from another context, and that's the best way we've found.
>>>> The alternatives seems to be to implement on each collection the addToXXX,
>>>> removeFromXXX and inside those methods, post the event.
>>>> 
>>>> 
>>>> 
>>>> Many Thanks,
>>>> 
>>>> Oscar
>>>> 
>>>> 
>>>> [1] https://issues.apache.org/jira/browse/ISIS-550
>>>> 
>>>> 
>> 
>> 
>> Óscar Bou Bou
>> Responsable de Producto
>> Auditor Jefe de Certificación ISO 27001 en BSI
>> CISA, CRISC, APMG ISO 20000, ITIL-F
>> 
>> <contactenos.html.gif>   902 900 231 / 620 267 520
>> <Pasted Graphic 1.tiff>   http://www.twitter.com/oscarbou
>> 
>> <gesdatos-software.gif>   http://es.linkedin.com/in/oscarbou
>> 
>> <blog.png>   http://www.GesConsultor.com 
>> 
>> <gesconsultor_logo_blue_email.png>
>> 
>> 
>> Este mensaje y los ficheros anexos son confidenciales. Los mismos contienen información reservada que no puede ser difundida. Si usted ha recibido este correo por error, tenga la amabilidad de eliminarlo de su sistema y avisar al remitente mediante reenvío a su dirección electrónica; no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.
>> Su dirección de correo electrónico junto a sus datos personales constan en un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la de mantener el contacto con Ud. Si quiere saber de qué información disponemos de Ud., modificarla, y en su caso, cancelarla, puede hacerlo enviando un escrito al efecto, acompañado de una fotocopia de su D.N.I. a la siguiente dirección: Gesdatos Software, S.L. , Paseo de la Castellana, 153 bajo - 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 (Valencia). Asimismo, es su responsabilidad comprobar que este mensaje o sus archivos adjuntos no contengan virus informáticos, y en caso que los tuvieran eliminarlos.
>> 
>> 
>> 
>> 
>> 
>> 
> 
> 
> Óscar Bou Bou
> Responsable de Producto
> Auditor Jefe de Certificación ISO 27001 en BSI
> CISA, CRISC, APMG ISO 20000, ITIL-F
> 
> <contactenos.html.gif>   902 900 231 / 620 267 520
> <Pasted Graphic 1.tiff>   http://www.twitter.com/oscarbou
> 
> <gesdatos-software.gif>   http://es.linkedin.com/in/oscarbou
> 
> <blog.png>   http://www.GesConsultor.com 
> 
> <gesconsultor_logo_blue_email.png>
> 
> 
> Este mensaje y los ficheros anexos son confidenciales. Los mismos contienen información reservada que no puede ser difundida. Si usted ha recibido este correo por error, tenga la amabilidad de eliminarlo de su sistema y avisar al remitente mediante reenvío a su dirección electrónica; no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.
> Su dirección de correo electrónico junto a sus datos personales constan en un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la de mantener el contacto con Ud. Si quiere saber de qué información disponemos de Ud., modificarla, y en su caso, cancelarla, puede hacerlo enviando un escrito al efecto, acompañado de una fotocopia de su D.N.I. a la siguiente dirección: Gesdatos Software, S.L. , Paseo de la Castellana, 153 bajo - 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 (Valencia). Asimismo, es su responsabilidad comprobar que este mensaje o sus archivos adjuntos no contengan virus informáticos, y en caso que los tuvieran eliminarlos.


Óscar Bou Bou
Responsable de Producto
Auditor Jefe de Certificación ISO 27001 en BSI
CISA, CRISC, APMG ISO 20000, ITIL-F

   902 900 231 / 620 267 520
   http://www.twitter.com/oscarbou

   http://es.linkedin.com/in/oscarbou

   http://www.GesConsultor.com 




Este mensaje y los ficheros anexos son confidenciales. Los mismos contienen información reservada que no puede ser difundida. Si usted ha recibido este correo por error, tenga la amabilidad de eliminarlo de su sistema y avisar al remitente mediante reenvío a su dirección electrónica; no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.
Su dirección de correo electrónico junto a sus datos personales constan en un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la de mantener el contacto con Ud. Si quiere saber de qué información disponemos de Ud., modificarla, y en su caso, cancelarla, puede hacerlo enviando un escrito al efecto, acompañado de una fotocopia de su D.N.I. a la siguiente dirección: Gesdatos Software, S.L. , Paseo de la Castellana, 153 bajo - 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 (Valencia). Asimismo, es su responsabilidad comprobar que este mensaje o sus archivos adjuntos no contengan virus informáticos, y en caso que los tuvieran eliminarlos.






Re: Unable to finish partial implementation of

Posted by GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>.
Hi, Dan.

Many thanks. I'll complete it with the CollectionRemoveFrom... logic.

I've seen now the treat to avoid using the CollectionFacet on:

		final Object referencedObject = AdapterUtils.unwrap(referencedObjectAdapter);
		
		// get hold of underlying collection
		final Object collection = getterFacet.getProperty(targetAdapter);

		// don't post event if has set semantics and contains object
		if(collection instanceof Set) {
            Set<?> set = (Set<?>) collection;
            if(set.contains(referencedObject)) {
                return;
            }
		}


That's clear now!

Also, I've seen you've introduced a WrapperFactory policy that seems to not force the Disable or Hidden checks, but stills execute the business logic associated. 

So this way we can always configure use 

wrapperFactory(domainObject).setXXX

to ensure that the business logic on the modifyXXX methods is execute, despite the property is hidden or disabled.

That's really useful on domain entities code.

Unlike the previous case, on BDD tests (testing the user's behavior) it makes more sense to test forcing those hidden and disabled policies.


So, how (or where) should be inject, configure or invoke the WrapperFactory on each case?
- Domain Entities.
- BDD tests.

I'm sure there's something I'm missing...

Thanks,

Oscar






El 07/05/2014, a las 09:56, Dan Haywood <da...@haywood-associates.co.uk> escribió:

> Hi Oscar,
> I've just pushed branch ISIS-550; this pretty much implements the collection add-to stuff.
> 
> The CollectionFacet isn't needed; that's for iterating over collections, not for manipulating them.
> 
> Take a look at the ToDoItem class, specifically its getDependencies() method.  Note also the add(...) method, and how it can use the wrap(...) even though the colleciton is disabled (via ToDoItem.layout.json).
> 
> Cheers
> Dan
> 
> 
> 
> 
> 
> 
> 2014-05-06 17:35 GMT+01:00 GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>:
> Many thanks.
> 
> Cheers,
> 
> Oscar
> 
> 
> El 06/05/2014, a las 17:05, Dan Haywood <da...@haywood-associates.co.uk> escribió:
> 
> 
>> Thanks for starting on this Oscar ... I'll look at it this eve.
>> 
>> Cheers
>> Dan
>> 
>> 
>> 
>> On 6 May 2014 15:49, GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>wrote:
>> 
>>> 
>>> Hi, Dan.
>>> 
>>> I've tried to complete an implementation of @PostsCollectionAddedToEvent,
>>> but unable to complete it.
>>> 
>>> I think that there's a need to import CollectionFacet, in order to detect
>>> if the element had been previously added to the collection, and that forces
>>> to specify if it's a JavaCollection or an ArrayCollection.
>>> 
>>> Dan, please, can you complete this one?
>>> 
>>> I can replicate it aftewards for @PostsCollectionRemovedFromEvent
>>> 
>>> 
>>> We need it for decoupling one projection that must be generated
>>> automatically from another context, and that's the best way we've found.
>>> The alternatives seems to be to implement on each collection the addToXXX,
>>> removeFromXXX and inside those methods, post the event.
>>> 
>>> 
>>> 
>>> Many Thanks,
>>> 
>>> Oscar
>>> 
>>> 
>>> [1] https://issues.apache.org/jira/browse/ISIS-550
>>> 
>>> 
> 
> 
> Óscar Bou Bou
> Responsable de Producto
> Auditor Jefe de Certificación ISO 27001 en BSI
> CISA, CRISC, APMG ISO 20000, ITIL-F
> 
>    902 900 231 / 620 267 520
>    http://www.twitter.com/oscarbou
> 
>    http://es.linkedin.com/in/oscarbou
> 
>    http://www.GesConsultor.com 
> 
> 
> 
> 
> Este mensaje y los ficheros anexos son confidenciales. Los mismos contienen información reservada que no puede ser difundida. Si usted ha recibido este correo por error, tenga la amabilidad de eliminarlo de su sistema y avisar al remitente mediante reenvío a su dirección electrónica; no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.
> Su dirección de correo electrónico junto a sus datos personales constan en un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la de mantener el contacto con Ud. Si quiere saber de qué información disponemos de Ud., modificarla, y en su caso, cancelarla, puede hacerlo enviando un escrito al efecto, acompañado de una fotocopia de su D.N.I. a la siguiente dirección: Gesdatos Software, S.L. , Paseo de la Castellana, 153 bajo - 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 (Valencia). Asimismo, es su responsabilidad comprobar que este mensaje o sus archivos adjuntos no contengan virus informáticos, y en caso que los tuvieran eliminarlos.
> 
> 
> 
> 
> 
> 


Óscar Bou Bou
Responsable de Producto
Auditor Jefe de Certificación ISO 27001 en BSI
CISA, CRISC, APMG ISO 20000, ITIL-F

   902 900 231 / 620 267 520
   http://www.twitter.com/oscarbou

   http://es.linkedin.com/in/oscarbou

   http://www.GesConsultor.com 




Este mensaje y los ficheros anexos son confidenciales. Los mismos contienen información reservada que no puede ser difundida. Si usted ha recibido este correo por error, tenga la amabilidad de eliminarlo de su sistema y avisar al remitente mediante reenvío a su dirección electrónica; no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.
Su dirección de correo electrónico junto a sus datos personales constan en un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la de mantener el contacto con Ud. Si quiere saber de qué información disponemos de Ud., modificarla, y en su caso, cancelarla, puede hacerlo enviando un escrito al efecto, acompañado de una fotocopia de su D.N.I. a la siguiente dirección: Gesdatos Software, S.L. , Paseo de la Castellana, 153 bajo - 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 (Valencia). Asimismo, es su responsabilidad comprobar que este mensaje o sus archivos adjuntos no contengan virus informáticos, y en caso que los tuvieran eliminarlos.






Re: Unable to finish partial implementation of

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Hi Oscar,
I've just pushed branch ISIS-550; this pretty much implements the
collection add-to stuff.

The CollectionFacet isn't needed; that's for iterating over collections,
not for manipulating them.

Take a look at the ToDoItem class, specifically its getDependencies()
method.  Note also the add(...) method, and how it can use the wrap(...)
even though the colleciton is disabled (via ToDoItem.layout.json).

Cheers
Dan






2014-05-06 17:35 GMT+01:00 GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>
:

> Many thanks.
>
> Cheers,
>
> Oscar
>
>
> El 06/05/2014, a las 17:05, Dan Haywood <da...@haywood-associates.co.uk>
> escribió:
>
>
> Thanks for starting on this Oscar ... I'll look at it this eve.
>
> Cheers
> Dan
>
>
>
> On 6 May 2014 15:49, GESCONSULTOR - Óscar Bou <o.bou@gesconsultor.com
> >wrote:
>
>
> Hi, Dan.
>
> I've tried to complete an implementation of @PostsCollectionAddedToEvent,
> but unable to complete it.
>
> I think that there's a need to import CollectionFacet, in order to detect
> if the element had been previously added to the collection, and that forces
> to specify if it's a JavaCollection or an ArrayCollection.
>
> Dan, please, can you complete this one?
>
> I can replicate it aftewards for @PostsCollectionRemovedFromEvent
>
>
> We need it for decoupling one projection that must be generated
> automatically from another context, and that's the best way we've found.
> The alternatives seems to be to implement on each collection the addToXXX,
> removeFromXXX and inside those methods, post the event.
>
>
>
> Many Thanks,
>
> Oscar
>
>
> [1] https://issues.apache.org/jira/browse/ISIS-550
>
>
>
>
> Óscar Bou Bou
> Responsable de Producto
> Auditor Jefe de Certificación ISO 27001 en BSI
> CISA, CRISC, APMG ISO 20000, ITIL-F
>
>    902 900 231 / 620 267 520
>    http://www.twitter.com/oscarbou
>
>    http://es.linkedin.com/in/oscarbou
>
>    http://www.GesConsultor.com <http://www.gesconsultor.com/>
>
>
>
> Este mensaje y los ficheros anexos son confidenciales. Los mismos
> contienen información reservada que no puede ser difundida. Si usted ha
> recibido este correo por error, tenga la amabilidad de eliminarlo de su
> sistema y avisar al remitente mediante reenvío a su dirección electrónica;
> no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.
> Su dirección de correo electrónico junto a sus datos personales constan en
> un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la de
> mantener el contacto con Ud. Si quiere saber de qué información disponemos
> de Ud., modificarla, y en su caso, cancelarla, puede hacerlo enviando un
> escrito al efecto, acompañado de una fotocopia de su D.N.I. a la siguiente
> dirección: Gesdatos Software, S.L. , Paseo de la Castellana, 153 bajo -
> 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 (Valencia).
> Asimismo, es su responsabilidad comprobar que este mensaje o sus archivos
> adjuntos no contengan virus informáticos, y en caso que los tuvieran
> eliminarlos.
>
>
>
>
>
>

Re: Unable to finish partial implementation of

Posted by GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>.
Many thanks.

Cheers,

Oscar


El 06/05/2014, a las 17:05, Dan Haywood <da...@haywood-associates.co.uk> escribió:

> Thanks for starting on this Oscar ... I'll look at it this eve.
> 
> Cheers
> Dan
> 
> 
> 
> On 6 May 2014 15:49, GESCONSULTOR - Óscar Bou <o....@gesconsultor.com>wrote:
> 
>> 
>> Hi, Dan.
>> 
>> I've tried to complete an implementation of @PostsCollectionAddedToEvent,
>> but unable to complete it.
>> 
>> I think that there's a need to import CollectionFacet, in order to detect
>> if the element had been previously added to the collection, and that forces
>> to specify if it's a JavaCollection or an ArrayCollection.
>> 
>> Dan, please, can you complete this one?
>> 
>> I can replicate it aftewards for @PostsCollectionRemovedFromEvent
>> 
>> 
>> We need it for decoupling one projection that must be generated
>> automatically from another context, and that's the best way we've found.
>> The alternatives seems to be to implement on each collection the addToXXX,
>> removeFromXXX and inside those methods, post the event.
>> 
>> 
>> 
>> Many Thanks,
>> 
>> Oscar
>> 
>> 
>> [1] https://issues.apache.org/jira/browse/ISIS-550
>> 
>> 


Óscar Bou Bou
Responsable de Producto
Auditor Jefe de Certificación ISO 27001 en BSI
CISA, CRISC, APMG ISO 20000, ITIL-F

   902 900 231 / 620 267 520
   http://www.twitter.com/oscarbou

   http://es.linkedin.com/in/oscarbou

   http://www.GesConsultor.com 




Este mensaje y los ficheros anexos son confidenciales. Los mismos contienen información reservada que no puede ser difundida. Si usted ha recibido este correo por error, tenga la amabilidad de eliminarlo de su sistema y avisar al remitente mediante reenvío a su dirección electrónica; no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.
Su dirección de correo electrónico junto a sus datos personales constan en un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la de mantener el contacto con Ud. Si quiere saber de qué información disponemos de Ud., modificarla, y en su caso, cancelarla, puede hacerlo enviando un escrito al efecto, acompañado de una fotocopia de su D.N.I. a la siguiente dirección: Gesdatos Software, S.L. , Paseo de la Castellana, 153 bajo - 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 (Valencia). Asimismo, es su responsabilidad comprobar que este mensaje o sus archivos adjuntos no contengan virus informáticos, y en caso que los tuvieran eliminarlos.