Class TagAppSoapMockStub
java.lang.Object
com.collabnet.ce.soap60.webservices.ClientSoapStub
com.collabnet.ce.soap60.webservices.ClientSoapMockStub
com.collabnet.ce.soap60.webservices.tag.TagAppSoapMockStub
- All Implemented Interfaces:
ITagAppSoap
-
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 TypeMethodDescriptionvoidcheckTagsPermission(String projectId, String userName, int action, com.vasoftware.sf.server.types.UserSessionKey sessionKey) Simulate a call to checkTagsPermissionSimulate a call to createTagvoidSimulate a call to deleteTaggetObjectTags(String sessionId, String objectId) Simulate a call to getObjectTagsSimulate a call to getTaggetTagByName(String sessionId, String projectId, String tagName) Simulate a call to getTagByNamebooleanhasSameElements(Set set1, Set set2) Simulate a call to hasSameElementsSimulate a call to listTagsvoidprepareCheckTagsPermission(String projectId, String userName, int action, com.vasoftware.sf.server.types.UserSessionKey sessionKey) Prepare a simulated response to checkTagsPermissionvoidprepareCheckTagsPermission(String projectId, String userName, int action, com.vasoftware.sf.server.types.UserSessionKey sessionKey, Exception exception) Prepare a simulated response to checkTagsPermissionvoidprepareCreateTag(String sessionId, String projectId, String name, String description, Object returnValue) Prepare a simulated response to createTagvoidprepareDeleteTag(String sessionId, String tagId) Prepare a simulated response to deleteTagvoidprepareDeleteTag(String sessionId, String tagId, Exception exception) Prepare a simulated response to deleteTagvoidprepareGetObjectTags(String sessionId, String objectId, Object returnValue) Prepare a simulated response to getObjectTagsvoidprepareGetTag(String sessionId, String tagId, Object returnValue) Prepare a simulated response to getTagvoidprepareGetTagByName(String sessionId, String projectId, String tagName, Object returnValue) Prepare a simulated response to getTagByNamevoidprepareHasSameElements(Set set1, Set set2, Object returnValue) Prepare a simulated response to hasSameElementsvoidprepareListTags(String sessionId, String projectId, Object returnValue) Prepare a simulated response to listTagsvoidprepareSetObjectTags(String sessionId, String objectId, String[] tagIds, Object returnValue) Prepare a simulated response to setObjectTagsvoidprepareToTagIterable(com.collabnet.ctf.service.tag.TagService tagSvc, Set tagIds, com.vasoftware.sf.server.types.Path objPath, com.vasoftware.sf.server.types.UserSessionKey sessionKey, Object returnValue) Prepare a simulated response to toTagIterablevoidprepareUpdateTag(String sessionId, String tagId, String name, String description, Object returnValue) Prepare a simulated response to updateTagsetObjectTags(String sessionId, String objectId, String[] tagIds) Simulate a call to setObjectTagstoTagIterable(com.collabnet.ctf.service.tag.TagService tagSvc, Set tagIds, com.vasoftware.sf.server.types.Path objPath, com.vasoftware.sf.server.types.UserSessionKey sessionKey) Simulate a call to toTagIterableSimulate a call to updateTagMethods 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
-
TagAppSoapMockStub
-
-
Method Details
-
prepareListTags
Prepare a simulated response to listTags- See Also:
-
listTags
Simulate a call to listTags- Specified by:
listTagsin interfaceITagAppSoap- Parameters:
sessionId- User session idprojectId- Project identifier.- Returns:
- List of tags.
- Throws:
RemoteException- See Also:
-
prepareGetTag
Prepare a simulated response to getTag- See Also:
-
getTag
Simulate a call to getTag- Specified by:
getTagin interfaceITagAppSoap- Parameters:
sessionId- User session idtagId- Tag id- Returns:
- Tag data
- Throws:
RemoteException- See Also:
-
prepareGetTagByName
public void prepareGetTagByName(String sessionId, String projectId, String tagName, Object returnValue) Prepare a simulated response to getTagByName- See Also:
-
getTagByName
public TagSoapDO getTagByName(String sessionId, String projectId, String tagName) throws RemoteException Simulate a call to getTagByName- Specified by:
getTagByNamein interfaceITagAppSoap- Parameters:
sessionId- User session idprojectId- Project identifiertagName- Tag name- Returns:
- Tag data
- Throws:
RemoteException- See Also:
-
prepareCreateTag
public void prepareCreateTag(String sessionId, String projectId, String name, String description, Object returnValue) Prepare a simulated response to createTag- See Also:
-
createTag
public TagSoapDO createTag(String sessionId, String projectId, String name, String description) throws RemoteException Simulate a call to createTag- Specified by:
createTagin interfaceITagAppSoap- Parameters:
sessionId- User session idprojectId- Project identifiername- tag's namedescription- tag's description- Returns:
- New tag's data
- Throws:
RemoteException- See Also:
-
prepareUpdateTag
public void prepareUpdateTag(String sessionId, String tagId, String name, String description, Object returnValue) Prepare a simulated response to updateTag- See Also:
-
updateTag
public TagSoapDO updateTag(String sessionId, String tagId, String name, String description) throws RemoteException Simulate a call to updateTag- Specified by:
updateTagin interfaceITagAppSoap- Parameters:
sessionId- User session idtagId- Tag idname- Tag's new namedescription- Tag's new description- Returns:
- Updated tag data
- Throws:
RemoteException- See Also:
-
prepareDeleteTag
Prepare a simulated response to deleteTag- See Also:
-
prepareDeleteTag
Prepare a simulated response to deleteTag- See Also:
-
deleteTag
Simulate a call to deleteTag- Specified by:
deleteTagin interfaceITagAppSoap- Parameters:
sessionId- User session idtagId- Tag id- Throws:
RemoteException- See Also:
-
prepareGetObjectTags
Prepare a simulated response to getObjectTags- See Also:
-
getObjectTags
Simulate a call to getObjectTags- Specified by:
getObjectTagsin interfaceITagAppSoap- Parameters:
sessionId- User session idobjectId- Object id (artifact or document)- Returns:
- List of tags for the object
- Throws:
RemoteException- See Also:
-
prepareSetObjectTags
public void prepareSetObjectTags(String sessionId, String objectId, String[] tagIds, Object returnValue) Prepare a simulated response to setObjectTags- See Also:
-
setObjectTags
public TagSoapList setObjectTags(String sessionId, String objectId, String[] tagIds) throws RemoteException Simulate a call to setObjectTags- Specified by:
setObjectTagsin interfaceITagAppSoap- Parameters:
sessionId- User session idobjectId- Object id (artifact or document)tagIds- Array of tag ids (null or empty will remove the existing tags)- Returns:
- Updated list of tags for the object
- Throws:
RemoteException- See Also:
-
prepareHasSameElements
Prepare a simulated response to hasSameElements- See Also:
-
hasSameElements
Simulate a call to hasSameElements- Throws:
RemoteException- See Also:
-
prepareToTagIterable
public void prepareToTagIterable(com.collabnet.ctf.service.tag.TagService tagSvc, Set tagIds, com.vasoftware.sf.server.types.Path objPath, com.vasoftware.sf.server.types.UserSessionKey sessionKey, Object returnValue) Prepare a simulated response to toTagIterable- See Also:
-
toTagIterable
public Iterable toTagIterable(com.collabnet.ctf.service.tag.TagService tagSvc, Set tagIds, com.vasoftware.sf.server.types.Path objPath, com.vasoftware.sf.server.types.UserSessionKey sessionKey) throws RemoteException Simulate a call to toTagIterable- Throws:
RemoteException- See Also:
-
prepareCheckTagsPermission
public void prepareCheckTagsPermission(String projectId, String userName, int action, com.vasoftware.sf.server.types.UserSessionKey sessionKey) Prepare a simulated response to checkTagsPermission- See Also:
-
prepareCheckTagsPermission
public void prepareCheckTagsPermission(String projectId, String userName, int action, com.vasoftware.sf.server.types.UserSessionKey sessionKey, Exception exception) Prepare a simulated response to checkTagsPermission- See Also:
-
checkTagsPermission
public void checkTagsPermission(String projectId, String userName, int action, com.vasoftware.sf.server.types.UserSessionKey sessionKey) throws RemoteException Simulate a call to checkTagsPermission- Throws:
RemoteException- See Also:
-