| org.sakaiproject.component.app.messageforums.ui.PrivateMessageManagerImpl
Method Summary | |
public void | addAttachToPvtMsg(PrivateMessage pvtMsgData, Attachment pvtMsgAttach) | public PrivateMessage | createPrivateMessage(String typeUuid) | public Attachment | createPvtMsgAttachment(String attachId, String name) | public void | createTopicFolderInForum(PrivateForum pf, String folderName) | public void | createTopicFolderInTopic(PrivateForum pf, PrivateTopic parentTopic, String folderName) | public void | deletePrivateMessage(PrivateMessage message, String typeUuid) | public void | deleteTopicFolder(PrivateForum pf, String topicUuid) | public int | findMessageCount(String typeUuid) | public int | findUnreadMessageCount(String typeUuid) | public Area | getAreaByContextIdAndTypeId(String typeId) | public AreaManager | getAreaManager() | public String | getAuthorString() | public String | getContextId() | public String | getContextSiteId() | public List | getDeletedMessages(String orderField, String order) | public List | getDraftedMessages(String orderField, String order) | public Message | getMessageById(Long id) | public MessageForumsMessageManager | getMessageManager() | public List | getMessagesByTopic(String userId, Long topicId) | public List | getMessagesByType(String typeUuid, String orderField, String order) | public List | getMessagesByTypeByContext(String typeUuid, String contextId) | public PrivateMessage | getNextMessage(PrivateMessage message) | public PrivateMessage | getPreviousMessage(PrivateMessage message) | public boolean | getPrivateAreaEnabled() | public Area | getPrivateMessageArea() | public List | getPrivateMessageCountsForAllSites() | public Attachment | getPvtMsgAttachment(Long pvtMsgAttachId) | public List | getReceivedMessages(String orderField, String order) | public String | getResourceBundleString(String key) | public List | getSentMessages(String orderField, String order) | public Topic | getTopicByUuid(String topicUuid) | public String | getTopicTypeUuid(String topicTitle) | public int | getTotalNoMessages(Topic topic) | public int | getUnreadNoMessages(Topic topic) | public boolean | hasNextMessage(PrivateMessage message) | public boolean | hasPreviousMessage(PrivateMessage message) | public void | init() | public PrivateMessage | initMessageWithAttachmentsAndRecipients(PrivateMessage msg) | public PrivateForum | initializationHelper(PrivateForum forum) | public PrivateForum | initializationHelper(PrivateForum forum, Area area) | public PrivateForum | initializePrivateMessageArea(Area area) | public boolean | isInstructor() | public boolean | isMutableTopicFolder(String parentTopicId) | public boolean | isPrivateAreaEnabled() | public void | markMessageAsReadForUser(PrivateMessage message) | public void | markMessageAsReadForUser(PrivateMessage message, String contextId) | public void | movePvtMsgTopic(PrivateMessage message, Topic oldTopic, Topic newTopic) | public void | removePvtMsgAttachment(Attachment o) | public void | renameTopicFolder(PrivateForum pf, String topicUuid, String newName) | public void | saveAreaAndForumSettings(Area area, PrivateForum forum) | public void | saveForumSettings(PrivateForum forum) | public void | savePrivateMessage(Message message) | public void | savePrivateMessageArea(Area area) | public List | searchPvtMsgs(String typeUuid, String searchText, Date searchFromDate, Date searchToDate, boolean searchByText, boolean searchByAuthor, boolean searchByBody, boolean searchByLabel, boolean searchByDate) | public void | sendPrivateMessage(PrivateMessage message, Set recipients, boolean asEmail) | public void | setAreaManager(AreaManager areaManager) | public void | setEmailService(EmailService emailService) | public void | setForumManager(MessageForumsForumManager forumManager) | public void | setIdManager(IdManager idManager) | public void | setMessageManager(MessageForumsMessageManager messageManager) | public void | setPrivateAreaEnabled(boolean value) | public void | setSessionManager(SessionManager sessionManager) | public void | setTypeManager(MessageForumsTypeManager typeManager) |
PVTMSG_MODE_DELETE | final public static String PVTMSG_MODE_DELETE(Code) | | |
PVTMSG_MODE_DRAFT | final public static String PVTMSG_MODE_DRAFT(Code) | | |
PVTMSG_MODE_RECEIVED | final public static String PVTMSG_MODE_RECEIVED(Code) | | |
PVTMSG_MODE_SENT | final public static String PVTMSG_MODE_SENT(Code) | | |
getAreaByContextIdAndTypeId | public Area getAreaByContextIdAndTypeId(String typeId)(Code) | | |
getContextSiteId | public String getContextSiteId()(Code) | | siteId |
getMessagesByType | public List getMessagesByType(String typeUuid, String orderField, String order)(Code) | | helper method to get messages by type
Parameters: typeUuid - message list |
getMessagesByTypeByContext | public List getMessagesByTypeByContext(String typeUuid, String contextId)(Code) | | FOR SYNOPTIC TOOL:
helper method to get messages by type
needed to pass contextId since could be in MyWorkspace
Parameters: typeUuid - The type of forum it is (Private or Topic) Parameters: contextId - The site id whose messages are needed message list |
getPrivateAreaEnabled | public boolean getPrivateAreaEnabled()(Code) | | |
getPrivateMessageCountsForAllSites | public List getPrivateMessageCountsForAllSites()(Code) | | FOR SYNOPTIC TOOL:
Returns a list of all sites this user is in along with a count of his/her
unread messages
List of site id, count of unread message pairs |
getResourceBundleString | public String getResourceBundleString(String key)(Code) | | Gets Strings from Message Bundle (specifically for titles)
TODO: pull directly from bundle instead of using areaManager
as an intermediary
Parameters: key - Message bundle key for String wantedString requested or "[missing key: key]" if not found |
getTotalNoMessages | public int getTotalNoMessages(Topic topic)(Code) | | |
getUnreadNoMessages | public int getUnreadNoMessages(Topic topic)(Code) | | |
isInstructor | public boolean isInstructor()(Code) | | |
isMutableTopicFolder | public boolean isMutableTopicFolder(String parentTopicId)(Code) | | Topic Folder Setting
|
markMessageAsReadForUser | public void markMessageAsReadForUser(PrivateMessage message, String contextId)(Code) | | FOR SYNOPTIC TOOL:
Need to pass in contextId also
|
savePrivateMessageArea | public void savePrivateMessageArea(Area area)(Code) | | |
searchPvtMsgs | public List searchPvtMsgs(String typeUuid, String searchText, Date searchFromDate, Date searchToDate, boolean searchByText, boolean searchByAuthor, boolean searchByBody, boolean searchByLabel, boolean searchByDate)(Code) | | |
setPrivateAreaEnabled | public void setPrivateAreaEnabled(boolean value)(Code) | | |
|
|