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


org.sakaiproject.chat2.model.ChatManager

All known Subclasses:   org.sakaiproject.chat2.model.impl.ChatManagerImpl,
ChatManager
public interface ChatManager extends EntitySummary(Code)

author:
   andersjb


Field Summary
final static  StringAPPLICATION_ID
     The type string for this application: should not change over time as it may be stored in various parts of persistent entities.
final public static  StringCHAT
    
final public static  StringCHAT_TOOL_ID
    
final public static  StringREFERENCE_ROOT
     This string starts the references to resources in this service.
final public static  StringREF_TYPE_CHANNEL
    
final public static  StringREF_TYPE_MESSAGE
     The Reference type for a messgae.


Method Summary
public  voidaddRoomListener(RoomObserver observer, String roomId)
    
public  DatecalculateDateByOffset(int offset)
    
public  ChatChannelcreateNewChannel(String context, String title, boolean contextDefaultChannel, boolean checkAuthz)
     Creates a new ChatChannel but doesn't put it in the database.
public  ChatMessagecreateNewMessage(ChatChannel channel, String owner)
    
public  voiddeleteChannel(ChatChannel channel)
     deletes the channel from the database.
public  voiddeleteMessage(ChatMessage message)
    
public  booleangetCanCreateChannel()
    
public  booleangetCanDelete(ChatMessage chatMessage)
    
public  booleangetCanDelete(ChatMessage message, String placementId)
    
public  booleangetCanDelete(ChatChannel channel)
    
public  booleangetCanEdit(ChatChannel channel)
    
public  booleangetCanReadMessage(ChatChannel channel)
    
public  List<ChatMessage>getChannelMessages(ChatChannel channel, String context, Date date, int items, boolean sortAsc)
     gets all the messages from the Channel after the passed date
Parameters:
  channel - ChatChannel
Parameters:
  context - Context of channel and messages to return
Parameters:
  date - Date that the messages need to be newer than.
public  ChatChannelgetChatChannel(String chatChannelId)
    
public  ListgetContextChannels(String context, boolean lazy)
    
public  ListgetContextChannels(String contextId, String defaultNewTitle)
    
public  ChatChannelgetDefaultChannel(String contextId)
     Returns the context's default channel, or null if none.
public  StringgetLabel()
    
public  ChatMessagegetMessage(String chatMessageId)
    
public  booleanisMaintainer()
    
public  voidmakeDefaultContextChannel(ChatChannel channel)
    
public  voidremoveRoomListener(RoomObserver observer, String roomId)
    
public  voidsendMessage(ChatMessage entry)
    
public  StringserviceName()
    
public  voidupdateChannel(ChatChannel channel, boolean checkAuthz)
    
public  voidupdateMessage(ChatMessage message)
    

Field Detail
APPLICATION_ID
final static String APPLICATION_ID(Code)
The type string for this application: should not change over time as it may be stored in various parts of persistent entities.



CHAT
final public static String CHAT(Code)



CHAT_TOOL_ID
final public static String CHAT_TOOL_ID(Code)



REFERENCE_ROOT
final public static String REFERENCE_ROOT(Code)
This string starts the references to resources in this service.



REF_TYPE_CHANNEL
final public static String REF_TYPE_CHANNEL(Code)



REF_TYPE_MESSAGE
final public static String REF_TYPE_MESSAGE(Code)
The Reference type for a messgae.





Method Detail
addRoomListener
public void addRoomListener(RoomObserver observer, String roomId)(Code)
Adds a room listener on the room
Parameters:
  observer - RoomObserver the class to observe the room
Parameters:
  roomId - the room being observed



calculateDateByOffset
public Date calculateDateByOffset(int offset)(Code)
Returns a Date object that is the offset number of days before the current date
Parameters:
  offset - Difference in days from current date



createNewChannel
public ChatChannel createNewChannel(String context, String title, boolean contextDefaultChannel, boolean checkAuthz) throws PermissionException(Code)
Creates a new ChatChannel but doesn't put it in the database.
Parameters:
  context - Id of what the channel is linked to
