[Building Sakai] [Samigo 2.7.1] Need to use copyAssessment(..) from a jws webservice but it does not work
Steve Swinsburg
steve.swinsburg at gmail.com
Wed Feb 2 15:22:04 PST 2011
Hi Sante,
There are a set of web services that connect with Samigo already so that could be a good starting point. Some modifications were required in Samigo, but these have been finalised and committed and will appear in 2.8.0.
https://jira.sakaiproject.org/browse/SAM-942
https://jira.sakaiproject.org/browse/SAK-18952
cheers,
Steve
On 03/02/2011, at 4:46 AM, sfilice wrote:
> 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 call PersistenceService.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
>
> --
> <image002.jpg>
>
> Sante Filice
> Senior developer - programador senior
> sante.filice at samoo.es
> +34 - 96 393 69 15
> 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
> 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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110203/90694cec/attachment.html
More information about the sakai-dev
mailing list