| org.sakaiproject.chat2.model.impl.ChatManagerImpl
ChatManagerImpl | public class ChatManagerImpl extends HibernateDaoSupport implements ChatManager,Observer(Code) | | author: andersjb |
Method Summary | |
public void | addRoomListener(RoomObserver observer, String roomId) | public Date | calculateDateByOffset(int offset) | protected boolean | can(String function, String context) | protected boolean | can(String function) | protected void | checkPermission(String function) | public ChatChannel | createNewChannel(String context, String title, boolean contextDefaultChannel, boolean checkAuthz) | public ChatMessage | createNewMessage(ChatChannel channel, String owner) | public void | deleteChannel(ChatChannel channel) | public void | deleteMessage(ChatMessage message) | public void | destroy() | protected String | getAccessPoint(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 boolean | getCanCreateChannel(String placementId) | public boolean | getCanCreateChannel() | public boolean | getCanDelete(ChatMessage message, String placementId) | public boolean | getCanDelete(ChatMessage message) | public boolean | getCanDelete(ChatChannel channel, String placementId) | public boolean | getCanDelete(ChatChannel channel) | protected boolean | getCanEdit(ChatChannel channel, String placementId) | public boolean | getCanEdit(ChatChannel channel) | protected boolean | getCanReadMessage(ChatChannel channel, String context) | public boolean | getCanReadMessage(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 ChatChannel | getChatChannel(String chatChannelId) | public List | getContextChannels(String context, boolean lazy) | public List | getContextChannels(String context, String defaultNewTitle) | public ChatChannel | getDefaultChannel(String contextId) | public ChatChannel | getDefaultChannelSettings() | public EntityManager | getEntityManager() | public String | getLabel() | public ChatMessage | getMessage(String chatMessageId) | public String | getSummarizableReference(String siteId) | public Map | getSummary(String channel, int items, int days) | protected String | getSummaryFromHeader(ChatMessage item) | public ToolManager | getToolManager() | protected void | init() Called on after the startup of the singleton. | public boolean | isMaintainer() | public void | makeDefaultContextChannel(ChatChannel channel) | public void | removeRoomListener(RoomObserver observer, String roomId) | protected void | resetContextDefaultChannel(String context) | public void | sendDeleteChannel(ChatChannel channel) | public void | sendDeleteMessage(ChatMessage message) | public void | sendMessage(ChatMessage message) | public String | serviceName() | public void | setDefaultChannelSettings(ChatChannel defaultChannelSettings) | public void | setEntityManager(EntityManager entityManager) | public void | setToolManager(ToolManager toolManager) | public String[] | summarizableToolIds() | public void | update(Observable o, Object arg) This method is called whenever the observed object is changed. | public void | updateChannel(ChatChannel channel, boolean checkAuthz) | public void | updateMessage(ChatMessage message) |
logger | final protected transient Log logger(Code) | | |
roomListeners | protected Map roomListeners(Code) | | the clients listening to the various rooms
|
calculateDateByOffset | public Date calculateDateByOffset(int offset)(Code) | | |
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(ChatChannel channel, String placementId)(Code) | | tells us if the channel can be deleted by the current session user
|
getContextChannels | public List getContextChannels(String context, boolean lazy)(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) | | |
resetContextDefaultChannel | protected void resetContextDefaultChannel(String context)(Code) | | Resets the passed context's default channel
|
setDefaultChannelSettings | public void setDefaultChannelSettings(ChatChannel defaultChannelSettings)(Code) | | |
setEntityManager | public void setEntityManager(EntityManager entityManager)(Code) | | Parameters: entityManager - the entityManager to set |
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 notifyObservers method. |
|
|