Parameters:
  title - String the title of the channel
Parameters:
  contextDefaultChannel - boolean to set this as the default channel in the context
Parameters:
  checkAuthz - boolean indicating if we should check for authorization before creating the channel ChatChannel the new un-saved channel



createNewMessage
public ChatMessage createNewMessage(ChatChannel channel, String owner) throws PermissionException(Code)
creates an unsaved Chat Message
Parameters:
  ChatChannel - the channel that the new message will be in
Parameters:
  String - the owner of the message ChatMessage



deleteChannel
public void deleteChannel(ChatChannel channel) throws PermissionException(Code)
deletes the channel from the database. It also removes the ChatMessages
Parameters:
  channel -



deleteMessage
public void deleteMessage(ChatMessage message) throws PermissionException(Code)
delete a Chat Message
Parameters:
  ChatMessage - the message to delete



getCanCreateChannel
public boolean getCanCreateChannel()(Code)



getCanDelete
public boolean getCanDelete(ChatMessage chatMessage)(Code)



getCanDelete
public boolean getCanDelete(ChatMessage message, String placementId)(Code)



getCanDelete
public boolean getCanDelete(ChatChannel channel)(Code)



getCanEdit
public boolean getCanEdit(ChatChannel channel)(Code)



getCanReadMessage
public boolean getCanReadMessage(ChatChannel channel)(Code)



getChannelMessages
public List<ChatMessage> getChannelMessages(ChatChannel channel, String context, Date date, int items, boolean sortAsc) throws PermissionException(Code)
gets all the messages from the Channel after the passed date
Parameters:
  channel - ChatChannel
Parameters:
  context - Context of channel and messages to return
Parameters:
  date - Date that the messages need to be newer than. All messages will be returned if null
Parameters:
  items - The number of messages to return. All if set to 0
Parameters:
  sortAsc - Boolean to sort the records in ascending order List of ChatMessages



getChatChannel
public ChatChannel getChatChannel(String chatChannelId)(Code)
gets one chat room
Parameters:
  chatChannelId - Id ChatChannel



getContextChannels
public List getContextChannels(String context, boolean lazy)(Code)
gets the rooms associated with the context
Parameters:
  context - Site the channel is in
Parameters:
  lazy - boolean to load the messages lazily or not List of ChatChannel



getContextChannels
public List getContextChannels(String contextId, String defaultNewTitle)(Code)
Gets the rooms associated with the context If no rooms are found, one is created with the passed title
Parameters:
  contextId - Id
Parameters:
  defaultNewTitle - String the default name of a new ChatChannel List of ChatChannel



getDefaultChannel
public ChatChannel getDefaultChannel(String contextId)(Code)
Returns the context's default channel, or null if none.
Parameters:
  contextId -



getLabel
public String getLabel()(Code)



getMessage
public ChatMessage getMessage(String chatMessageId)(Code)
gets the message with the id
Parameters:
  chatMessageId - Id ChatMessage



isMaintainer
public boolean isMaintainer()(Code)



makeDefaultContextChannel
public void makeDefaultContextChannel(ChatChannel channel)(Code)
Makes the passed channel the dfault in the channel's context
Parameters:
  channel -



removeRoomListener
public void removeRoomListener(RoomObserver observer, String roomId)(Code)
Removes a room listener on the room
Parameters:
  observer - RoomObserver the class to stop observing the room
Parameters:
  roomId - the room being observed



sendMessage
public void sendMessage(ChatMessage entry)(Code)
sends the message out to the other clients
Parameters:
  entry - ChatMessage



serviceName
public String serviceName()(Code)



updateChannel
public void updateChannel(ChatChannel channel, boolean checkAuthz) throws PermissionException(Code)
updates the channel back into the database
Parameters:
  channel - ChatChannel
Parameters:
  checkAuthz - boolean indicating if we should check for authorization before updating



updateMessage
public void updateMessage(ChatMessage message)(Code)
saves a Chat Message
Parameters:
  ChatMessage - the message to update



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