[Building Sakai] Mail or message private in Sakai

Antonio muñoz alonso antoniovalenciaspain at hotmail.com
Thu Nov 29 02:30:36 PST 2012


Hi.
Tool private messages I have it enabled on this site, to know whether or not I get the message.the problem is not as send private message that I have created, it seems that the command SaveMessage not to send, but can not find any to send.
Thanks.



Date: Thu, 29 Nov 2012 11:46:46 +1100
Subject: Re: [Building Sakai] Mail or message private in Sakai
From: steve.swinsburg at gmail.com
To: antoniovalenciaspain at hotmail.com
CC: sakai-dev at collab.sakaiproject.org; farreri.sakai at gmail.com

PrivateMessage extends Message so you can just set it. You might want to generate the javadocs for the msgcntr project and have a look through them. Alternatively, Eclipse should show the class inheritance, if you have that enabled in the prefs.

cheers,Steve

On Thu, Nov 29, 2012 at 1:25 AM, Antonio muñoz alonso <antoniovalenciaspain at hotmail.com> wrote:




Hi.
OK, must add this command setDeleted(Boolean.FALSE).

but I do not get the message. ?¿
From: antoniovalenciaspain at hotmail.com

To: sakai-dev at collab.sakaiproject.org; farreri.sakai at gmail.com
Date: Wed, 28 Nov 2012 13:16:22 +0100

Subject: Re: [Building Sakai] Mail or message private in Sakai




Hi.
Send private Message:


     MessageForumsMessageManager forumMessageManager = (MessageForumsMessageManager)      ComponentManager.get(MessageForumsMessageManager.class);
 
	   PrivateMessage privateMessage = forumMessageManager.createPrivateMessage();		            privateMessage.setAuthor(getCurrentUserId());
            privateMessage.setBody("Hello World");	    privateMessage.setTitle("HelloWorld");	    privateMessage.setInReplyTo(null);
	    privateMessage.setRecipientsAsText(getCurrentUserId());
	    	   privateMessageManager.savePrivateMessage(privateMessage); <------ ERROR  HERE
		           Trace:                      caused by: org.hibernate.PropertyValueException: not-null property references a null or transient value: org.sakaiproject.component.app.messageforums.dao.hibernate.PrivateMessageImpl.deleted
    at org.hibernate.engine.Nullability.checkNullability(Nullability.java:72)
    at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:290)
    at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
    at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
    at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
    at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
    at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:94)
    at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
    at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:508)
    at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:500)
    at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:496)
    at org.springframework.orm.hibernate3.HibernateTemplate$16.doInHibernate(HibernateTemplate.java:751)    

Any ideas???
Thanks.






From: antoniovalenciaspain at hotmail.com

To: sakai-dev at collab.sakaiproject.org
Date: Tue, 27 Nov 2012 15:29:13 +0100
Subject: Re: [Building Sakai] Mail or message private in Sakai





Hi/Hola, Miguel
Once you fill the message data, how do shipping?

Thanks.
 
 De: sakai-dev-bounces at collab.sakaiproject.org [mailto:sakai-dev-bounces at collab.sakaiproject.org] En nombre de Antonio muñoz alonso

Enviado el: viernes, 23 de noviembre de 2012 22:19
Para: sakai-dev at collab.sakaiproject.org
Asunto: [Building Sakai] Mail or message private in Sakai
 api to use to send a private message to a user  ¿?  		 	   		  

_______________________________________________
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" 		 	   		  


_______________________________________________
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"
 		 	   		  

_______________________________________________

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/20121129/7806dcab/attachment.html 


More information about the sakai-dev mailing list