Class IntegrationDataAppSoapMockStub
java.lang.Object
com.collabnet.ce.soap60.webservices.ClientSoapStub
com.collabnet.ce.soap60.webservices.ClientSoapMockStub
com.collabnet.ce.soap60.webservices.integrationdata.IntegrationDataAppSoapMockStub
- All Implemented Interfaces:
IIntegrationDataAppSoap
public class IntegrationDataAppSoapMockStub
extends ClientSoapMockStub
implements IIntegrationDataAppSoap
-
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 TypeMethodDescriptionSimulate a call to getDatagetDataByKey(String sessionId, String namespaceId, String objectId, String key) Simulate a call to getDataByKeygetNamespaceId(String sessionId, String name) Simulate a call to getNamespaceIdvoidprepareGetData(String sessionId, String namespaceId, String objectId, Object returnValue) Prepare a simulated response to getDatavoidprepareGetDataByKey(String sessionId, String namespaceId, String objectId, String key, Object returnValue) Prepare a simulated response to getDataByKeyvoidprepareGetNamespaceId(String sessionId, String name, Object returnValue) Prepare a simulated response to getNamespaceIdvoidpreparePutData(String sessionId, String namespaceId, String objectId, SoapNamedValues namedValues) Prepare a simulated response to putDatavoidpreparePutData(String sessionId, String namespaceId, String objectId, SoapNamedValues namedValues, Exception exception) Prepare a simulated response to putDatavoidpreparePutDataByKey(String sessionId, String namespaceId, String objectId, String key, String value) Prepare a simulated response to putDataByKeyvoidpreparePutDataByKey(String sessionId, String namespaceId, String objectId, String key, String value, Exception exception) Prepare a simulated response to putDataByKeyvoidprepareRegisterNamespace(String sessionId, String name, Object returnValue) Prepare a simulated response to registerNamespacevoidprepareRemoveData(String sessionId, String namespaceId, String objectId, String[] keys) Prepare a simulated response to removeDatavoidprepareRemoveData(String sessionId, String namespaceId, String objectId, String[] keys, Exception exception) Prepare a simulated response to removeDatavoidprepareRemoveDataByKey(String sessionId, String namespaceId, String objectId, String key) Prepare a simulated response to removeDataByKeyvoidprepareRemoveDataByKey(String sessionId, String namespaceId, String objectId, String key, Exception exception) Prepare a simulated response to removeDataByKeyvoidputData(String sessionId, String namespaceId, String objectId, SoapNamedValues namedValues) Simulate a call to putDatavoidSimulate a call to putDataByKeyregisterNamespace(String sessionId, String name) Simulate a call to registerNamespacevoidremoveData(String sessionId, String namespaceId, String objectId, String[] keys) Simulate a call to removeDatavoidremoveDataByKey(String sessionId, String namespaceId, String objectId, String key) Simulate a call to removeDataByKeyMethods 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
-
IntegrationDataAppSoapMockStub
-
-
Method Details
-
prepareRegisterNamespace
Prepare a simulated response to registerNamespace -
registerNamespace
Simulate a call to registerNamespace- Specified by:
registerNamespacein interfaceIIntegrationDataAppSoap- Parameters:
sessionId- SOAP session id.name- The name of the namespace to register- Returns:
- Integration data namespace id
- Throws:
InvalidSessionFault- when the sessionId is invalid.ObjectAlreadyExistsFault- when the specified name already existsSystemFault- when an unexpected system error occurs.RemoteException- See Also:
-
prepareGetNamespaceId
Prepare a simulated response to getNamespaceId -
getNamespaceId
Simulate a call to getNamespaceId- Specified by:
getNamespaceIdin interfaceIIntegrationDataAppSoap- Parameters:
sessionId- SOAP session id.name- The name of the namespace to get- Returns:
- Integration data namespace id
- Throws:
InvalidSessionFault- when the sessionId is invalid.NoSuchObjectFault- when the specified name doesn't exist.SystemFault- when an unexpected system error occurs.RemoteException- See Also:
-
preparePutData
public void preparePutData(String sessionId, String namespaceId, String objectId, SoapNamedValues namedValues) Prepare a simulated response to putData -
preparePutData
public void preparePutData(String sessionId, String namespaceId, String objectId, SoapNamedValues namedValues, Exception exception) Prepare a simulated response to putData -
putData
public void putData(String sessionId, String namespaceId, String objectId, SoapNamedValues namedValues) throws RemoteException Simulate a call to putData- Specified by:
putDatain interfaceIIntegrationDataAppSoap- Parameters:
sessionId- SOAP session id.namespaceId- The namespace to store data underobjectId- The object to associate the data withnamedValues- Key value pairs of data to associate- Throws:
InvalidSessionFault- when the sessionId is invalid.NoSuchObjectFault- when the object id doesn't existSystemFault- when an unexpected system error occurs.PermissionDeniedFault- when the user doesn't have permission to store data on the objectRemoteException- See Also:
-
preparePutDataByKey
public void preparePutDataByKey(String sessionId, String namespaceId, String objectId, String key, String value) Prepare a simulated response to putDataByKey -
preparePutDataByKey
public void preparePutDataByKey(String sessionId, String namespaceId, String objectId, String key, String value, Exception exception) Prepare a simulated response to putDataByKey -
putDataByKey
public void putDataByKey(String sessionId, String namespaceId, String objectId, String key, String value) throws RemoteException Simulate a call to putDataByKey- Specified by:
putDataByKeyin interfaceIIntegrationDataAppSoap- Parameters:
sessionId- SOAP session id.namespaceId- The namespace to store data underobjectId- The object to associate the data withkey- The key of the piece of data to storevalue- The value to store- Throws:
InvalidSessionFault- when the sessionId is invalid.NoSuchObjectFault- when the object id doesn't existSystemFault- when an unexpected system error occurs.PermissionDeniedFault- when the user doesn't have permission to store data on the objectRemoteException- See Also:
-
prepareRemoveData
Prepare a simulated response to removeData -
prepareRemoveData
public void prepareRemoveData(String sessionId, String namespaceId, String objectId, String[] keys, Exception exception) Prepare a simulated response to removeData -
removeData
public void removeData(String sessionId, String namespaceId, String objectId, String[] keys) throws RemoteException Simulate a call to removeData- Specified by:
removeDatain interfaceIIntegrationDataAppSoap- Parameters:
sessionId- SOAP session id.namespaceId- The namespace to store data underobjectId- The object to associate the data withkeys- Integration data keys (and associated values) to remove.- Throws:
InvalidSessionFault- when the sessionId is invalid.NoSuchObjectFault- when the object id doesn't existSystemFault- when an unexpected system error occurs.PermissionDeniedFault- when the user doesn't have permission to store data on the objectRemoteException- See Also:
-
prepareRemoveDataByKey
public void prepareRemoveDataByKey(String sessionId, String namespaceId, String objectId, String key) Prepare a simulated response to removeDataByKey -
prepareRemoveDataByKey
public void prepareRemoveDataByKey(String sessionId, String namespaceId, String objectId, String key, Exception exception) Prepare a simulated response to removeDataByKey -
removeDataByKey
public void removeDataByKey(String sessionId, String namespaceId, String objectId, String key) throws RemoteException Simulate a call to removeDataByKey- Specified by:
removeDataByKeyin interfaceIIntegrationDataAppSoap- Parameters:
sessionId- SOAP session id.namespaceId- The namespace to store data underobjectId- The object to associate the data withkey- Integration data key (and associated value) to remove.- Throws:
InvalidSessionFault- when the sessionId is invalid.NoSuchObjectFault- when the object id doesn't existSystemFault- when an unexpected system error occurs.PermissionDeniedFault- when the user doesn't have permission to store data on the objectRemoteException- See Also:
-
prepareGetData
public void prepareGetData(String sessionId, String namespaceId, String objectId, Object returnValue) Prepare a simulated response to getData -
getData
public SoapNamedValues getData(String sessionId, String namespaceId, String objectId) throws RemoteException Simulate a call to getData- Specified by:
getDatain interfaceIIntegrationDataAppSoap- Parameters:
sessionId- SOAP session id.namespaceId- The namespace to get data underobjectId- The object to get the data for- Returns:
- A SoapNamedValues collection of key/value pair stored data
- Throws:
InvalidSessionFault- when the sessionId is invalid.NoSuchObjectFault- when the object id doesn't existSystemFault- when an unexpected system error occurs.PermissionDeniedFault- when the user doesn't have permission to get data on the objectRemoteException- See Also:
-
prepareGetDataByKey
public void prepareGetDataByKey(String sessionId, String namespaceId, String objectId, String key, Object returnValue) Prepare a simulated response to getDataByKey -
getDataByKey
public String getDataByKey(String sessionId, String namespaceId, String objectId, String key) throws RemoteException Simulate a call to getDataByKey- Specified by:
getDataByKeyin interfaceIIntegrationDataAppSoap- Parameters:
sessionId- SOAP session id.namespaceId- The namespace to get data underobjectId- The object to get the data forkey- The key of the piece of data to retrieve- Returns:
- The value of the stored piece of data
- Throws:
InvalidSessionFault- when the sessionId is invalid.NoSuchObjectFault- when the object id doesn't existSystemFault- when an unexpected system error occurs.PermissionDeniedFault- when the user doesn't have permission to get data on the objectRemoteException- See Also:
-