Java Doc for PrivateMessageManagerImpl.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » component » app » messageforums » ui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.component.app.messageforums.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.sakaiproject.component.app.messageforums.ui.PrivateMessageManagerImpl

PrivateMessageManagerImpl
public class PrivateMessageManagerImpl extends HibernateDaoSupport implements PrivateMessageManager(Code)


Field Summary
final public static  StringPVTMSG_MODE_DELETE
    
final public static  StringPVTMSG_MODE_DRAFT
    
final public static  StringPVTMSG_MODE_RECEIVED
    
final public static  StringPVTMSG_MODE_SENT
    


Method Summary
public  voidaddAttachToPvtMsg(PrivateMessage pvtMsgData, Attachment pvtMsgAttach)
    
public  PrivateMessagecreatePrivateMessage(String typeUuid)
    
public  AttachmentcreatePvtMsgAttachment(String attachId, String name)
    
public  voidcreateTopicFolderInForum(PrivateForum pf, String folderName)
    
public  voidcreateTopicFolderInTopic(PrivateForum pf, PrivateTopic parentTopic, String folderName)
    
public  voiddeletePrivateMessage(PrivateMessage message, String typeUuid)
    
public  voiddeleteTopicFolder(PrivateForum pf, String topicUuid)
    
public  intfindMessageCount(String typeUuid)
    
public  intfindUnreadMessageCount(String typeUuid)
    
public  AreagetAreaByContextIdAndTypeId(String typeId)
    
public  AreaManagergetAreaManager()
    
public  StringgetAuthorString()
    
public  StringgetContextId()
    
public  StringgetContextSiteId()
    
public  ListgetDeletedMessages(String orderField, String order)
    
public  ListgetDraftedMessages(String orderField, String order)
    
public  MessagegetMessageById(Long id)
    
public  MessageForumsMessageManagergetMessageManager()
    
public  ListgetMessagesByTopic(String userId, Long topicId)
    
public  ListgetMessagesByType(String typeUuid, String orderField, String order)
    
public  ListgetMessagesByTypeByContext(String typeUuid, String contextId)
    
public  PrivateMessagegetNextMessage(PrivateMessage message)
    
public  PrivateMessagegetPreviousMessage(PrivateMessage message)
    
public  booleangetPrivateAreaEnabled()
    
public  AreagetPrivateMessageArea()
    
public  ListgetPrivateMessageCountsForAllSites()
    
public  AttachmentgetPvtMsgAttachment(Long pvtMsgAttachId)
    
public  ListgetReceivedMessages(String orderField, String order)
    
public  StringgetResourceBundleString(String key)
    
public  ListgetSentMessages(String orderField, String order)
    
public  TopicgetTopicByUuid(String topicUuid)
    
public  StringgetTopicTypeUuid(String topicTitle)
    
public  intgetTotalNoMessages(Topic topic)
    
public  intgetUnreadNoMessages(Topic topic)
    
public  booleanhasNextMessage(PrivateMessage message)
    
public  booleanhasPreviousMessage(PrivateMessage message)
    
public  voidinit()
    
public  PrivateMessageinitMessageWithAttachmentsAndRecipients(PrivateMessage msg)
    
public  PrivateForuminitializationHelper(PrivateForum forum)
    
public  PrivateForuminitializationHelper(PrivateForum forum, Area area)
    
public  PrivateForuminitializePrivateMessageArea(Area area)
    
public  booleanisInstructor()
    
public  booleanisMutableTopicFolder(String parentTopicId)
    
public  booleanisPrivateAreaEnabled()
    
public  voidmarkMessageAsReadForUser(PrivateMessage message)
    
public  voidmarkMessageAsReadForUser(PrivateMessage message, String contextId)
    
public  voidmovePvtMsgTopic(PrivateMessage message, Topic oldTopic, Topic newTopic)
    
public  voidremovePvtMsgAttachment(Attachment o)
    
public  voidrenameTopicFolder(PrivateForum pf, String topicUuid, String newName)
    
public  voidsaveAreaAndForumSettings(Area area, PrivateForum forum)
    
public  voidsaveForumSettings(PrivateForum forum)
    
public  voidsavePrivateMessage(Message message)
    
public  voidsavePrivateMessageArea(Area area)
    
public  ListsearchPvtMsgs(String typeUuid, String searchText, Date searchFromDate, Date searchToDate, boolean searchByText, boolean searchByAuthor, boolean searchByBody, boolean searchByLabel, boolean searchByDate)
    
public  voidsendPrivateMessage(PrivateMessage message, Set recipients, boolean asEmail)
    
public  voidsetAreaManager(AreaManager areaManager)
    
public  voidsetEmailService(EmailService emailService)
    
public  voidsetForumManager(MessageForumsForumManager forumManager)
    
