Class DiscussionAppSoapMockStub
java.lang.Object
com.collabnet.ce.soap60.webservices.ClientSoapStub
com.collabnet.ce.soap60.webservices.ClientSoapMockStub
com.collabnet.ce.soap60.webservices.discussion.DiscussionAppSoapMockStub
- All Implemented Interfaces:
IDiscussionAppSoap
-
Field Summary
Fields inherited from class com.collabnet.ce.soap60.webservices.ClientSoapMockStub
DATE_WILDCARD, GUIDKEY_WILDCARD, INTEGER_WILDCARD, LONG_WILDCARD, STRING_WILDCARDFields inherited from class com.collabnet.ce.soap60.webservices.ClientSoapStub
DEFAULT_CLIENT_TIME_OUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vasoftware.sf.server.services.discussion.ForumDOcreateForum(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String type, boolean isPrivate, String[] moderators, String[] trustedUsers, String replyTo, int messageSize, int emailPosting, int emailMonitoring, int webPosting, String captcha) Simulate a call to createForumcreateForum(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String forumType, String[] moderators, String[] trustedUsers, String replyTo, int messageSize) Simulate a call to createForumcreateForum2(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String forumType, String[] moderators, String[] trustedUsers, String replyTo, int messageSize, int emailPosting, int emailMonitoring, int webPosting, String captcha) Simulate a call to createForum2createPost(String sessionId, String parentPostId, String title, String message, String attachmentFileName, String attachmentMimeType, String attachmentFileId, String ccRecipients) Simulate a call to createPostcreatePost2(String sessionId, String parentPostId, String title, String message, AttachmentSoapDO[] attachments, String ccRecipients) Simulate a call to createPost2createPrivateForum(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String forumType, String[] moderators, String[] trustedUsers, String replyTo, int messageSize) Simulate a call to createPrivateForumcreatePrivateForum2(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String forumType, String[] moderators, String[] trustedUsers, String replyTo, int messageSize, int emailPosting, int emailMonitoring, int webPosting, String captcha) Simulate a call to createPrivateForum2createTopic(String sessionId, String forumId, String title, String message, String attachmentFileName, String attachmentMimeType, String attachmentFileId, String ccRecipients) Simulate a call to createTopiccreateTopic2(String sessionId, String forumId, String title, String message, AttachmentSoapDO[] attachments, String ccRecipients) Simulate a call to createTopic2voiddeletePost(String sessionId, String postId) Simulate a call to deletePostvoiddeleteTopic(String sessionId, String topicId) Simulate a call to deleteTopicSimulate a call to findPostsgetForumList(String sessionId, String projectId) Simulate a call to getForumListgetForumList2(String sessionId, String projectId) Simulate a call to getForumList2getPostList(String sessionId, String topicId) Simulate a call to getPostListgetTopicList(String sessionId, String forumId) Simulate a call to getTopicListvoidprepareCreateForum(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String type, boolean isPrivate, String[] moderators, String[] trustedUsers, String replyTo, int messageSize, int emailPosting, int emailMonitoring, int webPosting, String captcha, Object returnValue) Prepare a simulated response to createForumvoidprepareCreateForum(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String forumType, String[] moderators, String[] trustedUsers, String replyTo, int messageSize, Object returnValue) Prepare a simulated response to createForumvoidprepareCreateForum2(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String forumType, String[] moderators, String[] trustedUsers, String replyTo, int messageSize, int emailPosting, int emailMonitoring, int webPosting, String captcha, Object returnValue) Prepare a simulated response to createForum2voidprepareCreatePost(String sessionId, String parentPostId, String title, String message, String attachmentFileName, String attachmentMimeType, String attachmentFileId, String ccRecipients, Object returnValue) Prepare a simulated response to createPostvoidprepareCreatePost2(String sessionId, String parentPostId, String title, String message, AttachmentSoapDO[] attachments, String ccRecipients, Object returnValue) Prepare a simulated response to createPost2voidprepareCreatePrivateForum(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String forumType, String[] moderators, String[] trustedUsers, String replyTo, int messageSize, Object returnValue) Prepare a simulated response to createPrivateForumvoidprepareCreatePrivateForum2(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String forumType, String[] moderators, String[] trustedUsers, String replyTo, int messageSize, int emailPosting, int emailMonitoring, int webPosting, String captcha, Object returnValue) Prepare a simulated response to createPrivateForum2voidprepareCreateTopic(String sessionId, String forumId, String title, String message, String attachmentFileName, String attachmentMimeType, String attachmentFileId, String ccRecipients, Object returnValue) Prepare a simulated response to createTopicvoidprepareCreateTopic2(String sessionId, String forumId, String title, String message, AttachmentSoapDO[] attachments, String ccRecipients, Object returnValue) Prepare a simulated response to createTopic2voidprepareDeletePost(String sessionId, String postId) Prepare a simulated response to deletePostvoidprepareDeletePost(String sessionId, String postId, Exception exception) Prepare a simulated response to deletePostvoidprepareDeleteTopic(String sessionId, String topicId) Prepare a simulated response to deleteTopicvoidprepareDeleteTopic(String sessionId, String topicId, Exception exception) Prepare a simulated response to deleteTopicvoidprepareFindPosts(String sessionId, String queryString, String projectId, boolean searchAttachments, Object returnValue) Prepare a simulated response to findPostsvoidprepareGetForumList(String sessionId, String projectId, Object returnValue) Prepare a simulated response to getForumListvoidprepareGetForumList2(String sessionId, String projectId, Object returnValue) Prepare a simulated response to getForumList2voidprepareGetPostList(String sessionId, String topicId, Object returnValue) Prepare a simulated response to getPostListvoidprepareGetTopicList(String sessionId, String forumId, Object returnValue) Prepare a simulated response to getTopicListvoidprepareValidateCaptcha(String captcha) Prepare a simulated response to validateCaptchavoidprepareValidateCaptcha(String captcha, Exception exception) Prepare a simulated response to validateCaptchavoidprepareValidateEmailMonitoring(int emailMonitoring, boolean isPrivate) Prepare a simulated response to validateEmailMonitoringvoidprepareValidateEmailMonitoring(int emailMonitoring, boolean isPrivate, Exception exception) Prepare a simulated response to validateEmailMonitoringvoidprepareValidateEmailPosting(int emailPosting, boolean isPrivate) Prepare a simulated response to validateEmailPostingvoidprepareValidateEmailPosting(int emailPosting, boolean isPrivate, Exception exception) Prepare a simulated response to validateEmailPostingvoidprepareValidatePermissions(com.vasoftware.sf.server.types.ProjectPath projectPath, String[] moderators, boolean isModerator, boolean isPrivate, String loggedInUser) Prepare a simulated response to validatePermissionsvoidprepareValidatePermissions(com.vasoftware.sf.server.types.ProjectPath projectPath, String[] moderators, boolean isModerator, boolean isPrivate, String loggedInUser, Exception exception) Prepare a simulated response to validatePermissionsvoidprepareValidateWebPosting(int webPosting, boolean isPrivate) Prepare a simulated response to validateWebPostingvoidprepareValidateWebPosting(int webPosting, boolean isPrivate, Exception exception) Prepare a simulated response to validateWebPostingvoidvalidateCaptcha(String captcha) Simulate a call to validateCaptchavoidvalidateEmailMonitoring(int emailMonitoring, boolean isPrivate) Simulate a call to validateEmailMonitoringvoidvalidateEmailPosting(int emailPosting, boolean isPrivate) Simulate a call to validateEmailPostingvoidvalidatePermissions(com.vasoftware.sf.server.types.ProjectPath projectPath, String[] moderators, boolean isModerator, boolean isPrivate, String loggedInUser) Simulate a call to validatePermissionsvoidvalidateWebPosting(int webPosting, boolean isPrivate) Simulate a call to validateWebPostingMethods inherited from class com.collabnet.ce.soap60.webservices.ClientSoapMockStub
addSimulatedResult, addSimulatedResult, addSimulatedResult, getCallCount, getCallParameters, getUnusedCalls, simulateCallMethods inherited from class com.collabnet.ce.soap60.webservices.ClientSoapStub
getServiceCall, getSoapServer, getTimeout, setTimeout, soapParam
-
Constructor Details
-
DiscussionAppSoapMockStub
-
-
Method Details
-
prepareGetForumList
Prepare a simulated response to getForumList -
getForumList
Simulate a call to getForumList- Specified by:
getForumListin interfaceIDiscussionAppSoap- Parameters:
sessionId- The user session idprojectId- The id of the project- Returns:
- The list of forums within the specified project
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified project id is invalid.PermissionDeniedFault- when the user has insufficient privileges.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
-
prepareGetForumList2
Prepare a simulated response to getForumList2 -
getForumList2
Simulate a call to getForumList2- Specified by:
getForumList2in interfaceIDiscussionAppSoap- Parameters:
sessionId- The user session idprojectId- The id of the project- Returns:
- The list of forums within the specified project
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified project id is invalid.PermissionDeniedFault- when the user has insufficient privileges.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
-
prepareCreateTopic
public void prepareCreateTopic(String sessionId, String forumId, String title, String message, String attachmentFileName, String attachmentMimeType, String attachmentFileId, String ccRecipients, Object returnValue) Prepare a simulated response to createTopic -
createTopic
public TopicSoapDO createTopic(String sessionId, String forumId, String title, String message, String attachmentFileName, String attachmentMimeType, String attachmentFileId, String ccRecipients) throws RemoteException Simulate a call to createTopic- Specified by:
createTopicin interfaceIDiscussionAppSoap- Parameters:
sessionId- User session id.forumId- The id of the forum in which to create a topic.title- The topic titlemessage- The content for the first post of this topicattachmentFileName- Name of the attached file (or null)attachmentMimeType- Mime type of the attached file (or null)attachmentFileId- ID of the attached file (previously uploaded via *FileStorage service) or nullccRecipients- list of recipients to whom the mail should be cc'd- Returns:
- the TopicSoapData Object
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified object id is invalid.PermissionDeniedFault- when the user has insufficient privileges.IllegalArgumentFault- when one or more parameters are invalid.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
-
prepareCreateTopic2
public void prepareCreateTopic2(String sessionId, String forumId, String title, String message, AttachmentSoapDO[] attachments, String ccRecipients, Object returnValue) Prepare a simulated response to createTopic2 -
createTopic2
public TopicSoapDO createTopic2(String sessionId, String forumId, String title, String message, AttachmentSoapDO[] attachments, String ccRecipients) throws RemoteException Simulate a call to createTopic2- Specified by:
createTopic2in interfaceIDiscussionAppSoap- Parameters:
sessionId- User session id.forumId- The id of the forum in which to create a topic.title- The topic titlemessage- The content for the first post of this topicattachments- List of attachment Files.ccRecipients- list of recipients to whom the mail should be cc'd- Returns:
- the TopicSoapData Object
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified object id is invalid.PermissionDeniedFault- when the user has insufficient privileges.IllegalArgumentFault- when one or more parameters are invalid.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
-
prepareDeleteTopic
Prepare a simulated response to deleteTopic -
prepareDeleteTopic
Prepare a simulated response to deleteTopic -
deleteTopic
Simulate a call to deleteTopic- Specified by:
deleteTopicin interfaceIDiscussionAppSoap- Parameters:
sessionId- User session id.topicId- The id of the topic to delete.- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified object id is invalid.PermissionDeniedFault- when the user has insufficient privileges.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
-
prepareGetTopicList
Prepare a simulated response to getTopicList -
getTopicList
Simulate a call to getTopicList- Specified by:
getTopicListin interfaceIDiscussionAppSoap- Parameters:
sessionId- The user session idforumId- The id of the forum for which we want the topics- Returns:
- The TopicSummarySoapList of all topics in the forum
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified object id is invalid.PermissionDeniedFault- when the user has insufficient privileges.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
-
prepareCreatePost
public void prepareCreatePost(String sessionId, String parentPostId, String title, String message, String attachmentFileName, String attachmentMimeType, String attachmentFileId, String ccRecipients, Object returnValue) Prepare a simulated response to createPost -
createPost
public PostSoapDO createPost(String sessionId, String parentPostId, String title, String message, String attachmentFileName, String attachmentMimeType, String attachmentFileId, String ccRecipients) throws RemoteException Simulate a call to createPost- Specified by:
createPostin interfaceIDiscussionAppSoap- Parameters:
sessionId- The user session id.parentPostId- Parent post to which this is a reply.title- Post title.message- Post message.attachmentFileName- Name of the attached file (or null)attachmentMimeType- Mime type of the attached file (or null)attachmentFileId- ID of the attached file (previously uploaded via *FileStorage service) or nullccRecipients- list of recipients to whom the mail should be cc'd- Returns:
- Newly created post object data.
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified parent post id is invalid.PermissionDeniedFault- when the user has insufficient privileges.IllegalArgumentFault- when one or more parameters are invalid.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
-
prepareCreatePost2
public void prepareCreatePost2(String sessionId, String parentPostId, String title, String message, AttachmentSoapDO[] attachments, String ccRecipients, Object returnValue) Prepare a simulated response to createPost2 -
createPost2
public PostSoapDO createPost2(String sessionId, String parentPostId, String title, String message, AttachmentSoapDO[] attachments, String ccRecipients) throws RemoteException Simulate a call to createPost2- Specified by:
createPost2in interfaceIDiscussionAppSoap- Parameters:
sessionId- The user session id.parentPostId- Parent post to which this is a reply.title- Post title.message- Post message.attachments- List of attachment files.ccRecipients- list of recipients to whom the mail should be cc'd- Returns:
- Newly created post object data.
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified parent post id is invalid.PermissionDeniedFault- when the user has insufficient privileges.IllegalArgumentFault- when one or more parameters are invalid.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
-
prepareDeletePost
Prepare a simulated response to deletePost -
prepareDeletePost
Prepare a simulated response to deletePost -
deletePost
Simulate a call to deletePost- Specified by:
deletePostin interfaceIDiscussionAppSoap- Parameters:
sessionId- User session id.postId- The id of the post to delete.- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified object id is invalid.PermissionDeniedFault- when the user has insufficient privileges.IllegalArgumentFault- when specified post id is the first post in a topic.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
-
prepareGetPostList
Prepare a simulated response to getPostList -
getPostList
Simulate a call to getPostList- Specified by:
getPostListin interfaceIDiscussionAppSoap- Parameters:
sessionId- User session id.topicId- Topic id.- Returns:
- List of posts on this topic.
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified topic id is invalid.PermissionDeniedFault- when the user has insufficient privileges.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
-
prepareFindPosts
public void prepareFindPosts(String sessionId, String queryString, String projectId, boolean searchAttachments, Object returnValue) Prepare a simulated response to findPosts -
findPosts
public PostSoapList findPosts(String sessionId, String queryString, String projectId, boolean searchAttachments) throws RemoteException Simulate a call to findPosts- Specified by:
findPostsin interfaceIDiscussionAppSoap- Parameters:
sessionId- User session id.queryString- Query string.projectId- The project in which to find posts. (if null, search all projects)searchAttachments- Whether to search attachments.- Returns:
- List of posts matching search criteria.
- Throws:
InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified project id is invalid.IllegalArgumentFault- when query string is invalid.PermissionDeniedFault- when the user has insufficient privileges.SearchQuerySyntaxFault- when the specified search query string is syntactically invalid.SystemFault- when an unexpected system level error occurs.RemoteException- See Also:
-
prepareCreateForum
public void prepareCreateForum(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String forumType, String[] moderators, String[] trustedUsers, String replyTo, int messageSize, Object returnValue) Prepare a simulated response to createForum -
createForum
public ForumSoapDO createForum(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String forumType, String[] moderators, String[] trustedUsers, String replyTo, int messageSize) throws RemoteException Simulate a call to createForum- Specified by:
createForumin interfaceIDiscussionAppSoap- Parameters:
sessionId- User session idprojectId- the project in which the forum is to be createdlistName- name of the associated mailing listforumName- Name for the forumdescription- description of the forumlistEnabled- is a mailing list enabled with this forumprefix- prefix to be added to the subject of all posts to this forumfooter- footer to be appended to the bottom of every mail in this forumforumType- whether the forum should be moderated. Moderated -'MF'; Unmoderated - 'UF'moderators- The userId's for persons to be added as moderators for this forum.trustedUsers- The userId's for persons to be added as trusted for this forum.replyTo- The value of reply header for the post's mail in this forum.messageSize- threshold size (MB) of message content and attachment of any posts in a forum.- Returns:
- a data object of the created forum
- Throws:
SystemFault- when an unexpected system level error occurs.IllegalArgumentFault- thrown when the given parameters are invalid.InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified project id is invalid.PermissionDeniedFault- when the user has insufficient privileges.ObjectAlreadyExistsFault- when an object by this name already exists in the project.InvalidForumTypeFault- when type is other than MF or UF.RemoteException- See Also:
-
prepareCreateForum2
public void prepareCreateForum2(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String forumType, String[] moderators, String[] trustedUsers, String replyTo, int messageSize, int emailPosting, int emailMonitoring, int webPosting, String captcha, Object returnValue) Prepare a simulated response to createForum2 -
createForum2
public Forum2SoapDO createForum2(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String forumType, String[] moderators, String[] trustedUsers, String replyTo, int messageSize, int emailPosting, int emailMonitoring, int webPosting, String captcha) throws RemoteException Simulate a call to createForum2- Specified by:
createForum2in interfaceIDiscussionAppSoap- Parameters:
sessionId- User session idprojectId- the project in which the forum is to be createdlistName- name of the associated mailing listforumName- Name for the forumdescription- description of the forumlistEnabled- is a mailing list enabled with this forumprefix- prefix to be added to the subject of all posts to this forumfooter- footer to be appended to the bottom of every mail in this forumforumType- whether the forum should be moderated. Moderated -'MF'; Unmoderated - 'UF'moderators- The userId's for persons to be added as moderators for this forum.trustedUsers- The userId's for persons to be added as trusted for this forum.replyTo- The value of reply header for the post's mail in this forum.messageSize- threshold size (MB) of message content and attachment of any posts in a forum.emailPosting- This will be ignored if mailing list is not enabled.emailMonitoring- This will be ignored if mailing list is not enabled.webPosting- The web posting setting for the forumcaptcha- whether CAPTCHA to be enforced for all web posts, only for logged-out users or for nobody.- Returns:
- a data object of the created forum
- Throws:
SystemFault- when an unexpected system level error occurs.IllegalArgumentFault- thrown when the given parameters are invalid.InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified project id is invalid.PermissionDeniedFault- when the user has insufficient privileges.ObjectAlreadyExistsFault- when an object by this name already exists in the project.InvalidForumTypeFault- when type is other than MF or UF.RemoteException- See Also:
-
prepareCreatePrivateForum
public void prepareCreatePrivateForum(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String forumType, String[] moderators, String[] trustedUsers, String replyTo, int messageSize, Object returnValue) Prepare a simulated response to createPrivateForum -
createPrivateForum
public ForumSoapDO createPrivateForum(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String forumType, String[] moderators, String[] trustedUsers, String replyTo, int messageSize) throws RemoteException Simulate a call to createPrivateForum- Specified by:
createPrivateForumin interfaceIDiscussionAppSoap- Parameters:
sessionId- User session idprojectId- the project in which the forum is to be createdlistName- name of the associated mailing listforumName- Name for the forumdescription- description of the forumlistEnabled- is a mailing list enabled with this forumprefix- prefix to be added to the subject of all posts to this forumfooter- footer to be appended to the bottom of every mail in this forumforumType- whether the forum should be moderated. Moderated -'MF'; Unmoderated - 'UF'moderators- The userId's for persons to be added as moderators for this forum.trustedUsers- The userId's for persons to be added as trusted for this forum.replyTo- The value of reply header for the post's mail in this forum.messageSize- threshold size of message content and attachment of any posts in a forum- Returns:
- a data object of the created forum
- Throws:
SystemFault- when an unexpected system level error occurs.IllegalArgumentFault- thrown when the given parameters are invalid.InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified project id is invalid.PermissionDeniedFault- when the user has insufficient privileges.ObjectAlreadyExistsFault- when an object by this name already exists in the project.InvalidForumTypeFault- when type is other than MF or UF.RemoteException- See Also:
-
prepareCreatePrivateForum2
public void prepareCreatePrivateForum2(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String forumType, String[] moderators, String[] trustedUsers, String replyTo, int messageSize, int emailPosting, int emailMonitoring, int webPosting, String captcha, Object returnValue) Prepare a simulated response to createPrivateForum2 -
createPrivateForum2
public Forum2SoapDO createPrivateForum2(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String forumType, String[] moderators, String[] trustedUsers, String replyTo, int messageSize, int emailPosting, int emailMonitoring, int webPosting, String captcha) throws RemoteException Simulate a call to createPrivateForum2- Specified by:
createPrivateForum2in interfaceIDiscussionAppSoap- Parameters:
sessionId- User session idprojectId- the project in which the forum is to be createdlistName- name of the associated mailing listforumName- Name for the forumdescription- description of the forumlistEnabled- is a mailing list enabled with this forumprefix- prefix to be added to the subject of all posts to this forumfooter- footer to be appended to the bottom of every mail in this forumforumType- whether the forum should be moderated. Moderated -'MF'; Unmoderated - 'UF'moderators- The userId's for persons to be added as moderators for this forum.trustedUsers- The userId's for persons to be added as trusted for this forum.replyTo- The value of reply header for the post's mail in this forum.messageSize- threshold size of message content and attachment of any posts in a forumemailPosting- This will be ignored if mailing list is not enabled.emailMonitoring- This will be ignored if mailing list is not enabled.webPosting- The web posting setting for the forumcaptcha- whether CAPTCHA to be enforced for all web posts, only for logged-out users or for nobody.- Returns:
- a data object of the created forum
- Throws:
SystemFault- when an unexpected system level error occurs.IllegalArgumentFault- thrown when the given parameters are invalid.InvalidSessionFault- when the specified session id is invalid.NoSuchObjectFault- when the specified project id is invalid.PermissionDeniedFault- when the user has insufficient privileges.ObjectAlreadyExistsFault- when an object by this name already exists in the project.InvalidForumTypeFault- when type is other than MF or UF.RemoteException- See Also:
-
prepareCreateForum
public void prepareCreateForum(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String type, boolean isPrivate, String[] moderators, String[] trustedUsers, String replyTo, int messageSize, int emailPosting, int emailMonitoring, int webPosting, String captcha, Object returnValue) Prepare a simulated response to createForum -
createForum
public com.vasoftware.sf.server.services.discussion.ForumDO createForum(String sessionId, String projectId, String listName, String forumName, String description, boolean listEnabled, String prefix, String footer, String type, boolean isPrivate, String[] moderators, String[] trustedUsers, String replyTo, int messageSize, int emailPosting, int emailMonitoring, int webPosting, String captcha) throws RemoteException Simulate a call to createForum -
prepareValidatePermissions
public void prepareValidatePermissions(com.vasoftware.sf.server.types.ProjectPath projectPath, String[] moderators, boolean isModerator, boolean isPrivate, String loggedInUser) Prepare a simulated response to validatePermissions- See Also:
-
DiscussionAppSoap.validatePermissions(com.vasoftware.sf.server.types.ProjectPath, java.lang.String[], boolean, boolean, java.lang.String)
-
prepareValidatePermissions
public void prepareValidatePermissions(com.vasoftware.sf.server.types.ProjectPath projectPath, String[] moderators, boolean isModerator, boolean isPrivate, String loggedInUser, Exception exception) Prepare a simulated response to validatePermissions- See Also:
-
DiscussionAppSoap.validatePermissions(com.vasoftware.sf.server.types.ProjectPath, java.lang.String[], boolean, boolean, java.lang.String)
-
validatePermissions
public void validatePermissions(com.vasoftware.sf.server.types.ProjectPath projectPath, String[] moderators, boolean isModerator, boolean isPrivate, String loggedInUser) throws RemoteException Simulate a call to validatePermissions- Throws:
RemoteException- See Also:
-
DiscussionAppSoap.validatePermissions(com.vasoftware.sf.server.types.ProjectPath, java.lang.String[], boolean, boolean, java.lang.String)
-
prepareValidateEmailPosting
public void prepareValidateEmailPosting(int emailPosting, boolean isPrivate) Prepare a simulated response to validateEmailPosting- See Also:
-
DiscussionAppSoap.validateEmailPosting(int, boolean)
-
prepareValidateEmailPosting
Prepare a simulated response to validateEmailPosting- See Also:
-
DiscussionAppSoap.validateEmailPosting(int, boolean)
-
validateEmailPosting
Simulate a call to validateEmailPosting- Throws:
RemoteException- See Also:
-
DiscussionAppSoap.validateEmailPosting(int, boolean)
-
prepareValidateWebPosting
public void prepareValidateWebPosting(int webPosting, boolean isPrivate) Prepare a simulated response to validateWebPosting- See Also:
-
DiscussionAppSoap.validateWebPosting(int, boolean)
-
prepareValidateWebPosting
Prepare a simulated response to validateWebPosting- See Also:
-
DiscussionAppSoap.validateWebPosting(int, boolean)
-
validateWebPosting
Simulate a call to validateWebPosting- Throws:
RemoteException- See Also:
-
DiscussionAppSoap.validateWebPosting(int, boolean)
-
prepareValidateEmailMonitoring
public void prepareValidateEmailMonitoring(int emailMonitoring, boolean isPrivate) Prepare a simulated response to validateEmailMonitoring- See Also:
-
DiscussionAppSoap.validateEmailMonitoring(int, boolean)
-
prepareValidateEmailMonitoring
public void prepareValidateEmailMonitoring(int emailMonitoring, boolean isPrivate, Exception exception) Prepare a simulated response to validateEmailMonitoring- See Also:
-
DiscussionAppSoap.validateEmailMonitoring(int, boolean)
-
validateEmailMonitoring
Simulate a call to validateEmailMonitoring- Throws:
RemoteException- See Also:
-
DiscussionAppSoap.validateEmailMonitoring(int, boolean)
-
prepareValidateCaptcha
Prepare a simulated response to validateCaptcha- See Also:
-
DiscussionAppSoap.validateCaptcha(java.lang.String)
-
prepareValidateCaptcha
Prepare a simulated response to validateCaptcha- See Also:
-
DiscussionAppSoap.validateCaptcha(java.lang.String)
-
validateCaptcha
Simulate a call to validateCaptcha- Throws:
RemoteException- See Also:
-
DiscussionAppSoap.validateCaptcha(java.lang.String)
-