[Building Sakai] Content Hosting Service

DAVID ROLDAN MARTINEZ darolmar at upvnet.upv.es
Wed Mar 25 09:31:32 PDT 2009


Hi Miguel,

Can you paste stackTrace, please?

David

De: sakai-dev-bounces at collab.sakaiproject.org [mailto:sakai-dev-bounces at collab.sakaiproject.org] En nombre de Miguel Carro Pellicer
Enviado el: miércoles, 25 de marzo de 2009 17:25
CC: sakai-dev
Asunto: [Building Sakai] Content Hosting Service

Hi Subscribers.

I'm trying to save a file into resources tool, using the content hosting service api.
When i create a collection like this:

String siteCollection = contentHostingService.getSiteCollection(siteId);
String exampleCollection = siteCollection + "example" + Entity.SEPARATOR;
        try{
            ContentCollectionEdit collection = contentHostingService.addCollection(exampleCollection );
        }
        catch(Exception e){
            System.out.println(e.getMessage() + " while attempting to create Example folder: "+ " for site: " + siteId + ". NOT CREATED... ");
            throw new Error(e);
        }
e.getMessage() returns null, and i can't know WHY it fails.
I have to do something previously to create a collection?
Where can i find complete documentation about CHS.

Thanks for all.
--

Miguel Carro Pellicer
Phone number: +34 - 686 26 64 85
Samoo Portal: www.samoo.es

[cid:image001.png at 01C9AD6F.8971EE10]
[cid:image002.png at 01C9AD6F.8971EE10]
AVISO: Este mensaje electrónico, así como cualquier documento adjunto, es para uso exclusivo del destinatario (s) especificado, pudiendo contener información privilegiada, protegida o confidencial que no necesariamente refleja la opinión de la empresa. Si recibe este mensaje por error, le rogamos nos lo comunique inmediatamente por la misma vía o por teléfono (+34 686 26 64 85) y lo elimine de su ordenador, ya que usted no está autorizado al uso, revelación, distribución, impresión o copia de toda o alguna parte de la información contenida.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090325/888e5fac/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 19375 bytes
Desc: image001.png
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090325/888e5fac/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 8310 bytes
Desc: image002.png
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090325/888e5fac/attachment-0003.png 


More information about the sakai-dev mailing list