Class NewsAppSoapMockStub
java.lang.Object
com.collabnet.ce.soap60.webservices.ClientSoapStub
com.collabnet.ce.soap60.webservices.ClientSoapMockStub
com.collabnet.ce.soap60.webservices.news.NewsAppSoapMockStub
- All Implemented Interfaces:
INewsAppSoap
-
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 TypeMethodDescriptioncreateNewsPost
(String sessionId, String projectId, String title, String body) Simulate a call to createNewsPostvoid
deleteNewsPost
(String sessionId, String postId) Simulate a call to deleteNewsPostvoid
editNewsPost
(String sessionId, String postId, String title, String body) Simulate a call to editNewsPostSimulate a call to findNewsgetAllNewsPostList
(String sessionId) Simulate a call to getAllNewsPostListgetNewsPostList
(String sessionId, String projectId) Simulate a call to getNewsPostListgetNewsPostSoapList
(List newsDataList) Simulate a call to getNewsPostSoapListvoid
prepareCreateNewsPost
(String sessionId, String projectId, String title, String body, Object returnValue) Prepare a simulated response to createNewsPostvoid
prepareDeleteNewsPost
(String sessionId, String postId) Prepare a simulated response to deleteNewsPostvoid
prepareDeleteNewsPost
(String sessionId, String postId, Exception exception) Prepare a simulated response to deleteNewsPostvoid
prepareEditNewsPost
(String sessionId, String postId, String title, String body) Prepare a simulated response to editNewsPostvoid
prepareEditNewsPost
(String sessionId, String postId, String title, String body, Exception exception) Prepare a simulated response to editNewsPostvoid
prepareFindNews
(String sessionId, String queryString, String projectId, boolean searchAttachments, Object returnValue) Prepare a simulated response to findNewsvoid
prepareGetAllNewsPostList
(String sessionId, Object returnValue) Prepare a simulated response to getAllNewsPostListvoid
prepareGetNewsPostList
(String sessionId, String projectId, Object returnValue) Prepare a simulated response to getNewsPostListvoid
prepareGetNewsPostSoapList
(List newsDataList, Object returnValue) Prepare a simulated response to getNewsPostSoapListMethods 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
-
NewsAppSoapMockStub
-
-
Method Details
-
prepareGetNewsPostList
Prepare a simulated response to getNewsPostList -
getNewsPostList
Simulate a call to getNewsPostList- Specified by:
getNewsPostList
in interfaceINewsAppSoap
- Parameters:
sessionId
- User session id.projectId
- Project id.- Returns:
- List of news posts associated with this 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 level error occurs.RemoteException
- See Also:
-
prepareGetNewsPostSoapList
Prepare a simulated response to getNewsPostSoapList- See Also:
-
NewsAppSoap.getNewsPostSoapList(java.util.List)
-
getNewsPostSoapList
Simulate a call to getNewsPostSoapList- Throws:
RemoteException
- See Also:
-
NewsAppSoap.getNewsPostSoapList(java.util.List)
-
prepareGetAllNewsPostList
Prepare a simulated response to getAllNewsPostList -
getAllNewsPostList
Simulate a call to getAllNewsPostList- Specified by:
getAllNewsPostList
in interfaceINewsAppSoap
- Parameters:
sessionId
- User session id.- Returns:
- List of all news posts associated with user's projects.
- 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 level error occurs.RemoteException
- See Also:
-
prepareCreateNewsPost
public void prepareCreateNewsPost(String sessionId, String projectId, String title, String body, Object returnValue) Prepare a simulated response to createNewsPost -
createNewsPost
public NewsPostSoapDO createNewsPost(String sessionId, String projectId, String title, String body) throws RemoteException Simulate a call to createNewsPost- Specified by:
createNewsPost
in interfaceINewsAppSoap
- Parameters:
sessionId
- User session id.projectId
- Project id.title
- News post title.body
- News post body.- Returns:
- Newly created new item data.
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified project id is invalid.IllegalArgumentFault
- when one or more parameters are invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system level error occurs.RemoteException
- See Also:
-
prepareEditNewsPost
Prepare a simulated response to editNewsPost -
prepareEditNewsPost
public void prepareEditNewsPost(String sessionId, String postId, String title, String body, Exception exception) Prepare a simulated response to editNewsPost -
editNewsPost
public void editNewsPost(String sessionId, String postId, String title, String body) throws RemoteException Simulate a call to editNewsPost- Specified by:
editNewsPost
in interfaceINewsAppSoap
- Parameters:
sessionId
- User session id.postId
- Post id.title
- News post title.body
- News post body.- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified post id is invalid.IllegalArgumentFault
- when one or more parameters are invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system level error occurs.RemoteException
- See Also:
-
prepareDeleteNewsPost
Prepare a simulated response to deleteNewsPost -
prepareDeleteNewsPost
Prepare a simulated response to deleteNewsPost -
deleteNewsPost
Simulate a call to deleteNewsPost- Specified by:
deleteNewsPost
in interfaceINewsAppSoap
- Parameters:
sessionId
- User session id.postId
- News post id.- 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 level error occurs.RemoteException
- See Also:
-
prepareFindNews
public void prepareFindNews(String sessionId, String queryString, String projectId, boolean searchAttachments, Object returnValue) Prepare a simulated response to findNews -
findNews
public NewsPostSoapList findNews(String sessionId, String queryString, String projectId, boolean searchAttachments) throws RemoteException Simulate a call to findNews- Specified by:
findNews
in interfaceINewsAppSoap
- Parameters:
sessionId
- User session id.queryString
- Query string.projectId
- The project in which to find news 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.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:
-