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
public class DiscussionAppSoapMockStub extends ClientSoapMockStub implements IDiscussionAppSoap
-
-
Field Summary
-
Fields inherited from class com.collabnet.ce.soap60.webservices.ClientSoapMockStub
DATE_WILDCARD, GUIDKEY_WILDCARD, INTEGER_WILDCARD, LONG_WILDCARD, STRING_WILDCARD
-
Fields inherited from class com.collabnet.ce.soap60.webservices.ClientSoapStub
DEFAULT_CLIENT_TIME_OUT
-
-
Constructor Summary
Constructors Constructor Description DiscussionAppSoapMockStub(String soapServerUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.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 createForumForumSoapDOcreateForum(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 createForumForum2SoapDOcreateForum2(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 createForum2PostSoapDOcreatePost(String sessionId, String parentPostId, String title, String message, String attachmentFileName, String attachmentMimeType, String attachmentFileId, String ccRecipients)Simulate a call to createPostPostSoapDOcreatePost2(String sessionId, String parentPostId, String title, String message, AttachmentSoapDO[] attachments, String ccRecipients)Simulate a call to createPost2ForumSoapDOcreatePrivateForum(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 createPrivateForumForum2SoapDOcreatePrivateForum2(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 createPrivateForum2TopicSoapDOcreateTopic(String sessionId, String forumId, String title, String message, String attachmentFileName, String attachmentMimeType, String attachmentFileId, String ccRecipients)Simulate a call to createTopicTopicSoapDOcreateTopic2(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 deleteTopicPostSoapListfindPosts(String sessionId, String queryString, String projectId, boolean searchAttachments)Simulate a call to findPostsForumSoapListgetForumList(String sessionId, String projectId)Simulate a call to getForumListForum2SoapListgetForumList2(String sessionId, String projectId)Simulate a call to getForumList2PostSoapListgetPostList(String sessionId, String topicId)Simulate a call to getPostListTopicSoapListgetTopicList(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 validateWebPosting-
Methods inherited from class com.collabnet.ce.soap60.webservices.ClientSoapMockStub
addSimulatedResult, addSimulatedResult, addSimulatedResult, getCallCount, getCallParameters, getUnusedCalls, simulateCall
-
Methods inherited from class com.collabnet.ce.soap60.webservices.ClientSoapStub
getServiceCall, getSoapServer, getTimeout, setTimeout, soapParam
-
-
-
-
Constructor Detail
-
DiscussionAppSoapMockStub
public DiscussionAppSoapMockStub(String soapServerUrl)
-
-
Method Detail
-
prepareGetForumList
public void prepareGetForumList(String sessionId, String projectId, Object returnValue)
Prepare a simulated response to getForumList
-
getForumList
public ForumSoapList getForumList(String sessionId, String projectId) throws RemoteException
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:
DiscussionAppSoap.getForumList(java.lang.String, java.lang.String)
-
prepareGetForumList2
public void prepareGetForumList2(String sessionId, String projectId, Object returnValue)
Prepare a simulated response to getForumList2
-
getForumList2
public Forum2SoapList getForumList2(String sessionId, String projectId) throws RemoteException
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:
DiscussionAppSoap.getForumList2(java.lang.String, java.lang.String)
-
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:
DiscussionAppSoap.createTopic(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
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:
DiscussionAppSoap.createTopic2(java.lang.String, java.lang.String, java.lang.String, java.lang.String, com.collabnet.ce.soap60.webservices.cemain.AttachmentSoapDO[], java.lang.String)
-
prepareDeleteTopic
public void prepareDeleteTopic(String sessionId, String topicId)
Prepare a simulated response to deleteTopic
-
prepareDeleteTopic
public void prepareDeleteTopic(String sessionId, String topicId, Exception exception)
Prepare a simulated response to deleteTopic
-
deleteTopic
public void deleteTopic(String sessionId, String topicId) throws RemoteException
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:
DiscussionAppSoap.deleteTopic(java.lang.String, java.lang.String)
-
prepareGetTopicList
public void prepareGetTopicList(String sessionId, String forumId, Object returnValue)
Prepare a simulated response to getTopicList
-
getTopicList
public TopicSoapList getTopicList(String sessionId, String forumId) throws RemoteException
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:
DiscussionAppSoap.getTopicList(java.lang.String, java.lang.String)
-
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:
DiscussionAppSoap.createPost(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
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:
DiscussionAppSoap.createPost2(java.lang.String, java.lang.String, java.lang.String, java.lang.String, com.collabnet.ce.soap60.webservices.cemain.AttachmentSoapDO[], java.lang.String)
-
prepareDeletePost
public void prepareDeletePost(String sessionId, String postId)
Prepare a simulated response to deletePost
-
prepareDeletePost
public void prepareDeletePost(String sessionId, String postId, Exception exception)
Prepare a simulated response to deletePost
-
deletePost
public void deletePost(String sessionId, String postId) throws RemoteException
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:
DiscussionAppSoap.deletePost(java.lang.String, java.lang.String)
-
prepareGetPostList
public void prepareGetPostList(String sessionId, String topicId, Object returnValue)
Prepare a simulated response to getPostList
-
getPostList
public PostSoapList getPostList(String sessionId, String topicId) throws RemoteException
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:
DiscussionAppSoap.getPostList(java.lang.String, java.lang.String)
-
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:
DiscussionAppSoap.findPosts(java.lang.String, java.lang.String, java.lang.String, boolean)
-
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:
DiscussionAppSoap.createForum(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String[], java.lang.String[], java.lang.String, int)
-
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:
DiscussionAppSoap.createForum2(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String[], java.lang.String[], java.lang.String, int, int, int, int, java.lang.String)
-
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:
DiscussionAppSoap.createPrivateForum(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String[], java.lang.String[], java.lang.String, int)
-
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:
DiscussionAppSoap.createPrivateForum2(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String[], java.lang.String[], java.lang.String, int, int, int, int, java.lang.String)
-
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
-
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
-
validatePermissions
public void validatePermissions(com.vasoftware.sf.server.types.ProjectPath projectPath, String[] moderators, boolean isModerator, boolean isPrivate, String loggedInUser) throws RemoteExceptionSimulate a call to validatePermissions
-
prepareValidateEmailPosting
public void prepareValidateEmailPosting(int emailPosting, boolean isPrivate)Prepare a simulated response to validateEmailPosting
-
prepareValidateEmailPosting
public void prepareValidateEmailPosting(int emailPosting, boolean isPrivate, Exception exception)Prepare a simulated response to validateEmailPosting
-
validateEmailPosting
public void validateEmailPosting(int emailPosting, boolean isPrivate) throws RemoteExceptionSimulate 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
-
prepareValidateWebPosting
public void prepareValidateWebPosting(int webPosting, boolean isPrivate, Exception exception)Prepare a simulated response to validateWebPosting
-
validateWebPosting
public void validateWebPosting(int webPosting, boolean isPrivate) throws RemoteExceptionSimulate 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
-
prepareValidateEmailMonitoring
public void prepareValidateEmailMonitoring(int emailMonitoring, boolean isPrivate, Exception exception)Prepare a simulated response to validateEmailMonitoring
-
validateEmailMonitoring
public void validateEmailMonitoring(int emailMonitoring, boolean isPrivate) throws RemoteExceptionSimulate a call to validateEmailMonitoring- Throws:
RemoteException- See Also:
DiscussionAppSoap.validateEmailMonitoring(int, boolean)
-
prepareValidateCaptcha
public void prepareValidateCaptcha(String captcha)
Prepare a simulated response to validateCaptcha
-
prepareValidateCaptcha
public void prepareValidateCaptcha(String captcha, Exception exception)
Prepare a simulated response to validateCaptcha
-
validateCaptcha
public void validateCaptcha(String captcha) throws RemoteException
Simulate a call to validateCaptcha- Throws:
RemoteException- See Also:
DiscussionAppSoap.validateCaptcha(java.lang.String)
-
-