|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class represents the client accessible API to the forum. Among others,
it has methods to create and modify Forums and ForumTemplates.
Supported API: false
Extendable: false
Method Summary | |
void |
addForum(DiscussionForum forum,
SubjectOfForum subject,
boolean primary)
Creates and ForumSubject association between the given forum and the subject. |
DiscussionForum |
createForum(CollaborationTemplate template,
String forumName,
SubjectOfForum subject)
Deprecated. |
DiscussionForum |
createForum(CollaborationTemplate template,
String forumName,
SubjectOfForum subject,
WTContainerRef containerRef)
Creates and persists a Forum based on the strucutre defined in the given template and associates the given subject with this new forum. |
DiscussionForum |
createForum(String templateName,
String forumName,
SubjectOfForum subject)
Deprecated. |
DiscussionForum |
createForum(String templateName,
String forumName,
SubjectOfForum subject,
WTContainerRef containerRef)
Creates and persists a Forum based on the strucutre defined in the given template and associates the given subject with this new forum. |
Forum |
findForum(Discussion discussion)
Supported API: false |
Project2 |
findForumProject(Forum forum)
Supported API: false |
HashMap |
getChildDiscussions(Discussion discussion,
boolean attachments)
Returns all objects that have the container as their parent object. |
DiscussionForumTemplate |
getDefaultTemplate()
Deprecated. in 7.0 |
DiscussionForumTemplate |
getDefaultTemplate(WTContainerRef containerRef)
Retrieves the ForumTemplate given the name of the template. |
Enumeration |
getForums(WTObject subject)
Retrieves all the forums that the given SubjectOfForum is associated with. |
Enumeration |
getForums(WTObject subject,
boolean otherSideOnly)
Retrieves all the forums that the given SubjectOfForum is associated with and if otherSideOnly is false, all the links that represent these associations . |
Enumeration |
getPostings(Discussion parent)
Retrieves all the postings that are part of the given Discussion. |
DiscussionForumTemplate |
getTemplate(String name)
Retrieves the ForumTemplate given the name of the template. |
DiscussionForumTemplate |
getTemplate(String name,
WTContainerRef containerRef)
Retrieves the ForumTemplate given the name of the template. |
Enumeration |
getTopics(Discussion parent)
Retrieves all the topics that are part of the given discussion. |
DiscussionForum |
saveForum(SubjectOfForum subject,
DiscussionForum forum)
Persists the forum if it isnt already there, else updates the existing one. |
DiscussionPosting |
savePosting(DiscussionPosting posting)
Persist the posting if it doesnt already exist and update the existing one otherwise. |
CollaborationTemplate |
saveTemplate(CollaborationTemplate template)
Persist the posting if it doesnt already exist and update the existing one otherwise. |
DiscussionTopic |
saveTopic(DiscussionTopic topic)
Persist the topic if it doesnt already exist and update the existing one otherwise. |
Method Detail |
public void addForum(DiscussionForum forum, SubjectOfForum subject, boolean primary) throws WTException, NotAuthorizedException
forum
- forum playing DISCUSSION_ROLE for the association.subject
- Business object playing SUBJECT_ROLE of the association.primary
- boolean indicating whether or not subject is the primary subject of the forum.
WTException
NotAuthorizedException
public DiscussionTopic saveTopic(DiscussionTopic topic) throws WTException, NotAuthorizedException
topic
-
WTException
NotAuthorizedException
public Enumeration getTopics(Discussion parent) throws WTException
parent
- Discussion whose topics to retrieve.
WTException
public CollaborationTemplate saveTemplate(CollaborationTemplate template) throws WTException
template
-
WTException
public DiscussionPosting savePosting(DiscussionPosting posting) throws WTException
posting
-
WTException
public Enumeration getForums(WTObject subject) throws WTException
subject
- The subject whose forums are to be retrieved.
WTException
public DiscussionForum saveForum(SubjectOfForum subject, DiscussionForum forum) throws WTException
subject
- forum
-
WTException
public DiscussionForum createForum(String templateName, String forumName, SubjectOfForum subject) throws WTException
templateName
- The name of the template whose structure this forum should be based on.forumName
- The name of the forum.subject
- The business object that is to form the subject of discussions in this forum.
WTException
public Enumeration getPostings(Discussion parent) throws WTException
parent
- The discussion whose postings to retrieve.
WTException
public DiscussionForum createForum(CollaborationTemplate template, String forumName, SubjectOfForum subject) throws WTException
template
- The template containing the the structure to be used.forumName
- Name of the forum.subject
- The business object that is the primary subject of discussions in this forum.
WTException
public DiscussionForumTemplate getTemplate(String name, WTContainerRef containerRef) throws WTException
name
- containerRef
-
WTException
public Enumeration getForums(WTObject subject, boolean otherSideOnly) throws WTException
subject
- The subject whose forums are to be retrieved.otherSideOnly
- retrieve only the forums or the links as well.
WTException
public DiscussionForumTemplate getDefaultTemplate() throws WTException
WTException
public Forum findForum(Discussion discussion) throws WTException
discussion
-
WTException
public Project2 findForumProject(Forum forum) throws WTException
forum
-
WTException
public HashMap getChildDiscussions(Discussion discussion, boolean attachments) throws WTException
discussion
- attachments
-
WTException
public DiscussionForumTemplate getTemplate(String name) throws WTException
name
-
WTException
public DiscussionForum createForum(String templateName, String forumName, SubjectOfForum subject, WTContainerRef containerRef) throws WTException
templateName
- The name of the template whose structure this forum should be based on.forumName
- The name of the forum.subject
- The business object that is to form the subject of discussions in this forum.containerRef
-
WTException
public DiscussionForum createForum(CollaborationTemplate template, String forumName, SubjectOfForum subject, WTContainerRef containerRef) throws WTException
template
- The template containing the the structure to be used.forumName
- Name of the forum.subject
- The business object that is the primary subject of discussions in this forum.containerRef
-
WTException
public DiscussionForumTemplate getDefaultTemplate(WTContainerRef containerRef) throws WTException
containerRef
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |