public class TagAppSoapMockStub extends com.collabnet.ce.soap60.webservices.ClientSoapMockStub implements ITagAppSoap
Constructor and Description |
---|
TagAppSoapMockStub(String soapServerUrl) |
Modifier and Type | Method and Description |
---|---|
TagSoapDO |
createTag(String sessionId,
String projectId,
String name,
String description)
Simulate a call to createTag
|
void |
deleteTag(String sessionId,
String tagId)
Simulate a call to deleteTag
|
TagSoapList |
getObjectTags(String sessionId,
String objectId)
Simulate a call to getObjectTags
|
TagSoapDO |
getTag(String sessionId,
String tagId)
Simulate a call to getTag
|
TagSoapDO |
getTagByName(String sessionId,
String projectId,
String tagName)
Simulate a call to getTagByName
|
TagSoapList |
listTags(String sessionId,
String projectId)
Simulate a call to listTags
|
void |
prepareCreateTag(String sessionId,
String projectId,
String name,
String description,
Object returnValue)
Prepare a simulated response to createTag
|
void |
prepareDeleteTag(String sessionId,
String tagId)
Prepare a simulated response to deleteTag
|
void |
prepareDeleteTag(String sessionId,
String tagId,
Exception exception)
Prepare a simulated response to deleteTag
|
void |
prepareGetObjectTags(String sessionId,
String objectId,
Object returnValue)
Prepare a simulated response to getObjectTags
|
void |
prepareGetTag(String sessionId,
String tagId,
Object returnValue)
Prepare a simulated response to getTag
|
void |
prepareGetTagByName(String sessionId,
String projectId,
String tagName,
Object returnValue)
Prepare a simulated response to getTagByName
|
void |
prepareListTags(String sessionId,
String projectId,
Object returnValue)
Prepare a simulated response to listTags
|
void |
prepareUpdateTag(String sessionId,
String tagId,
String name,
String description,
Object returnValue)
Prepare a simulated response to updateTag
|
TagSoapDO |
updateTag(String sessionId,
String tagId,
String name,
String description)
Simulate a call to updateTag
|
addSimulatedResult, addSimulatedResult, addSimulatedResult, getCallCount, getCallParameters, getUnusedCalls, simulateCall
public TagAppSoapMockStub(String soapServerUrl)
public void prepareListTags(String sessionId, String projectId, Object returnValue)
TagAppSoap.listTags(java.lang.String, java.lang.String)
public TagSoapList listTags(String sessionId, String projectId) throws RemoteException
listTags
in interface ITagAppSoap
sessionId
- User session idprojectId
- Project identifier.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the project id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the current user does not have permission to view tags.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level error occurs.RemoteException
TagAppSoap.listTags(java.lang.String, java.lang.String)
public void prepareGetTag(String sessionId, String tagId, Object returnValue)
TagAppSoap.getTag(java.lang.String, java.lang.String)
public TagSoapDO getTag(String sessionId, String tagId) throws RemoteException
getTag
in interface ITagAppSoap
sessionId
- User session idtagId
- Tag idcom.collabnet.ce.soap60.fault.InvalidSessionFault
- when session id is not validcom.collabnet.ce.soap60.fault.PermissionDeniedFault
- when current user does not have permission to view tagscom.collabnet.ce.soap60.fault.NoSuchObjectFault
- when tag id is not validcom.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level exception occurs.RemoteException
TagAppSoap.getTag(java.lang.String, java.lang.String)
public void prepareGetTagByName(String sessionId, String projectId, String tagName, Object returnValue)
TagAppSoap.getTagByName(java.lang.String, java.lang.String, java.lang.String)
public TagSoapDO getTagByName(String sessionId, String projectId, String tagName) throws RemoteException
getTagByName
in interface ITagAppSoap
sessionId
- User session idprojectId
- Project identifiertagName
- Tag namecom.collabnet.ce.soap60.fault.InvalidSessionFault
- when session id is not validcom.collabnet.ce.soap60.fault.PermissionDeniedFault
- when current user does not have permission to view tagscom.collabnet.ce.soap60.fault.NoSuchObjectFault
- when project id/tag name is not validcom.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level exception occurs.RemoteException
TagAppSoap.getTagByName(java.lang.String, java.lang.String, java.lang.String)
public void prepareCreateTag(String sessionId, String projectId, String name, String description, Object returnValue)
TagAppSoap.createTag(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public TagSoapDO createTag(String sessionId, String projectId, String name, String description) throws RemoteException
createTag
in interface ITagAppSoap
sessionId
- User session idprojectId
- Project identifiername
- tag's namedescription
- tag's descriptioncom.collabnet.ce.soap60.fault.InvalidSessionFault
- when session id is not validcom.collabnet.ce.soap60.fault.PermissionDeniedFault
- when current user does not have permission to create tagscom.collabnet.ce.soap60.fault.NoSuchObjectFault
- when project id is not validcom.collabnet.ce.soap60.fault.IllegalArgumentFault
- when new tag name is not validcom.collabnet.ce.soap60.fault.ObjectAlreadyExistsFault
- when another tag exists by the new namecom.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level exception occurs.RemoteException
TagAppSoap.createTag(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public void prepareUpdateTag(String sessionId, String tagId, String name, String description, Object returnValue)
TagAppSoap.updateTag(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public TagSoapDO updateTag(String sessionId, String tagId, String name, String description) throws RemoteException
updateTag
in interface ITagAppSoap
sessionId
- User session idtagId
- Tag idname
- Tag's new namedescription
- Tag's new descriptioncom.collabnet.ce.soap60.fault.InvalidSessionFault
- when session id is not validcom.collabnet.ce.soap60.fault.PermissionDeniedFault
- when current user does not have permission to edit tagscom.collabnet.ce.soap60.fault.NoSuchObjectFault
- when tag id is not validcom.collabnet.ce.soap60.fault.VersionMismatchFault
- when there is a version mismatchcom.collabnet.ce.soap60.fault.IllegalArgumentFault
- when new tag name is not validcom.collabnet.ce.soap60.fault.ObjectAlreadyExistsFault
- when another tag exists by the new namecom.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level exception occurs.RemoteException
TagAppSoap.updateTag(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public void prepareDeleteTag(String sessionId, String tagId)
TagAppSoap.deleteTag(java.lang.String, java.lang.String)
public void prepareDeleteTag(String sessionId, String tagId, Exception exception)
TagAppSoap.deleteTag(java.lang.String, java.lang.String)
public void deleteTag(String sessionId, String tagId) throws RemoteException
deleteTag
in interface ITagAppSoap
sessionId
- User session idtagId
- Tag idcom.collabnet.ce.soap60.fault.InvalidSessionFault
- when session id is not validcom.collabnet.ce.soap60.fault.PermissionDeniedFault
- when current user does not have permission to delete tagscom.collabnet.ce.soap60.fault.NoSuchObjectFault
- when tag id is not validcom.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level exception occurs.RemoteException
TagAppSoap.deleteTag(java.lang.String, java.lang.String)
public void prepareGetObjectTags(String sessionId, String objectId, Object returnValue)
TagAppSoap.getObjectTags(java.lang.String, java.lang.String)
public TagSoapList getObjectTags(String sessionId, String objectId) throws RemoteException
getObjectTags
in interface ITagAppSoap
sessionId
- User session idobjectId
- Object id (artifact or document)com.collabnet.ce.soap60.fault.InvalidSessionFault
- when session id is not validcom.collabnet.ce.soap60.fault.PermissionDeniedFault
- when current user does not have permission to view the specified objectcom.collabnet.ce.soap60.fault.NoSuchObjectFault
- when object id is not validcom.collabnet.ce.soap60.fault.InvalidOperationFault
- when object id does not represent an artifact or a documentcom.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system level exception occurs.RemoteException
TagAppSoap.getObjectTags(java.lang.String, java.lang.String)
Copyright © 2017 CollabNet. All Rights Reserved.