Java Doc for DiscussionChannel.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » discussion » api » 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.discussion.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.sakaiproject.discussion.api.DiscussionChannel

DiscussionChannel
public interface DiscussionChannel extends MessageChannel(Code)

DiscussionChannel is the extension to the MessageChanel interface for a CHEF Discussion service discussion channel.





Method Summary
public  booleanaddCategory(String category)
     Add a new category for this channel.
Parameters:
  category - The new category string to add.
public  DiscussionMessageEditaddDiscussionMessage(String replyTo)
     A (DiscussionMessage) cover for addMessage to add a new message to this channel.
public  DiscussionMessageaddDiscussionMessage(String category, String subject, boolean draft, String replyTo, List attachments, String body)
     A (DiscussionMessage) cover for addMessage to add a new message to this channel.
Parameters:
  category - The message header category.
Parameters:
  subject - The message header subject.
Parameters:
  draft - The message header draft setting.
Parameters:
  replyTo - The message header message id to which this is a reply.
Parameters:
  attachments - The message header attachments, a vector of Reference objects.
Parameters:
  body - The message body.
public  booleanallowAddTopicMessage()
     check permissions for addMessage() - if the message is a new Topic.
public  booleanallowRemoveCategory()
    
public  DiscussionMessageEditeditDiscussionMessage(String messageId)
     A (DiscussionMessageEdit) cover for editMessage.
public  ListgetCategories(boolean scanMessages)
     Access the list of catagories defined in the channel.
Parameters:
  scanMessage - if true, scan the channel's messages for catagories set in messages that may not be in the channel's catagory list, if false, use just the channel's catagory list.
public  DiscussionMessagegetDiscussionMessage(String messageId)
     A (DiscussionMessage) cover for getMessage to return a specific discussion channel message, as specified by message id.
Parameters:
  messageId - The id of the message to get.
public  DiscussionMessagegetDiscussionMessageNoException(String messageId)
     A (DiscussionMessage) cover for getMessage to return a specific discussion channel message, as specified by message id, and ignore exceptions if any
Parameters:
  messageId - The id of the message to get.
public  IteratorgetThread(DiscussionMessage message)
     Return an iterator on the DiscussionMessages that are in the response thread to the specified message.
public  DiscussionMessagegetThreadLatestReply(DiscussionMessage message)
     Access the most recent reply to the thread descending from this message, if any.
Parameters:
  message - The message that forms the top of a thread.
