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


org.sakaiproject.chat2.model.impl.ChatManagerImpl

ChatManagerImpl
public class ChatManagerImpl extends HibernateDaoSupport implements ChatManager,Observer(Code)

author:
   andersjb


Field Summary
static  ComparatorchannelComparatorAsc
    
static  ComparatorchannelComparatorDesc
    
final protected transient  Loglogger
    
protected  MaproomListeners
    


Method Summary
public  voidaddRoomListener(RoomObserver observer, String roomId)
    
public  DatecalculateDateByOffset(int offset)
    
protected  booleancan(String function, String context)
    
protected  booleancan(String function)
    
protected  voidcheckPermission(String function)
    
public  ChatChannelcreateNewChannel(String context, String title, boolean contextDefaultChannel, boolean checkAuthz)
    
public  ChatMessagecreateNewMessage(ChatChannel channel, String owner)
    
public  voiddeleteChannel(ChatChannel channel)
    
public  voiddeleteMessage(ChatMessage message)
    
public  voiddestroy()
    
protected  StringgetAccessPoint(boolean relative)
     Access the partial URL that forms the root of resource URLs.
Parameters:
  relative - if true, form within the access path only (i.e.
protected  booleangetCanCreateChannel(String placementId)
    
public  booleangetCanCreateChannel()
    
public  booleangetCanDelete(ChatMessage message, String placementId)
    
public  booleangetCanDelete(ChatMessage message)
    
public  booleangetCanDelete(ChatChannel channel, String placementId)
    
public  booleangetCanDelete(ChatChannel channel)
    
protected  booleangetCanEdit(ChatChannel channel, String placementId)
    
public  booleangetCanEdit(ChatChannel channel)
    
protected  booleangetCanReadMessage(ChatChannel channel, String context)
    
public  booleangetCanReadMessage(ChatChannel channel)
    
public  List<ChatMessage>getChannelMessages(ChatChannel channel, String context, Date date, int items, boolean sortAsc)
    
protected  List<ChatMessage>getChannelMessages(ChatChannel channel, Date date, int items, boolean sortAsc)
    
public  ChatChannelgetChatChannel(String chatChannelId)
    
public  ListgetContextChannels(String context, boolean lazy)
    
public  ListgetContextChannels(String context, String defaultNewTitle)
    
public  ChatChannelgetDefaultChannel(String contextId)
    
public  ChatChannelgetDefaultChannelSettings()
    
public  EntityManagergetEntityManager()
    
public  StringgetLabel()
    
public  ChatMessagegetMessage(String chatMessageId)
    
public  StringgetSummarizableReference(String siteId)
    
public  MapgetSummary(String channel, int items, int days)
    
protected  StringgetSummaryFromHeader(ChatMessage item)
    
public  ToolManagergetToolManager()
    
protected  voidinit()
     Called on after the startup of the singleton.
public  booleanisMaintainer()
    
public  voidmakeDefaultContextChannel(ChatChannel channel)
    
public  voidremoveRoomListener(RoomObserver observer, String roomId)
    
protected  voidresetContextDefaultChannel(String context)
    
public  voidsendDeleteChannel(ChatChannel channel)
    
public  voidsendDeleteMessage(ChatMessage message)
    
public  voidsendMessage(ChatMessage message)
    
public  StringserviceName()
    
public  voidsetDefaultChannelSettings(ChatChannel defaultChannelSettings)
    
public  voidsetEntityManager(EntityManager entityManager)
    
public  voidsetToolManager(ToolManager toolManager)
    
public  String[]summarizableToolIds()
    
public  voidupdate(Observable o, Object arg)
     This method is called whenever the observed object is changed.
public  voidupdateChannel(ChatChannel channel, boolean checkAuthz)
    
public  voidupdateMessage(ChatMessage message)
    

Field Detail
channelComparatorAsc
static Comparator channelComparatorAsc(Code)



channelComparatorDesc
static Comparator channelComparatorDesc(Code)



logger
final protected transient Log logger(Code)



roomListeners
protected Map roomListeners(Code)
the clients listening to the various rooms





Method Detail
addRoomListener
public void addRoomListener(RoomObserver observer, String roomId)(Code)



calculateDateByOffset
public Date calculateDateByOffset(int offset)(Code)



can
protected boolean can(String function, String context)(Code)



can
protected boolean can(String function)(Code)



checkPermission
protected void checkPermission(String function) throws PermissionException(Code)



createNewChannel
public ChatChannel createNewChannel(String context, String title, boolean contextDefaultChannel, boolean checkAuthz) throws PermissionException(Code)



createNewMessage
public ChatMessage createNewMessage(ChatChannel channel, String owner) throws PermissionException(Code)



deleteChannel
public void deleteChannel(ChatChannel channel) throws PermissionException(Code)



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



destroy
public void destroy()(Code)
Destroy



getAccessPoint
protected String getAccessPoint(boolean relative)(Code)
Access the partial URL that forms the root of resource URLs.
Parameters:
  relative - if true, form within the access path only (i.e. starting with /msg) the partial URL that forms the root of resource URLs.



getCanCreateChannel
protected boolean getCanCreateChannel(String placementId)(Code)



getCanCreateChannel
public boolean getCanCreateChannel()(Code)



getCanDelete
public boolean getCanDelete(ChatMessage message, String placementId)(Code)
tells us if the message can be deleted by the current session user



getCanDelete
public boolean getCanDelete(ChatMessage message)(Code)



getCanDelete
public boolean getCanDelete(ChatChannel channel, String placementId)(Code)
tells us if the channel can be deleted by the current session user



getCanDelete
public boolean getCanDelete(ChatChannel channel)(Code)



getCanEdit
protected boolean getCanEdit(ChatChannel channel, String placementId)(Code)



getCanEdit
public boolean getCanEdit(ChatChannel channel)(Code)



getCanReadMessage
protected boolean getCanReadMessage(ChatChannel channel, String context)(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)



getChannelMessages
protected List<ChatMessage> getChannelMessages(ChatChannel channel, Date date, int items, boolean sortAsc) throws PermissionException(Code)

See Also:   getChannelMessages



getChatChannel
public ChatChannel getChatChannel(String chatChannelId)(Code)



getContextChannels
public List getContextChannels(String context, boolean lazy)(Code)



getContextChannels
public List getContextChannels(String context, String defaultNewTitle)(Code)



getDefaultChannel
public ChatChannel getDefaultChannel(String contextId)(Code)



getDefaultChannelSettings
public ChatChannel getDefaultChannelSettings()(Code)



getEntityManager
public EntityManager getEntityManager()(Code)
the entityManager



getLabel
public String getLabel()(Code)



getMessage
public ChatMessage getMessage(String chatMessageId)(Code)



getSummarizableReference
public String getSummarizableReference(String siteId)(Code)



getSummary
public Map getSummary(String channel, int items, int days) throws IdUsedException, IdInvalidException, PermissionException(Code)
getSummary implementation



getSummaryFromHeader
protected String getSummaryFromHeader(ChatMessage item) throws UserNotDefinedException(Code)



getToolManager
public ToolManager getToolManager()(Code)



init
protected void init() throws Exception(Code)
Called on after the startup of the singleton. This sets the global list of functions which will have permission managed by sakai
throws:
  Exception -



isMaintainer
public boolean isMaintainer()(Code)



makeDefaultContextChannel
public void makeDefaultContextChannel(ChatChannel channel)(Code)



removeRoomListener
public void removeRoomListener(RoomObserver observer, String roomId)(Code)



resetContextDefaultChannel
protected void resetContextDefaultChannel(String context)(Code)
Resets the passed context's default channel



sendDeleteChannel
public void sendDeleteChannel(ChatChannel channel)(Code)



sendDeleteMessage
public void sendDeleteMessage(ChatMessage message)(Code)



sendMessage
public void sendMessage(ChatMessage message)(Code)



serviceName
public String serviceName()(Code)



setDefaultChannelSettings
public void setDefaultChannelSettings(ChatChannel defaultChannelSettings)(Code)



setEntityManager
public void setEntityManager(EntityManager entityManager)(Code)

Parameters:
  entityManager - the entityManager to set



setToolManager
public void setToolManager(ToolManager toolManager)(Code)



summarizableToolIds
public String[] summarizableToolIds()(Code)



update
public void update(Observable o, Object arg)(Code)
This method is called whenever the observed object is changed. An application calls an Observable object's notifyObservers method to have all the object's observers notified of the change. This operates within its own Thread so normal rules and conditions don't apply
Parameters:
  o - the observable object.
Parameters:
  arg - an argument passed to the notifyObserversmethod.



updateChannel
public void updateChannel(ChatChannel channel, boolean checkAuthz) throws PermissionException(Code)



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.