public  voidsetIdManager(IdManager idManager)
    
public  voidsetMessageManager(MessageForumsMessageManager messageManager)
    
public  voidsetPrivateAreaEnabled(boolean value)
    
public  voidsetSessionManager(SessionManager sessionManager)
    
public  voidsetTypeManager(MessageForumsTypeManager typeManager)
    

Field Detail
PVTMSG_MODE_DELETE
final public static String PVTMSG_MODE_DELETE(Code)



PVTMSG_MODE_DRAFT
final public static String PVTMSG_MODE_DRAFT(Code)



PVTMSG_MODE_RECEIVED
final public static String PVTMSG_MODE_RECEIVED(Code)



PVTMSG_MODE_SENT
final public static String PVTMSG_MODE_SENT(Code)





Method Detail
addAttachToPvtMsg
public void addAttachToPvtMsg(PrivateMessage pvtMsgData, Attachment pvtMsgAttach)(Code)



createPrivateMessage
public PrivateMessage createPrivateMessage(String typeUuid)(Code)

See Also:   org.sakaiproject.api.app.messageforums.ui.PrivateMessageManager.createPrivateMessage(java.lang.String)



createPvtMsgAttachment
public Attachment createPvtMsgAttachment(String attachId, String name)(Code)



createTopicFolderInForum
public void createTopicFolderInForum(PrivateForum pf, String folderName)(Code)



createTopicFolderInTopic
public void createTopicFolderInTopic(PrivateForum pf, PrivateTopic parentTopic, String folderName)(Code)



deletePrivateMessage
public void deletePrivateMessage(PrivateMessage message, String typeUuid)(Code)

See Also:   org.sakaiproject.api.app.messageforums.ui.PrivateMessageManager.deletePrivateMessage(org.sakaiproject.api.app.messageforums.PrivateMessagejava.lang.String)



deleteTopicFolder
public void deleteTopicFolder(PrivateForum pf, String topicUuid)(Code)



findMessageCount
public int findMessageCount(String typeUuid)(Code)

See Also:   org.sakaiproject.api.app.messageforums.ui.PrivateMessageManager.findMessageCount(java.lang.String)



findUnreadMessageCount
public int findUnreadMessageCount(String typeUuid)(Code)

See Also:   org.sakaiproject.api.app.messageforums.ui.PrivateMessageManager.findUnreadMessageCount(java.lang.String)



getAreaByContextIdAndTypeId
public Area getAreaByContextIdAndTypeId(String typeId)(Code)



getAreaManager
public AreaManager getAreaManager()(Code)



getAuthorString
public String getAuthorString()(Code)



getContextId
public String getContextId()(Code)



getContextSiteId
public String getContextSiteId()(Code)
siteId



getDeletedMessages
public List getDeletedMessages(String orderField, String order)(Code)



getDraftedMessages
public List getDraftedMessages(String orderField, String order)(Code)



getMessageById
public Message getMessageById(Long id)(Code)



getMessageManager
public MessageForumsMessageManager getMessageManager()(Code)



getMessagesByTopic
public List getMessagesByTopic(String userId, Long topicId)(Code)



getMessagesByType
public List getMessagesByType(String typeUuid, String orderField, String order)(Code)
helper method to get messages by type
Parameters:
  typeUuid - message list



getMessagesByTypeByContext
public List getMessagesByTypeByContext(String typeUuid, String contextId)(Code)
FOR SYNOPTIC TOOL: helper method to get messages by type needed to pass contextId since could be in MyWorkspace
Parameters:
  typeUuid - The type of forum it is (Private or Topic)
Parameters:
  contextId - The site id whose messages are needed message list



getNextMessage
public PrivateMessage getNextMessage(PrivateMessage message)(Code)



getPreviousMessage
public PrivateMessage getPreviousMessage(PrivateMessage message)(Code)



getPrivateAreaEnabled
public boolean getPrivateAreaEnabled()(Code)



getPrivateMessageArea
public Area getPrivateMessageArea()(Code)

See Also:   org.sakaiproject.api.app.messageforums.ui.PrivateMessageManager.getPrivateMessageArea



getPrivateMessageCountsForAllSites
public List getPrivateMessageCountsForAllSites()(Code)
FOR SYNOPTIC TOOL: Returns a list of all sites this user is in along with a count of his/her unread messages List of site id, count of unread message pairs



getPvtMsgAttachment
public Attachment getPvtMsgAttachment(Long pvtMsgAttachId)(Code)



getReceivedMessages
public List getReceivedMessages(String orderField, String order)(Code)



getResourceBundleString
public String getResourceBundleString(String key)(Code)
Gets Strings from Message Bundle (specifically for titles) TODO: pull directly from bundle instead of using areaManager as an intermediary
Parameters:
  key - Message bundle key for String wantedString requested or "[missing key: key]" if not found