public  intgetThreadNumberOfReplies(DiscussionMessage message)
     Count the number of replies to this thread (i.e.
public  IteratorgetThreads(String category)
     Return an iterator on all messages in thread - depth first order.
Parameters:
  category - Filter the responses to messages in just this category (optional, may be null).
public  ListgetTopicMsgIds(String category)
     Access the message ids for the topics (i.e.
public  IteratorgetTopics(String category)
     Return an Iterator on the DiscussionMessages that are "topics", i.e.
public  booleanremoveCategory(String category)
     Remove a category for this channel.
Parameters:
  category - The category string to be removed.



Method Detail
addCategory
public boolean addCategory(String category) throws InUseException, PermissionException(Code)
Add a new category for this channel.
Parameters:
  category - The new category string to add. true if the category was new, false if it is already there.
exception:
  PermissionException - If the user does not have write permission to the channel.



addDiscussionMessage
public DiscussionMessageEdit addDiscussionMessage(String replyTo) throws PermissionException(Code)
A (DiscussionMessage) cover for addMessage to add a new message to this channel. Must commitEdit() to make official, or cancelEdit() when done!
Parameters:
  replyTo - The message id to which this message is a reply. The newly added message, locked for update.
exception:
  PermissionException - If the user does not have write permission to the channel.



addDiscussionMessage
public DiscussionMessage addDiscussionMessage(String category, String subject, boolean draft, String replyTo, List attachments, String body) throws PermissionException(Code)
A (DiscussionMessage) cover for addMessage to add a new message to this channel.
Parameters:
  category - The message header category.
Parameters:
  subject - The message header subject.
Parameters:
  draft - The message header draft setting.
Parameters:
  replyTo - The message header message id to which this is a reply.
Parameters:
  attachments - The message header attachments, a vector of Reference objects.
Parameters:
  body - The message body. The newly added message.
exception:
  PermissionException - If the user does not have write permission to the channel.



allowAddTopicMessage
public boolean allowAddTopicMessage()(Code)
check permissions for addMessage() - if the message is a new Topic. true if the user is allowed to addMessage(...) for a new Topic, false if not.



allowRemoveCategory
public boolean allowRemoveCategory()(Code)
check permissions for removing category true if the user is allowed to remove category, false if not.



editDiscussionMessage
public DiscussionMessageEdit editDiscussionMessage(String messageId) throws IdUnusedException, PermissionException, InUseException(Code)
A (DiscussionMessageEdit) cover for editMessage. Return a specific channel message, as specified by message name, locked for update. Must commitEdit() to make official, or cancelEdit() when done!
Parameters:
  messageId - The id of the message to get. the Message that has the specified id.
exception:
  IdUnusedException - If this name is not a defined message in this channel.
exception:
  PermissionException - If the user does not have any permissions to read the message.
exception:
  InUseException - if the current user does not have permission to mess with this user.



getCategories
public List getCategories(boolean scanMessages)(Code)
Access the list of catagories defined in the channel.
Parameters:
  scanMessage - if true, scan the channel's messages for catagories set in messages that may not be in the channel's catagory list, if false, use just the channel's catagory list. A List (String) of all the categories defined in the channel.



getDiscussionMessage
public DiscussionMessage getDiscussionMessage(String messageId) throws IdUnusedException, PermissionException(Code)
A (DiscussionMessage) cover for getMessage to return a specific discussion channel message, as specified by message id.
Parameters:
  messageId - The id of the message to get. the DiscussionMessage that has the specified id.
exception:
  IdUnusedException - If this name is not a defined message in this discussion channel.
exception:
  PermissionException - If the user does not have any permissions to read the message.



getDiscussionMessageNoException
public DiscussionMessage getDiscussionMessageNoException(String messageId)(Code)
A (DiscussionMessage) cover for getMessage to return a specific discussion channel message, as specified by message id, and ignore exceptions if any
Parameters:
  messageId - The id of the message to get. the DiscussionMessage that has the specified id.



getThread
public Iterator getThread(DiscussionMessage message)(Code)
Return an iterator on the DiscussionMessages that are in the response thread to the specified message. They will be returned in depth first order.
Parameters:
  message - The message to which those returned are some depth of response. an iterator on the DiscussionMessages that are in the response thread to the specified topic messages, in depth first order (may be empty).



getThreadLatestReply
public DiscussionMessage getThreadLatestReply(DiscussionMessage message)(Code)
Access the most recent reply to the thread descending from this message, if any.
Parameters:
  message - The message that forms the top of a thread. the most recent DiscussionMessage reply to this thread, or null if there are no replies.



getThreadNumberOfReplies
public int getThreadNumberOfReplies(DiscussionMessage message)(Code)
Count the number of replies to this thread (i.e. the size of the getThread() iterator).
Parameters:
  message - The message that forms the top of a thread. the number of replies to this thread.



getThreads
public Iterator getThreads(String category)(Code)
Return an iterator on all messages in thread - depth first order.
Parameters:
  category - Filter the responses to messages in just this category (optional, may be null). an iterator on all messages in thread - depth first order (may be empty).



getTopicMsgIds
public List getTopicMsgIds(String category)(Code)
Access the message ids for the topics (i.e. messages that are not a response to any other message) in the category.
Parameters:
  category - The category value. A List (Sting) of message id values for each message that is a topic in the category.



getTopics
public Iterator getTopics(String category)(Code)
Return an Iterator on the DiscussionMessages that are "topics", i.e. are not a response to any other message. Note: use DiscussionMessage.getReplies() to get the direct replies to any specific message.
Parameters:
  category - Filter the responses to messages in just this category (optional, may be null). an Iterator on the DiscussionMessages that are "topics", i.e. are not a response to any other message.



removeCategory
public boolean removeCategory(String category) throws InUseException, PermissionException(Code)
Remove a category for this channel.
Parameters:
  category - The category string to be removed. true if the category can be removed, false if not.
exception:
  PermissionException - If the user does not have write permission to the channel.



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