[Building Sakai] Fwd: Assignments and entitybroker

Francisco francisco.saez.sakai at gmail.com
Thu Jul 28 23:54:20 PDT 2011


It works perfect.

Thanks and regards

El 28/07/2011 17:45, Zhen Qian escribió:
> Hi, Fancisco:
>
> I've created SAK-20941 based on your finding below. Please take a look 
> and see if it fixes the problem.
>
> Thanks,
>
> - Zhen
>
> On Jul 28, 2011, at 9:04 AM, Francisco wrote:
>
>> Hi again,
>>
>> I finally concluded that the action "annc" (method name: 
>> getAssignDataForAnnouncement) in AssignmentEntityProviderImpl fails 
>> because it is not implemented Outputable and Inputable interfaces. As 
>> the result of this, the methods "entityExists" and "getProperties" 
>> were invoked, which generating an error.
>>
>> If you required to implement the interfaces above, you will need to 
>> override the following methods including "getHandledOutputFormats", 
>> "getHandledInputFormats" and "getSampleEntity" in order to get it works.
>>
>> Regards
>>
>> -------- Mensaje original --------
>> Asunto: 	Assignments and entitybroker
>> Fecha: 	Thu, 28 Jul 2011 09:33:51 +0200
>> De: 	Francisco <francisco.saez.sakai at gmail.com>
>> Para: 	sakai-dev at collab.sakaiproject.org
>>
>>
>>
>> Hi all,
>>
>> Is entityprovider working for assignments? I tried the next:
>> - Access to a particular assignment: 
>> http://localhost:8080/direct/assignment/xxxxxxxxxxxxxxx.xml -> fail 
>> at "getProperties"
>> - Access to "annc" acction: 
>> http://localhost:8080/direct/assignment/annc/xxxxxxxxxxxxxxx/yyyyyyyyyyyy.xml 
>> -> fail at "entityExists"
>>
>> My question is, what is the correct way to invoke this?
>>
>> Testing my own tool with an entity provider (implementing RESTful, 
>> AutoRegisterEntityProvider and CoreEntityProvider), I also notice 
>> that the "entityExists" method is called only before the "getEntity" 
>> method (not for the action). Meanwhile, in the assignments tool, the 
>> "entityExists" method is called before the getEntity and after the 
>> action (in this case "getAssignDataForAnnouncement"). Why this behavior?
>>
>> Thanks and regards.
>> -- 
>>
>> <Mail Attachment.jpeg><http://www.samoo.es/>
>>
>> <http://www.samoo.es/>
>>
>> *Francisco Sáez*
>>
>> *Analista - Programador*
>>
>> francisco.saez at samoo.es <mailto:francisco.saez at samoo.es>
>>
>> +34 - 96 393 69 15
>>
>> www.samoo.es <http://www.samoo.es/>
>>
>> Este  correo  y  sus archivos asociados son privados y confidenciales 
>> y va dirigido  exclusivamente  a su destinatario. Si recibe este 
>> correo sin ser el  destinatario del mismo, le rogamos proceda a su 
>> eliminación y lo ponga en  conocimiento del emisor. La difusión por 
>> cualquier medio del contenido de  este  correo podría ser sancionada 
>> conforme a lo previsto en las leyes españolas, Ley Orgánica 15/1999 
>> de Protección de Datos de Carácter Personal.  No  se autoriza la 
>> utilización con fines comerciales o para su incorporación a ficheros 
>> automatizados de las direcciones del emisor o del destinatario.”
>>
>> This mail and its attached files are confidential and are only and 
>> exclusively intended to their addressee. In case you may receive this 
>> mail not being its addressee, we beg you to let us know the error by 
>> reply and to proceed to destroy it. The circulation by any mean of 
>> this mail could be penalised in accordance with the Spanish 
>> legislation. Is not allowed the use of both, the transmitter and the 
>> addressee’s, address with a commercial aim, or in order to be 
>> incorporated to automated data process or to any kind of files.
>>
>> P Antes de imprimir este correo electrónico piense bien si es 
>> necesario hacerlo. El medioambiente es cosa de todos.
>>
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org 
>> <mailto:sakai-dev at collab.sakaiproject.org>
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to 
>> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of 
>> "unsubscribe"
>


-- 

Samoo LOGO<http://www.samoo.es/>

<http://www.samoo.es/>

*Francisco Sáez*

*Analista - Programador*

francisco.saez at samoo.es <mailto:francisco.saez at samoo.es>

+34 - 96 393 69 15

www.samoo.es <http://www.samoo.es>

Este  correo  y  sus archivos asociados son privados y confidenciales y 
va dirigido  exclusivamente  a su destinatario. Si recibe este correo 
sin ser el  destinatario del mismo, le rogamos proceda a su eliminación 
y lo ponga en  conocimiento del emisor. La difusión por cualquier medio 
del contenido de  este  correo podría ser sancionada conforme a lo 
previsto en las leyes españolas, Ley Orgánica 15/1999 de Protección de 
Datos de Carácter Personal.  No  se autoriza la utilización con fines 
comerciales o para su incorporación a ficheros automatizados de las 
direcciones del emisor o del destinatario.”

This mail and its attached files are confidential and are only and 
exclusively intended to their addressee. In case you may receive this 
mail not being its addressee, we beg you to let us know the error by 
reply and to proceed to destroy it. The circulation by any mean of this 
mail could be penalised in accordance with the Spanish legislation. Is 
not allowed the use of both, the transmitter and the addressee’s, 
address with a commercial aim, or in order to be incorporated to 
automated data process or to any kind of files.

P Antes de imprimir este correo electrónico piense bien si es necesario 
hacerlo. El medioambiente es cosa de todos.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110729/a16a8fd2/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 3022 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110729/a16a8fd2/attachment.jpg 


More information about the sakai-dev mailing list