|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ForumManager
Basic forum contract defining all mandatory operations for each manager implementation.
Nested Class Summary | |
---|---|
static class |
ForumManager.Factory
Use this to retrieve the configured impl of ForumManager. |
Method Summary | |
---|---|
info.magnolia.cms.core.Content |
createForum(String name,
String title)
Creates a forum with the given name and returns its node. |
info.magnolia.cms.core.Content |
createForum(String name,
String title,
boolean withMessageNesting)
Creates a forum with the given name and returns its node. |
info.magnolia.cms.core.Content |
createThread(String forumID,
String threadTitle,
String messageText,
String author,
boolean isAnonymous)
Creates a new thread in the given forum and returns this thread's node. |
info.magnolia.cms.core.Content |
createThread(String forumID,
String threadTitle,
String messageTitle,
String messageText,
String author,
boolean isAnonymous)
Creates a new thread in the given forum and returns this thread's node. |
void |
deleteForum(String forumID)
|
void |
deleteMessage(String messageID)
|
void |
deleteThread(String threadID)
|
info.magnolia.cms.core.Content |
getForum(String forumId)
|
info.magnolia.cms.core.Content |
getForumFromThread(info.magnolia.cms.core.Content thread)
Returns the forum node associated to the given thread. |
String |
getForumId(String shortName)
Resolves forum short name into uuid. |
Collection<info.magnolia.cms.core.Content> |
getForumList()
Returns a Collection |
Collection<info.magnolia.cms.core.Content> |
getForumMessages(String forumName)
Gets all messages for given forum ordered by publication date. |
PagedResult |
getMessages(info.magnolia.cms.core.Content thread,
long page)
Returns a given page of messages from the given thread. |
info.magnolia.cms.core.Content |
getThread(String threadID)
|
info.magnolia.cms.core.Content |
getThreadFromMessage(info.magnolia.cms.core.Content message)
Returns the thread associated to the given message. |
Collection<info.magnolia.cms.core.Content> |
getThreads(info.magnolia.cms.core.Content forum)
Returns a Collection |
void |
invalidate(String messageID)
Marks a message as explicitly invalid. |
boolean |
isAllowedToPostOnForum(info.magnolia.cms.core.Content forum)
Checks if current user is allowed to post on the given forum. |
boolean |
isAllowedToPostOnThread(info.magnolia.cms.core.Content thread)
Checks if current user is allowed to post on the given thread. |
void |
isModerator()
Checks whether the current logged-in user is moderator. |
void |
lockForum(String forumID)
A locked forum can not have threads created in it by users. |
void |
lockThread(String threadID)
|
info.magnolia.cms.core.Content |
replyToThread(String threadID,
String inReplyToID,
String messageTitle,
String messageText,
String author,
boolean isAnonymous)
Adds a message to a thread and returns this new message's node. |
void |
unlockForum(String forumID)
|
void |
unlockThread(String threadID)
|
void |
validate(String messageID)
|
Method Detail |
---|
info.magnolia.cms.core.Content createForum(String name, String title) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
info.magnolia.cms.core.Content createForum(String name, String title, boolean withMessageNesting) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Collection<info.magnolia.cms.core.Content> getForumList() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
String getForumId(String shortName) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
info.magnolia.cms.core.Content getForum(String forumId) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Collection<info.magnolia.cms.core.Content> getThreads(info.magnolia.cms.core.Content forum) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
info.magnolia.cms.core.Content createThread(String forumID, String threadTitle, String messageText, String author, boolean isAnonymous) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
info.magnolia.cms.core.Content createThread(String forumID, String threadTitle, String messageTitle, String messageText, String author, boolean isAnonymous) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
info.magnolia.cms.core.Content replyToThread(String threadID, String inReplyToID, String messageTitle, String messageText, String author, boolean isAnonymous) throws javax.jcr.RepositoryException
isAnonymous
- TODO
javax.jcr.RepositoryException
info.magnolia.cms.core.Content getThread(String threadID) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
info.magnolia.cms.core.Content getForumFromThread(info.magnolia.cms.core.Content thread) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
info.magnolia.cms.core.Content getThreadFromMessage(info.magnolia.cms.core.Content message) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
PagedResult getMessages(info.magnolia.cms.core.Content thread, long page) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
Collection<info.magnolia.cms.core.Content> getForumMessages(String forumName) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
void deleteForum(String forumID) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
void deleteThread(String threadID) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
void deleteMessage(String messageID) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
void lockForum(String forumID) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
void unlockForum(String forumID) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
void lockThread(String threadID) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
void unlockThread(String threadID) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
void validate(String messageID) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
void invalidate(String messageID) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
boolean isAllowedToPostOnForum(info.magnolia.cms.core.Content forum)
boolean isAllowedToPostOnThread(info.magnolia.cms.core.Content thread)
void isModerator() throws info.magnolia.cms.security.AccessDeniedException
info.magnolia.cms.security.AccessDeniedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |