| org.sakaiproject.component.app.messageforums.MessageForumsMessageManagerImpl
Method Summary | |
public Attachment | createAttachment() | public Message | createDiscussionMessage() | public Message | createMessage(String typeId) | public Message | createOpenMessage() | public PrivateMessage | createPrivateMessage() | public boolean | currentToolMatch(String toolId) Returns true if the tool with the id passed in exists in the
current site. | public void | deleteMessage(Message message) | public void | deleteMsgWithChild(Long messageId) | public void | deleteUnreadStatus(Long topicId, Long messageId) | public int | findAuhtoredMessageCountByTopicIdByUserId(Long topicId, String userId) | public List | findDiscussionForumMessageCountsForAllSites(List siteList) | public List | findDiscussionForumMessageRemoveCountsForAllSites(List siteList, List roleList) | public List | findDiscussionForumReadMessageCountsForAllSites() | public List | findDiscussionForumReadMessageRemoveCountsForAllSites(List roleList) | public int | findMessageCountByTopicId(Long topicId) | public List | findMessagesByTopicId(Long topicId) | public List | findPvtMsgsBySearchText(String typeUuid, String searchText, Date searchFromDate, Date searchToDate, boolean searchByText, boolean searchByAuthor, boolean searchByBody, boolean searchByLabel, boolean searchByDate) | public int | findReadMessageCountByTopicId(Long topicId) | public int | findReadMessageCountByTopicIdByUserId(Long topicId, String userId) | public int | findReadViewableMessageCountByTopicId(Long topicId) | public int | findReadViewableMessageCountByTopicIdByUserId(Long topicId, String userId) | public int | findUnreadMessageCountByTopicId(Long topicId) | public int | findUnreadMessageCountByTopicIdByUserId(Long topicId, String userId) | public UnreadStatus | findUnreadStatus(Long topicId, Long messageId) | public UnreadStatus | findUnreadStatusByUserId(Long topicId, Long messageId, String userId) | public int | findUnreadViewableMessageCountByTopicId(Long topicId) | public int | findUnreadViewableMessageCountByTopicIdByUserId(Long topicId, String userId) | public int | findViewableMessageCountByTopicId(Long topicId) | public int | findViewableMessageCountByTopicIdByUserId(Long topicId, String userId) | public List | getAllRelatedMsgs(Long messageId) | public Attachment | getAttachmentById(Long attachmentId) | public String | getAttachmentUrl(String id) | public void | getChildMsgs(Long messageId, List returnList) | public EventTrackingService | getEventTrackingService() | public List | getFirstLevelChildMsgs(Long messageId) | public IdManager | getIdManager() | public Message | getMessageById(Long messageId) | public Message | getMessageByIdWithAttachments(Long messageId) | public List | getPendingMsgsInSiteByMembership(List membershipList) | public List | getPendingMsgsInTopic(Long topicId) | public Map | getReadStatusForMessagesWithId(List msgIds, String userId) | public SessionManager | getSessionManager() | public MessageForumsTypeManager | getTypeManager() | public void | init() | public boolean | isMessageReadForUser(Long topicId, Long messageId) | public boolean | isToolInSite(String siteId, String toolId) Return TRUE if tool with id passed in exists in site passed in
FALSE otherwise. | public void | markMessageApproval(Long messageId, boolean approved) | public void | markMessageReadForUser(Long topicId, Long messageId, boolean read) | public void | markMessageReadForUser(Long topicId, Long messageId, boolean read, String userId) | public void | saveMessage(Message message) | public void | setEventTrackingService(EventTrackingService eventTrackingService) | public void | setIdManager(IdManager idManager) | public void | setSessionManager(SessionManager sessionManager) | public void | setTypeManager(MessageForumsTypeManager typeManager) | public List | sortMessageByAuthor(Topic topic, boolean asc) | public List | sortMessageByDate(Topic topic, boolean asc) | public List | sortMessageByDate(List list, boolean asc) | public List | sortMessageBySubject(Topic topic, boolean asc) |
createDiscussionMessage | public Message createDiscussionMessage()(Code) | | |
currentToolMatch | public boolean currentToolMatch(String toolId)(Code) | | Returns true if the tool with the id passed in exists in the
current site.
Parameters: toolId - The tool id to search for.TRUE if tool exists, FALSE otherwise. |
deleteMsgWithChild | public void deleteMsgWithChild(Long messageId)(Code) | | |
deleteUnreadStatus | public void deleteUnreadStatus(Long topicId, Long messageId)(Code) | | |
findAuhtoredMessageCountByTopicIdByUserId | public int findAuhtoredMessageCountByTopicIdByUserId(Long topicId, String userId)(Code) | | FOR STATISTICS TOOL:
Returns the number of read messages by topic for specified user
|
findDiscussionForumMessageCountsForAllSites | public List findDiscussionForumMessageCountsForAllSites(List siteList)(Code) | | FOR SYNOPTIC TOOL:
Returns the count of discussion forum messages grouped by site
Parameters: siteList - List of site ids user is a part of List |
findDiscussionForumMessageRemoveCountsForAllSites | public List findDiscussionForumMessageRemoveCountsForAllSites(List siteList, List roleList)(Code) | | FOR SYNOPTIC TOOL:
Returns the count of discussion forum messages grouped by site
that user not have READ access to
Parameters: siteList - List of site ids user is a part of List |
findDiscussionForumReadMessageCountsForAllSites | public List findDiscussionForumReadMessageCountsForAllSites()(Code) | | FOR SYNOPTIC TOOL:
Returns the count of read discussion forum messages grouped by site
List |
findDiscussionForumReadMessageRemoveCountsForAllSites | public List findDiscussionForumReadMessageRemoveCountsForAllSites(List roleList)(Code) | | FOR SYNOPTIC TOOL:
Returns the count of read discussion forum messages grouped by site
that user does not have READ access to
List |
findMessageCountByTopicId | public int findMessageCountByTopicId(Long topicId)(Code) | | |
findMessagesByTopicId | public List findMessagesByTopicId(Long topicId)(Code) | | |
findPvtMsgsBySearchText | public List findPvtMsgsBySearchText(String typeUuid, String searchText, Date searchFromDate, Date searchToDate, boolean searchByText, boolean searchByAuthor, boolean searchByBody, boolean searchByLabel, boolean searchByDate)(Code) | | Parameters: topicId - Parameters: searchText - |
findReadMessageCountByTopicId | public int findReadMessageCountByTopicId(Long topicId)(Code) | | |
findReadMessageCountByTopicIdByUserId | public int findReadMessageCountByTopicIdByUserId(Long topicId, String userId)(Code) | | |
findReadViewableMessageCountByTopicId | public int findReadViewableMessageCountByTopicId(Long topicId)(Code) | | Returns count of all read msgs for current user that have been approved or
were authored by user
Parameters: topicId - |
findReadViewableMessageCountByTopicIdByUserId | public int findReadViewableMessageCountByTopicIdByUserId(Long topicId, String userId)(Code) | | Returns count of all read msgs for given user that have been approved or
were authored by user
Parameters: topicId - Parameters: userId - |
findUnreadMessageCountByTopicId | public int findUnreadMessageCountByTopicId(Long topicId)(Code) | | |
findUnreadMessageCountByTopicIdByUserId | public int findUnreadMessageCountByTopicIdByUserId(Long topicId, String userId)(Code) | | |
findUnreadViewableMessageCountByTopicId | public int findUnreadViewableMessageCountByTopicId(Long topicId)(Code) | | Returns count of all unread msgs for current user that have been approved or
were authored by current user
|
findUnreadViewableMessageCountByTopicIdByUserId | public int findUnreadViewableMessageCountByTopicIdByUserId(Long topicId, String userId)(Code) | | Returns count of all unread msgs for given user that have been approved or
were authored by user
|
findViewableMessageCountByTopicId | public int findViewableMessageCountByTopicId(Long topicId)(Code) | | Returns count of all msgs in a topic that have been approved or were authored by curr user
|
findViewableMessageCountByTopicIdByUserId | public int findViewableMessageCountByTopicIdByUserId(Long topicId, String userId)(Code) | | Returns count of all messages in a topic that have been approved or were authored by given user
|
getChildMsgs | public void getChildMsgs(Long messageId, List returnList)(Code) | | |
getFirstLevelChildMsgs | public List getFirstLevelChildMsgs(Long messageId)(Code) | | |
getPendingMsgsInSiteByMembership | public List getPendingMsgsInSiteByMembership(List membershipList)(Code) | | |
getPendingMsgsInTopic | public List getPendingMsgsInTopic(Long topicId)(Code) | | |
getReadStatusForMessagesWithId | public Map getReadStatusForMessagesWithId(List msgIds, String userId)(Code) | | |
isMessageReadForUser | public boolean isMessageReadForUser(Long topicId, Long messageId)(Code) | | |
isToolInSite | public boolean isToolInSite(String siteId, String toolId)(Code) | | Return TRUE if tool with id passed in exists in site passed in
FALSE otherwise.
Parameters: thisSite - Site object to check Parameters: toolId - Tool id to be checked |
markMessageApproval | public void markMessageApproval(Long messageId, boolean approved)(Code) | | Will set the approved status on the given message
|
markMessageReadForUser | public void markMessageReadForUser(Long topicId, Long messageId, boolean read)(Code) | | |
markMessageReadForUser | public void markMessageReadForUser(Long topicId, Long messageId, boolean read, String userId)(Code) | | |
sortMessageByAuthor | public List sortMessageByAuthor(Topic topic, boolean asc)(Code) | | |
sortMessageByDate | public List sortMessageByDate(Topic topic, boolean asc)(Code) | | |
sortMessageByDate | public List sortMessageByDate(List list, boolean asc)(Code) | | |
sortMessageBySubject | public List sortMessageBySubject(Topic topic, boolean asc)(Code) | | |
|
|