|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.workflow.forum.StandardForumService
Use the newStandardForumService
static factory method(s),
not the StandardForumService
constructor, to construct instances
of this class. Instances must be constructed using the static factory(s),
in order to ensure proper initialization of the instance.
Field Summary | |
private static String |
CLASSNAME
|
private static String |
DEFAULT_TEMPLATE_NAME
|
private static String |
EVENT_PROPOGATION_QUEUE_NAME
|
private ProcessingQueue |
eventPropogationQueue
|
private static int |
NRETRIES
|
private static String |
OBJECT_FORUM_TEMPLATE_PATH
|
private static String |
PROJECT_FORUM_TEMPLATE_PATH
|
private static long |
QUEUE_INTERVAL
|
private static String |
RESOURCE
|
private static int |
SLEEPTIME
|
private static boolean |
USE_QUEUE
|
private static boolean |
VERBOSE
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardForumService()
|
Method Summary | |
void |
addForum(DiscussionForum forum,
SubjectOfForum subject,
boolean primary)
Creates and ForumSubject association between the given forum and the subject. |
private void |
constructDiscussionThread(Vector findChildrenFor,
Vector notMapped,
HashMap finalDiscussionThread)
|
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. |
private void |
dispatchEvent(String eventType,
Object target)
Dispatch a ForumServiceEvent with eventType=eventType and target=target |
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. |
String |
getConceptualClassname()
Deprecated. |
DiscussionForumTemplate |
getDefaultTemplate()
Deprecated. in 7.0 |
DiscussionForumTemplate |
getDefaultTemplate(WTContainerRef containerRef)
Retrieves the ForumTemplate given the name of the template. |
WTHashSet |
getForums(WTCollection subject)
|
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. |
static StandardForumService |
newStandardForumService()
Default factory for the class. |
protected void |
performStartupProcess()
Supported API: false |
void |
registerEvents(ManagerService managerService)
Register events with the passed ManagerService. |
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. |
protected void |
startEventPropogationQueue()
Starts event propogation queue. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static boolean VERBOSE
private static boolean USE_QUEUE
private static String DEFAULT_TEMPLATE_NAME
private static String PROJECT_FORUM_TEMPLATE_PATH
private static String OBJECT_FORUM_TEMPLATE_PATH
private static final String EVENT_PROPOGATION_QUEUE_NAME
private static final int NRETRIES
private static final int SLEEPTIME
private static long QUEUE_INTERVAL
private ProcessingQueue eventPropogationQueue
Constructor Detail |
public StandardForumService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public void registerEvents(ManagerService managerService)
registerEvents
in interface Manager
registerEvents
in class StandardManager
managerService
- the ManagerService with which to register events.protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
public static StandardForumService newStandardForumService() throws WTException
WTException
public void addForum(DiscussionForum forum, SubjectOfForum subject, boolean primary) throws WTException, NotAuthorizedException
addForum
in interface ForumService
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
saveTopic
in interface ForumService
topic
-
WTException
NotAuthorizedException
public Enumeration getTopics(Discussion parent) throws WTException
getTopics
in interface ForumService
parent
- Discussion whose topics to retrieve.
WTException
public CollaborationTemplate saveTemplate(CollaborationTemplate template) throws WTException
saveTemplate
in interface ForumService
template
-
WTException
public DiscussionPosting savePosting(DiscussionPosting posting) throws WTException
savePosting
in interface ForumService
posting
-
WTException
public Enumeration getForums(WTObject subject) throws WTException
getForums
in interface ForumService
subject
- The subject whose forums are to be retrieved.
WTException
public DiscussionForum saveForum(SubjectOfForum subject, DiscussionForum forum) throws WTException
saveForum
in interface ForumService
subject
- forum
-
WTException
public DiscussionForum createForum(String templateName, String forumName, SubjectOfForum subject) throws WTException
createForum
in interface ForumService
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
getPostings
in interface ForumService
parent
- The discussion whose postings to retrieve.
WTException
public DiscussionForum createForum(CollaborationTemplate template, String forumName, SubjectOfForum subject) throws WTException
createForum
in interface ForumService
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
getTemplate
in interface ForumService
name
- containerRef
-
WTException
public Enumeration getForums(WTObject subject, boolean otherSideOnly) throws WTException
getForums
in interface ForumService
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
getDefaultTemplate
in interface ForumService
WTException
public Forum findForum(Discussion discussion) throws WTException
findForum
in interface ForumService
discussion
-
WTException
public Project2 findForumProject(Forum forum) throws WTException
findForumProject
in interface ForumService
forum
-
WTException
public HashMap getChildDiscussions(Discussion discussion, boolean attachments) throws WTException
getChildDiscussions
in interface ForumService
discussion
- attachments
-
WTException
public DiscussionForumTemplate getTemplate(String name) throws WTException
getTemplate
in interface ForumService
name
-
WTException
public DiscussionForum createForum(String templateName, String forumName, SubjectOfForum subject, WTContainerRef containerRef) throws WTException
createForum
in interface ForumService
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
createForum
in interface ForumService
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
getDefaultTemplate
in interface ForumService
containerRef
-
WTException
private void dispatchEvent(String eventType, Object target) throws WTException
WTException
private void constructDiscussionThread(Vector findChildrenFor, Vector notMapped, HashMap finalDiscussionThread) throws WTException
WTException
protected void startEventPropogationQueue() throws WTException
WTException
public WTHashSet getForums(WTCollection subject) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |