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
public class WikiAppSoapMockStub extends ClientSoapMockStub implements IWikiAppSoap
-
-
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 WikiAppSoapMockStub(String soapServerUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttachment(String sessionId, String wikiPageId, String fileId, String filename, String mimetype)Simulate a call to addAttachmentvoidaddAttachments(String sessionId, String wikiPageId, AttachmentSoapDO[] attachments)Simulate a call to addAttachmentsWikiPageSoapDOcreateWikiPage(String sessionId, String projectId, String name, String wikiText, String versionComment)Simulate a call to createWikiPagevoiddeleteWikiPage(String sessionId, String wikiPageId)Simulate a call to deleteWikiPageStringgetFormattedWikiPageText(String sessionId, String wikiPageId)Simulate a call to getFormattedWikiPageTextWikiPageSoapDOgetWikiPageData(String sessionId, String wikiPageId)Simulate a call to getWikiPageDataWikiPageSoapDOgetWikiPageDataByName(String sessionId, String projectId, String wikiPageName)Simulate a call to getWikiPageDataByNameWikiPageSoapListgetWikiPageList(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 setWikiPageData-
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
-
WikiAppSoapMockStub
public WikiAppSoapMockStub(String soapServerUrl)
-
-
Method Detail
-
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:
WikiAppSoap.createWikiPage(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
prepareDeleteWikiPage
public void prepareDeleteWikiPage(String sessionId, String wikiPageId)
Prepare a simulated response to deleteWikiPage
-
prepareDeleteWikiPage
public void prepareDeleteWikiPage(String sessionId, String wikiPageId, Exception exception)
Prepare a simulated response to deleteWikiPage
-
deleteWikiPage
public void deleteWikiPage(String sessionId, String wikiPageId) throws RemoteException
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:
WikiAppSoap.deleteWikiPage(java.lang.String, java.lang.String)
-
prepareGetWikiPageData
public void prepareGetWikiPageData(String sessionId, String wikiPageId, Object returnValue)
Prepare a simulated response to getWikiPageData
-
getWikiPageData
public WikiPageSoapDO getWikiPageData(String sessionId, String wikiPageId) throws RemoteException
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:
WikiAppSoap.getWikiPageData(java.lang.String, java.lang.String)
-
prepareGetFormattedWikiPageText
public void prepareGetFormattedWikiPageText(String sessionId, String wikiPageId, Object returnValue)
Prepare a simulated response to getFormattedWikiPageText
-
getFormattedWikiPageText
public String getFormattedWikiPageText(String sessionId, String wikiPageId) throws RemoteException
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:
WikiAppSoap.getFormattedWikiPageText(java.lang.String, java.lang.String)
-
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:
WikiAppSoap.getWikiPageDataByName(java.lang.String, java.lang.String, java.lang.String)
-
prepareGetWikiPageList
public void prepareGetWikiPageList(String sessionId, String projectId, Object returnValue)
Prepare a simulated response to getWikiPageList
-
getWikiPageList
public WikiPageSoapList getWikiPageList(String sessionId, String projectId) throws RemoteException
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:
WikiAppSoap.getWikiPageList(java.lang.String, java.lang.String)
-
prepareSetWikiPageData
public void prepareSetWikiPageData(String sessionId, WikiPageSoapDO wikiPageData)
Prepare a simulated response to setWikiPageData
-
prepareSetWikiPageData
public void prepareSetWikiPageData(String sessionId, WikiPageSoapDO wikiPageData, Exception exception)
Prepare a simulated response to setWikiPageData
-
setWikiPageData
public void setWikiPageData(String sessionId, WikiPageSoapDO wikiPageData) throws RemoteException
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:
WikiAppSoap.setWikiPageData(java.lang.String, com.collabnet.ce.soap60.webservices.wiki.WikiPageSoapDO)
-
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:
WikiAppSoap.addAttachment(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
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:
WikiAppSoap.addAttachments(java.lang.String, java.lang.String, com.collabnet.ce.soap60.webservices.cemain.AttachmentSoapDO[])
-
-