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_WILDCARD
Fields inherited from class com.collabnet.ce.soap60.webservices.ClientSoapStub
DEFAULT_CLIENT_TIME_OUT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Simulate a call to addAttachmentvoid
addAttachments
(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 createWikiPagevoid
deleteWikiPage
(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 getWikiPageListvoid
prepareAddAttachment
(String sessionId, String wikiPageId, String fileId, String filename, String mimetype) Prepare a simulated response to addAttachmentvoid
prepareAddAttachment
(String sessionId, String wikiPageId, String fileId, String filename, String mimetype, Exception exception) Prepare a simulated response to addAttachmentvoid
prepareAddAttachments
(String sessionId, String wikiPageId, AttachmentSoapDO[] attachments) Prepare a simulated response to addAttachmentsvoid
prepareAddAttachments
(String sessionId, String wikiPageId, AttachmentSoapDO[] attachments, Exception exception) Prepare a simulated response to addAttachmentsvoid
prepareCreateWikiPage
(String sessionId, String projectId, String name, String wikiText, String versionComment, Object returnValue) Prepare a simulated response to createWikiPagevoid
prepareDeleteWikiPage
(String sessionId, String wikiPageId) Prepare a simulated response to deleteWikiPagevoid
prepareDeleteWikiPage
(String sessionId, String wikiPageId, Exception exception) Prepare a simulated response to deleteWikiPagevoid
prepareGetFormattedWikiPageText
(String sessionId, String wikiPageId, Object returnValue) Prepare a simulated response to getFormattedWikiPageTextvoid
prepareGetWikiPageData
(String sessionId, String wikiPageId, Object returnValue) Prepare a simulated response to getWikiPageDatavoid
prepareGetWikiPageDataByName
(String sessionId, String projectId, String wikiPageName, Object returnValue) Prepare a simulated response to getWikiPageDataByNamevoid
prepareGetWikiPageList
(String sessionId, String projectId, Object returnValue) Prepare a simulated response to getWikiPageListvoid
prepareSetWikiPageData
(String sessionId, WikiPageSoapDO wikiPageData) Prepare a simulated response to setWikiPageDatavoid
prepareSetWikiPageData
(String sessionId, WikiPageSoapDO wikiPageData, Exception exception) Prepare a simulated response to setWikiPageDatavoid
setWikiPageData
(String sessionId, WikiPageSoapDO wikiPageData) Simulate a call to setWikiPageDataMethods 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 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:
createWikiPage
in 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:
deleteWikiPage
in 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:
getWikiPageData
in 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:
getFormattedWikiPageText
in 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:
getWikiPageDataByName
in 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:
getWikiPageList
in 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:
setWikiPageData
in 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:
addAttachment
in 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:
addAttachments
in 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:
-