getSentMessages
public List getSentMessages(String orderField, String order)(Code)



getTopicByUuid
public Topic getTopicByUuid(String topicUuid)(Code)
Return Topic based on uuid
See Also:   org.sakaiproject.api.app.messageforums.ui.PrivateMessageManager.getTopicByIdWithMessages(java.lang.Long)



getTopicTypeUuid
public String getTopicTypeUuid(String topicTitle)(Code)



getTotalNoMessages
public int getTotalNoMessages(Topic topic)(Code)



getUnreadNoMessages
public int getUnreadNoMessages(Topic topic)(Code)



hasNextMessage
public boolean hasNextMessage(PrivateMessage message)(Code)



hasPreviousMessage
public boolean hasPreviousMessage(PrivateMessage message)(Code)



init
public void init()(Code)



initMessageWithAttachmentsAndRecipients
public PrivateMessage initMessageWithAttachmentsAndRecipients(PrivateMessage msg)(Code)



initializationHelper
public PrivateForum initializationHelper(PrivateForum forum)(Code)



initializationHelper
public PrivateForum initializationHelper(PrivateForum forum, Area area)(Code)



initializePrivateMessageArea
public PrivateForum initializePrivateMessageArea(Area area)(Code)

See Also:   org.sakaiproject.api.app.messageforums.ui.PrivateMessageManager.initializePrivateMessageArea(org.sakaiproject.api.app.messageforums.Area)



isInstructor
public boolean isInstructor()(Code)



isMutableTopicFolder
public boolean isMutableTopicFolder(String parentTopicId)(Code)
Topic Folder Setting



isPrivateAreaEnabled
public boolean isPrivateAreaEnabled()(Code)

See Also:   org.sakaiproject.api.app.messageforums.ui.PrivateMessageManager.isPrivateAreaEnabled



markMessageAsReadForUser
public void markMessageAsReadForUser(PrivateMessage message)(Code)

See Also:   org.sakaiproject.api.app.messageforums.ui.PrivateMessageManager.markMessageAsReadForUser(org.sakaiproject.api.app.messageforums.PrivateMessage)



markMessageAsReadForUser
public void markMessageAsReadForUser(PrivateMessage message, String contextId)(Code)
FOR SYNOPTIC TOOL: Need to pass in contextId also



movePvtMsgTopic
public void movePvtMsgTopic(PrivateMessage message, Topic oldTopic, Topic newTopic)(Code)



removePvtMsgAttachment
public void removePvtMsgAttachment(Attachment o)(Code)



renameTopicFolder
public void renameTopicFolder(PrivateForum pf, String topicUuid, String newName)(Code)



saveAreaAndForumSettings
public void saveAreaAndForumSettings(Area area, PrivateForum forum)(Code)

See Also:   org.sakaiproject.api.app.messageforums.ui.PrivateMessageManager.saveAreaAndForumSettings(org.sakaiproject.api.app.messageforums.Areaorg.sakaiproject.api.app.messageforums.PrivateForum)



saveForumSettings
public void saveForumSettings(PrivateForum forum)(Code)



savePrivateMessage
public void savePrivateMessage(Message message)(Code)

See Also:   org.sakaiproject.api.app.messageforums.ui.PrivateMessageManager.savePrivateMessage(org.sakaiproject.api.app.messageforums.Message)



savePrivateMessageArea
public void savePrivateMessageArea(Area area)(Code)



searchPvtMsgs
public List searchPvtMsgs(String typeUuid, String searchText, Date searchFromDate, Date searchToDate, boolean searchByText, boolean searchByAuthor, boolean searchByBody, boolean searchByLabel, boolean searchByDate)(Code)



sendPrivateMessage
public void sendPrivateMessage(PrivateMessage message, Set recipients, boolean asEmail)(Code)

See Also:   org.sakaiproject.api.app.messageforums.ui.PrivateMessageManager.sendPrivateMessage(org.sakaiproject.api.app.messageforums.PrivateMessagejava.util.Setboolean)



setAreaManager
public void setAreaManager(AreaManager areaManager)(Code)



setEmailService
public void setEmailService(EmailService emailService)(Code)



setForumManager
public void setForumManager(MessageForumsForumManager forumManager)(Code)



setIdManager
public void setIdManager(IdManager idManager)(Code)



setMessageManager
public void setMessageManager(MessageForumsMessageManager messageManager)(Code)



setPrivateAreaEnabled
public void setPrivateAreaEnabled(boolean value)(Code)



setSessionManager
public void setSessionManager(SessionManager sessionManager)(Code)



setTypeManager
public void setTypeManager(MessageForumsTypeManager typeManager)(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.