Class WikiAppSoapMockStub
java.lang.Object
com.collabnet.ce.soap60.webservices.ClientSoapStub
com.collabnet.ce.soap60.webservices.ClientSoapMockStub
com.collabnet.ce.soap60.webservices.wiki.WikiAppSoapMockStub
- All Implemented Interfaces:
IWikiAppSoap
-
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 TypeMethodDescriptionvoidSimulate a call to addAttachmentvoidaddAttachments(String sessionId, String wikiPageId, AttachmentSoapDO[] attachments) Simulate a call to addAttachmentscreateWikiPage(String sessionId, String projectId, String name, String wikiText, String versionComment) Simulate a call to createWikiPagevoiddeleteWikiPage(String sessionId, String wikiPageId) Simulate a call to deleteWikiPagegetFormattedWikiPageText(String sessionId, String wikiPageId) Simulate a call to getFormattedWikiPageTextgetWikiPageData(String sessionId, String wikiPageId) Simulate a call to getWikiPageDatagetWikiPageDataByName(String sessionId, String projectId, String wikiPageName) Simulate a call to getWikiPageDataByNamegetWikiPageList(String sessionId, String projectId) Simulate a call to getWikiPageListvoidprepareAddAttachment(String sessionId, String wikiPageId, String fileId, String filename, String mimetype) Prepare a simulated response to addAttachmentvoidprepareAddAttachment(String sessionId, String wikiPageId, String fileId, String filename, String mimetype, Exception exception) Prepare a simulated response to addAttachmentvoidprepareAddAttachments(String sessionId, String wikiPageId, AttachmentSoapDO[] attachments) Prepare a simulated response to addAttachmentsvoidprepareAddAttachments(String sessionId, String wikiPageId, AttachmentSoapDO[] attachments, Exception exception) Prepare a simulated response to addAttachmentsvoidprepareCreateWikiPage(String sessionId, String projectId, String name, String wikiText, String versionComment, Object returnValue) Prepare a simulated response to createWikiPagevoidprepareDeleteWikiPage(String sessionId, String wikiPageId) Prepare a simulated response to deleteWikiPagevoidprepareDeleteWikiPage(String sessionId, String wikiPageId, Exception exception) Prepare a simulated response to deleteWikiPagevoidprepareGetFormattedWikiPageText(String sessionId, String wikiPageId, Object returnValue) Prepare a simulated response to getFormattedWikiPageTextvoidprepareGetWikiPageData(String sessionId, String wikiPageId, Object returnValue) Prepare a simulated response to getWikiPageDatavoidprepareGetWikiPageDataByName(String sessionId, String projectId, String wikiPageName, Object returnValue) Prepare a simulated response to getWikiPageDataByNamevoidprepareGetWikiPageList(String sessionId, String projectId, Object returnValue) Prepare a simulated response to getWikiPageListvoidprepareSetWikiPageData(String sessionId, WikiPageSoapDO wikiPageData) Prepare a simulated response to setWikiPageDatavoidprepareSetWikiPageData(String sessionId, WikiPageSoapDO wikiPageData, Exception exception) Prepare a simulated response to setWikiPageDatavoidsetWikiPageData(String sessionId, WikiPageSoapDO wikiPageData) Simulate a call to setWikiPageDataMethods 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
-
WikiAppSoapMockStub
-
-
Method Details
-
prepareCreateWikiPage
public void prepareCreateWikiPage(String sessionId, String projectId, String name, String wikiText, String versionComment, Object returnValue) Prepare a simulated response to createWikiPage -
createWikiPage
public WikiPageSoapDO createWikiPage(String sessionId, String projectId, String name, String wikiText, String versionComment) throws RemoteException Simulate a call to createWikiPage- Specified by:
createWikiPagein interfaceIWikiAppSoap- Parameters:
sessionId- SOAP session id.projectId- Project in which to create a wiki page.name- Wiki page name.wikiText- Wiki text for the page.versionComment- Wiki page version comment.- Returns:
- Wiki page data object.
- Throws:
InvalidSessionFault- when the sessionId is invalid.PermissionDeniedFault- when permission is denied for the specified operation.NoSuchObjectFault- when the specified object is invalid.IllegalArgumentFault- when one or more of the parameters are invalid.ObjectAlreadyExistsFault- when a page with the specified name already exists in the projectSystemFault- when an unexpected system error occurs.RemoteException- See Also:
-
prepareDeleteWikiPage
Prepare a simulated response to deleteWikiPage -
prepareDeleteWikiPage
Prepare a simulated response to deleteWikiPage -
deleteWikiPage
Simulate a call to deleteWikiPage- Specified by:
deleteWikiPagein interfaceIWikiAppSoap- Parameters:
sessionId- User session id.wikiPageId- Wiki page id.- Throws:
InvalidSessionFault- when the sessionId is invalid.PermissionDeniedFault- when permission is denied for the specified operation.NoSuchObjectFault- when the specified object is invalid.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
-
prepareGetWikiPageData
Prepare a simulated response to getWikiPageData -
getWikiPageData
Simulate a call to getWikiPageData- Specified by:
getWikiPageDatain interfaceIWikiAppSoap- Parameters:
sessionId- User session id.wikiPageId- Wiki page id.- Returns:
- Wiki page data object.
- Throws:
IllegalArgumentFault- when the method argument(s) are invalidInvalidSessionFault- when the sessionId is invalid.PermissionDeniedFault- when permission is denied for the specified operation.NoSuchObjectFault- when the specified object is invalid.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
-
prepareGetFormattedWikiPageText
public void prepareGetFormattedWikiPageText(String sessionId, String wikiPageId, Object returnValue) Prepare a simulated response to getFormattedWikiPageText -
getFormattedWikiPageText
Simulate a call to getFormattedWikiPageText- Specified by:
getFormattedWikiPageTextin interfaceIWikiAppSoap- Parameters:
sessionId- User session id.wikiPageId- Wiki page id.- Returns:
- Wiki page text in formatted form.
- Throws:
IllegalArgumentFault- when the method argument(s) are invalidInvalidSessionFault- when the sessionId is invalid.PermissionDeniedFault- when permission is denied for the specified operation.NoSuchObjectFault- when the specified object is invalid.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
-
prepareGetWikiPageDataByName
public void prepareGetWikiPageDataByName(String sessionId, String projectId, String wikiPageName, Object returnValue) Prepare a simulated response to getWikiPageDataByName -
getWikiPageDataByName
public WikiPageSoapDO getWikiPageDataByName(String sessionId, String projectId, String wikiPageName) throws RemoteException Simulate a call to getWikiPageDataByName- Specified by:
getWikiPageDataByNamein interfaceIWikiAppSoap- Parameters:
sessionId- User session id.projectId- Project id.wikiPageName- Name of the wiki page.- Returns:
- Wiki page text in formatted form.
- Throws:
IllegalArgumentFault- when the method argument(s) are invalidInvalidSessionFault- when the sessionId is invalid.PermissionDeniedFault- when permission is denied for the specified operation.NoSuchObjectFault- when the specified object is invalid.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
-
prepareGetWikiPageList
Prepare a simulated response to getWikiPageList -
getWikiPageList
Simulate a call to getWikiPageList- Specified by:
getWikiPageListin interfaceIWikiAppSoap- Parameters:
sessionId- User session id.projectId- Project id.- Returns:
- wiki page list
- Throws:
IllegalArgumentFault- when the method argument(s) are invalidInvalidSessionFault- when the sessionId is invalid.PermissionDeniedFault- when permission is denied for the specified operation.NoSuchObjectFault- when the specified object is invalid.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
-
prepareSetWikiPageData
Prepare a simulated response to setWikiPageData -
prepareSetWikiPageData
public void prepareSetWikiPageData(String sessionId, WikiPageSoapDO wikiPageData, Exception exception) Prepare a simulated response to setWikiPageData -
setWikiPageData
Simulate a call to setWikiPageData- Specified by:
setWikiPageDatain interfaceIWikiAppSoap- Parameters:
sessionId- User session id.wikiPageData- Wiki page data object.- Throws:
InvalidSessionFault- when the sessionId is invalid.PermissionDeniedFault- when permission is denied for the specified operation.NoSuchObjectFault- when the specified object is invalid.IllegalArgumentFault- when wiki page data information is invalid.VersionMismatchFault- when wiki page data is stale.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
-
prepareAddAttachment
public void prepareAddAttachment(String sessionId, String wikiPageId, String fileId, String filename, String mimetype) Prepare a simulated response to addAttachment -
prepareAddAttachment
public void prepareAddAttachment(String sessionId, String wikiPageId, String fileId, String filename, String mimetype, Exception exception) Prepare a simulated response to addAttachment -
addAttachment
public void addAttachment(String sessionId, String wikiPageId, String fileId, String filename, String mimetype) throws RemoteException Simulate a call to addAttachment- Specified by:
addAttachmentin interfaceIWikiAppSoap- Parameters:
sessionId- User session id.wikiPageId- Wiki page id.fileId- Attachment file ID returned by FileStorageApp/SimpleFileStorageApp webservice.filename- Attachment file name.mimetype- Attachment file type.- Throws:
InvalidSessionFault- when the sessionId is invalid.PermissionDeniedFault- when permission is denied for the specified operation.NoSuchObjectFault- when the specified object is invalid.NoSuchVersionFault- when the specified version is invalid.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
-
prepareAddAttachments
public void prepareAddAttachments(String sessionId, String wikiPageId, AttachmentSoapDO[] attachments) Prepare a simulated response to addAttachments -
prepareAddAttachments
public void prepareAddAttachments(String sessionId, String wikiPageId, AttachmentSoapDO[] attachments, Exception exception) Prepare a simulated response to addAttachments -
addAttachments
public void addAttachments(String sessionId, String wikiPageId, AttachmentSoapDO[] attachments) throws RemoteException Simulate a call to addAttachments- Specified by:
addAttachmentsin interfaceIWikiAppSoap- Parameters:
sessionId- User session id.wikiPageId- Wiki page id.attachments- AttachmentSoapDO.- Throws:
InvalidSessionFault- when the sessionId is invalid.PermissionDeniedFault- when permission is denied for the specified operation.NoSuchObjectFault- when the specified object is invalid.NoSuchVersionFault- when the specified version is invalid.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
-