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_WILDCARD
-
Fields inherited from class com.collabnet.ce.soap60.webservices.ClientSoapStub
DEFAULT_CLIENT_TIME_OUT
-
-
Constructor Summary
Constructors Constructor Description IntegrationDataAppSoapMockStub(String soapServerUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SoapNamedValuesgetData(String sessionId, String namespaceId, String objectId)Simulate a call to getDataStringgetDataByKey(String sessionId, String namespaceId, String objectId, String key)Simulate a call to getDataByKeyStringgetNamespaceId(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 putDatavoidputDataByKey(String sessionId, String namespaceId, String objectId, String key, String value)Simulate a call to putDataByKeyStringregisterNamespace(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 removeDataByKey-
Methods 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 Detail
-
IntegrationDataAppSoapMockStub
public IntegrationDataAppSoapMockStub(String soapServerUrl)
-
-
Method Detail
-
prepareRegisterNamespace
public void prepareRegisterNamespace(String sessionId, String name, Object returnValue)
Prepare a simulated response to registerNamespace
-
registerNamespace
public String registerNamespace(String sessionId, String name) throws RemoteException
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:
IntegrationDataAppSoap.registerNamespace(java.lang.String, java.lang.String)
-
prepareGetNamespaceId
public void prepareGetNamespaceId(String sessionId, String name, Object returnValue)
Prepare a simulated response to getNamespaceId
-
getNamespaceId
public String getNamespaceId(String sessionId, String name) throws RemoteException
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:
IntegrationDataAppSoap.getNamespaceId(java.lang.String, java.lang.String)
-
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:
IntegrationDataAppSoap.putData(java.lang.String, java.lang.String, java.lang.String, com.collabnet.ce.soap60.types.SoapNamedValues)
-
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:
IntegrationDataAppSoap.putDataByKey(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
prepareRemoveData
public void prepareRemoveData(String sessionId, String namespaceId, String objectId, String[] keys)
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:
IntegrationDataAppSoap.removeData(java.lang.String, java.lang.String, java.lang.String, java.lang.String[])
-
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:
IntegrationDataAppSoap.removeDataByKey(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
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:
IntegrationDataAppSoap.getData(java.lang.String, java.lang.String, java.lang.String)
-
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:
IntegrationDataAppSoap.getDataByKey(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
-
-