You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by BJ Freeman <bj...@free-man.net> on 2006/06/27 18:13:45 UTC

delete Communication Events

I am using this as a learning tool.

I looked at the service for deleting CommunicationsEvents

I want to create a new service that allows me to delete a range of 
communication events, By Date

https://localhost:8443/partymgr/control/deleteCommunicationEvent?communicationEventId=10059
It looks like, from the controller and services, the delete does not 
address any underlying relationships, like in a email.

Am I missing something.

Re: delete Communication Events

Posted by BJ Freeman <bj...@free-man.net>.
I moving this to the dev list.

I am looking at the services:

   <simple-method method-name="deleteCommunicationEvent" 
short-description="Delete a CommunicationEvent">
         <check-permission permission="PARTYMGR" action="_CME_DELETE">
             <fail-property resource="PartyUiLabels" 
property="PartyUpdateCommunicationEventPermissionError"/>
         </check-permission>
         <check-errors/>

         <entity-one entity-name="CommunicationEvent" value-name="event"/>
         <remove-value value-name="event"/>
     </simple-method>

I have not found any info that tells me if this deletes the underlying 
entities connected to this ID.

As far as I undertand the entity code, it does not walks the entity 
relationships to find ones with the communicaitonID.

So if I am one the right path, there should be list of calls to the 
underlying entities that are deleted before the communicationsevent is 
deleted.

any input is appreciated.




BJ Freeman sent the following on 6/27/2006 9:13 AM:
> I am using this as a learning tool.
> 
> I looked at the service for deleting CommunicationsEvents
> 
> I want to create a new service that allows me to delete a range of 
> communication events, By Date
> 
> https://localhost:8443/partymgr/control/deleteCommunicationEvent?communicationEventId=10059 
> 
> It looks like, from the controller and services, the delete does not 
> address any underlying relationships, like in a email.
> 
> Am I missing something.
>