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_WILDCARD
Fields inherited from class com.collabnet.ce.soap60.webservices.ClientSoapStub
DEFAULT_CLIENT_TIME_OUT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkTagsPermission
(String projectId, String userName, int action, com.vasoftware.sf.server.types.UserSessionKey sessionKey) Simulate a call to checkTagsPermissionSimulate a call to createTagvoid
Simulate 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 getTagByNameboolean
hasSameElements
(Set set1, Set set2) Simulate a call to hasSameElementsSimulate a call to listTagsvoid
prepareCheckTagsPermission
(String projectId, String userName, int action, com.vasoftware.sf.server.types.UserSessionKey sessionKey) Prepare a simulated response to checkTagsPermissionvoid
prepareCheckTagsPermission
(String projectId, String userName, int action, com.vasoftware.sf.server.types.UserSessionKey sessionKey, Exception exception) Prepare a simulated response to checkTagsPermissionvoid
prepareCreateTag
(String sessionId, String projectId, String name, String description, Object returnValue) Prepare a simulated response to createTagvoid
prepareDeleteTag
(String sessionId, String tagId) Prepare a simulated response to deleteTagvoid
prepareDeleteTag
(String sessionId, String tagId, Exception exception) Prepare a simulated response to deleteTagvoid
prepareGetObjectTags
(String sessionId, String objectId, Object returnValue) Prepare a simulated response to getObjectTagsvoid
prepareGetTag
(String sessionId, String tagId, Object returnValue) Prepare a simulated response to getTagvoid
prepareGetTagByName
(String sessionId, String projectId, String tagName, Object returnValue) Prepare a simulated response to getTagByNamevoid
prepareHasSameElements
(Set set1, Set set2, Object returnValue) Prepare a simulated response to hasSameElementsvoid
prepareListTags
(String sessionId, String projectId, Object returnValue) Prepare a simulated response to listTagsvoid
prepareSetObjectTags
(String sessionId, String objectId, String[] tagIds, Object returnValue) Prepare a simulated response to setObjectTagsvoid
prepareToTagIterable
(com.collabnet.ctf.tag.service.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 toTagIterablevoid
prepareUpdateTag
(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.tag.service.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, simulateCall
Methods 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 -
listTags
Simulate a call to listTags- Specified by:
listTags
in interfaceITagAppSoap
- Parameters:
sessionId
- User session idprojectId
- Project identifier.- Returns:
- List of tags.
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the project id is invalid.PermissionDeniedFault
- when the current user does not have permission to view tags.SystemFault
- when an unexpected system level error occurs.RemoteException
- See Also:
-
prepareGetTag
Prepare a simulated response to getTag -
getTag
Simulate a call to getTag- Specified by:
getTag
in interfaceITagAppSoap
- Parameters:
sessionId
- User session idtagId
- Tag id- Returns:
- Tag data
- Throws:
InvalidSessionFault
- when session id is not validPermissionDeniedFault
- when current user does not have permission to view tagsNoSuchObjectFault
- when tag id is not validSystemFault
- when an unexpected system level exception occurs.RemoteException
- See Also:
-
prepareGetTagByName
public void prepareGetTagByName(String sessionId, String projectId, String tagName, Object returnValue) Prepare a simulated response to getTagByName -
getTagByName
public TagSoapDO getTagByName(String sessionId, String projectId, String tagName) throws RemoteException Simulate a call to getTagByName- Specified by:
getTagByName
in interfaceITagAppSoap
- Parameters:
sessionId
- User session idprojectId
- Project identifiertagName
- Tag name- Returns:
- Tag data
- Throws:
InvalidSessionFault
- when session id is not validPermissionDeniedFault
- when current user does not have permission to view tagsNoSuchObjectFault
- when project id/tag name is not validSystemFault
- when an unexpected system level exception occurs.RemoteException
- See Also:
-
prepareCreateTag
public void prepareCreateTag(String sessionId, String projectId, String name, String description, Object returnValue) Prepare a simulated response to createTag -
createTag
public TagSoapDO createTag(String sessionId, String projectId, String name, String description) throws RemoteException Simulate a call to createTag- Specified by:
createTag
in interfaceITagAppSoap
- Parameters:
sessionId
- User session idprojectId
- Project identifiername
- tag's namedescription
- tag's description- Returns:
- New tag's data
- Throws:
InvalidSessionFault
- when session id is not validPermissionDeniedFault
- when current user does not have permission to create tagsNoSuchObjectFault
- when project id is not validIllegalArgumentFault
- when new tag name is not validObjectAlreadyExistsFault
- when another tag exists by the new nameSystemFault
- when an unexpected system level exception occurs.RemoteException
- See Also:
-
prepareUpdateTag
public void prepareUpdateTag(String sessionId, String tagId, String name, String description, Object returnValue) Prepare a simulated response to updateTag -
updateTag
public TagSoapDO updateTag(String sessionId, String tagId, String name, String description) throws RemoteException Simulate a call to updateTag- Specified by:
updateTag
in interfaceITagAppSoap
- Parameters:
sessionId
- User session idtagId
- Tag idname
- Tag's new namedescription
- Tag's new description- Returns:
- Updated tag data
- Throws:
InvalidSessionFault
- when session id is not validPermissionDeniedFault
- when current user does not have permission to edit tagsNoSuchObjectFault
- when tag id is not validVersionMismatchFault
- when there is a version mismatchIllegalArgumentFault
- when new tag name is not validObjectAlreadyExistsFault
- when another tag exists by the new nameSystemFault
- when an unexpected system level exception occurs.RemoteException
- See Also:
-
prepareDeleteTag
Prepare a simulated response to deleteTag -
prepareDeleteTag
Prepare a simulated response to deleteTag -
deleteTag
Simulate a call to deleteTag- Specified by:
deleteTag
in interfaceITagAppSoap
- Parameters:
sessionId
- User session idtagId
- Tag id- Throws:
InvalidSessionFault
- when session id is not validPermissionDeniedFault
- when current user does not have permission to delete tagsNoSuchObjectFault
- when tag id is not validSystemFault
- when an unexpected system level exception occurs.RemoteException
- See Also:
-
prepareGetObjectTags
Prepare a simulated response to getObjectTags -
getObjectTags
Simulate a call to getObjectTags- Specified by:
getObjectTags
in interfaceITagAppSoap
- Parameters:
sessionId
- User session idobjectId
- Object id (artifact or document)- Returns:
- List of tags for the object
- Throws:
InvalidSessionFault
- when session id is not validPermissionDeniedFault
- when current user does not have permission to view the specified objectNoSuchObjectFault
- when object id is not validInvalidOperationFault
- when object id does not represent an artifact or a documentSystemFault
- when an unexpected system level exception occurs.RemoteException
- See Also:
-
prepareSetObjectTags
public void prepareSetObjectTags(String sessionId, String objectId, String[] tagIds, Object returnValue) Prepare a simulated response to setObjectTags -
setObjectTags
public TagSoapList setObjectTags(String sessionId, String objectId, String[] tagIds) throws RemoteException Simulate a call to setObjectTags- Specified by:
setObjectTags
in 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:
InvalidSessionFault
- when session id is not validPermissionDeniedFault
- when current user does not have permission to edit the specified objectNoSuchObjectFault
- when object/tag id is not validIllegalArgumentFault
- when number of tags exceeds allowed limit (10)InvalidOperationFault
- when object id does not represent an artifact or a documentSystemFault
- when an unexpected system level exception occurs.RemoteException
- See Also:
-
prepareHasSameElements
Prepare a simulated response to hasSameElements- See Also:
-
TagAppSoap.hasSameElements(java.util.Set<java.lang.String>, java.util.Set<java.lang.String>)
-
hasSameElements
Simulate a call to hasSameElements- Throws:
RemoteException
- See Also:
-
TagAppSoap.hasSameElements(java.util.Set<java.lang.String>, java.util.Set<java.lang.String>)
-
prepareToTagIterable
public void prepareToTagIterable(com.collabnet.ctf.tag.service.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:
-
TagAppSoap.toTagIterable(com.collabnet.ctf.tag.service.TagService, java.util.Set<java.lang.String>, com.vasoftware.sf.server.types.Path, com.vasoftware.sf.server.types.UserSessionKey)
-
toTagIterable
public Iterable toTagIterable(com.collabnet.ctf.tag.service.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:
-
TagAppSoap.toTagIterable(com.collabnet.ctf.tag.service.TagService, java.util.Set<java.lang.String>, com.vasoftware.sf.server.types.Path, com.vasoftware.sf.server.types.UserSessionKey)
-
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:
-
TagAppSoap.checkTagsPermission(java.lang.String, java.lang.String, int, com.vasoftware.sf.server.types.UserSessionKey)
-
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:
-
TagAppSoap.checkTagsPermission(java.lang.String, java.lang.String, int, com.vasoftware.sf.server.types.UserSessionKey)
-
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:
-
TagAppSoap.checkTagsPermission(java.lang.String, java.lang.String, int, com.vasoftware.sf.server.types.UserSessionKey)
-