[Building Sakai] [Samigo 2.7.1] Need to use copyAssessment(..) from a jws webservice but it does not work

sfilice sfilice.sakai at gmail.com
Wed Feb 2 09:46:12 PST 2011


Hi to all,

we are trying to use Samigo API from a webservice (jws file) and we are 
experiencing some problem.
We would like to create a webservice, like
public String copyAssessments( String sessionid, String assessmentsids, 
String sourcesiteid, String destinationsiteid )
that copies specified assessments from the coma separated string 
assessmentsids  from one site to another.

    * we tried to use the AssessmentService  method :
      copyAssessment(String assessmentId, String apepndCopyTitle) , or
      the direct
      callPersistenceService.getInstance().getAssessmentFacadeQueries().copyAssessment(assessmentId,
      apepndCopyTitle) . Both solutions generate authorization
      exceptions . In particular the AssessmentFacadeQueries method
      copyAssessment(String assessmentId, String apepndCopyTitle) fails
      in creating authorization . I write here the code line :
      // authorization
      PersistenceService.getInstance().getAuthzQueriesFacade().createAuthorization(AgentFacade.getCurrentSiteId(),
      "EDIT_ASSESSMENT", newAssessmentData.getAssessmentId().toString());
    * we tried to copy the implementation of the AssessmentFacadeQueries
      copyAssessment into the jws but without success. From the jws it
      is impossible to use methods from HibernateDaoSupport (and also a
      very weird solution)
    * we tried to implement in a different way: copying all assessments
      from the source site to the destination site and then deleting
      from the destination site those assessments that have not been
      specified. We tried to use the method from AssessmentFacadeQueries
      copyAllAssessments , but for the limitation of the method, after
      copying we cannot know the id of the newly created assessment.

We would like to have some advices on how to copy one assessment from a 
site to another from a jws file (*without *modifying the original samigo 
code or accessing directly to samigo DB tables with Sqlservice or Hibernate)


Many thanks for the help

-- 

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

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

*Sante Filice*

*Senior developer - programador senior*

sante.filice at samoo.es <mailto:sante.filice 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/20110202/ced7d838/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/20110202/ced7d838/attachment.jpg 


More information about the sakai-dev mailing list