Class ScmAppSoapMockStub
java.lang.Object
com.collabnet.ce.soap60.webservices.ClientSoapStub
com.collabnet.ce.soap60.webservices.ClientSoapMockStub
com.collabnet.ce.soap60.webservices.scm.ScmAppSoapMockStub
- All Implemented Interfaces:
IScmAppSoap
-
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 TypeMethodDescriptionaddExternalSystem
(String sessionId, String adapterType, String title, String description, SoapNamedValues adapterTypeParameters) Simulate a call to addExternalSystemcreateRepository
(String sessionId, String projectId, String externalSystemId, String repositoryDirectory, String title, String description, boolean idRequiredOnCommit, boolean hideMonitoringDetails, String comment) Simulate a call to createRepositorycreateRepository2
(String sessionId, String projectId, String externalSystemId, String repositoryDirectory, String title, String description, boolean idRequiredOnCommit, boolean hideMonitoringDetails, String comment, RepositoryParameter2SoapDO[] params) Simulate a call to createRepository2void
deleteRepository
(String sessionId, String repositoryId) Simulate a call to deleteRepositorygetAuthorizedKeys
(String sessionId) Simulate a call to getAuthorizedKeysgetAuthorizedKeysForUser
(String sessionId, String username) Simulate a call to getAuthorizedKeysForUsergetCommitData
(String sessionId, String commitId) Simulate a call to getCommitDatagetCommitData2
(String sessionId, String commitId) Simulate a call to getCommitData2getCommitId
(String sessionId, String revision, String externalSystemId, String repoPath) Simulate a call to getCommitIdgetCommitList
(String sessionId, String repositoryId, SoapFilter[] filters) Simulate a call to getCommitListgetExternalSystem
(String sessionId, String systemId) Simulate a call to getExternalSystemgetExternalSystemList
(String sessionId) Simulate a call to getExternalSystemListgetExternalSystemList2
(String sessionId) Simulate a call to getExternalSystemList2getReplicableScmExternalSystemList
(String sessionId) Simulate a call to getReplicableScmExternalSystemListgetReplicableScmExternalSystemList2
(String sessionId, String adapterName) Simulate a call to getReplicableScmExternalSystemList2getReplicaData
(String sessionId, String replicaId) Simulate a call to getReplicaDatagetReplicaListForExternalSystem
(String sessionId, String externalSystemId, boolean approvedOnly) Simulate a call to getReplicaListForExternalSystemgetReplicaRepositoryList
(String sessionId, String replicaId) Simulate a call to getReplicaRepositoryListgetReplicatedRepositoryList
(String sessionId, String masterRepositoryId) Simulate a call to getReplicatedRepositoryListgetRepository2Data
(String sessionId, String externalSystemId, String repositoryDirectory) Simulate a call to getRepository2DatagetRepository2DataById
(String sessionId, String repositoryId) Simulate a call to getRepository2DataByIdgetRepositoryData
(String sessionId, String externalSystemId, String repositoryDirectory) Simulate a call to getRepositoryDatagetRepositoryDataById
(String sessionId, String repositoryId) Simulate a call to getRepositoryDataByIdgetRepositoryList
(String sessionId, String projectId) Simulate a call to getRepositoryListgetRepositoryListForExternalSystem
(String sessionId, String externalSystemId, String userName) Simulate a call to getRepositoryListForExternalSystemString[]
getScmAdapterNames
(String sessionId) Simulate a call to getScmAdapterNamesgetScmAdapterParameterNamesWithType
(String sessionId, String adapterName) Simulate a call to getScmAdapterParameterNamesWithTypegetSCMCheckoutCommand
(String sessionId, String repositoryId, String userName) Simulate a call to getSCMCheckoutCommandgetSCMCheckoutCommands
(String sessionId, String repositoryId) Simulate a call to getSCMCheckoutCommandsgetSCMCheckoutCommandsForReplica
(String sessionId, String repositoryId, String replicaId) Simulate a call to getSCMCheckoutCommandsForReplicaboolean
isAdapterTypeValid
(com.vasoftware.sf.server.types.NamedValue[] adapterTypeParams, String givenParamName, String givenParamValue) Simulate a call to isAdapterTypeValidmoveRepository
(String sessionId, String repositoryId, String projectId) Simulate a call to moveRepositorynullToEmptyString
(String string) Simulate a call to nullToEmptyStringvoid
prepareAddExternalSystem
(String sessionId, String adapterType, String title, String description, SoapNamedValues adapterTypeParameters, Object returnValue) Prepare a simulated response to addExternalSystemvoid
prepareCreateRepository
(String sessionId, String projectId, String externalSystemId, String repositoryDirectory, String title, String description, boolean idRequiredOnCommit, boolean hideMonitoringDetails, String comment, Object returnValue) Prepare a simulated response to createRepositoryvoid
prepareCreateRepository2
(String sessionId, String projectId, String externalSystemId, String repositoryDirectory, String title, String description, boolean idRequiredOnCommit, boolean hideMonitoringDetails, String comment, RepositoryParameter2SoapDO[] params, Object returnValue) Prepare a simulated response to createRepository2void
prepareDeleteRepository
(String sessionId, String repositoryId) Prepare a simulated response to deleteRepositoryvoid
prepareDeleteRepository
(String sessionId, String repositoryId, Exception exception) Prepare a simulated response to deleteRepositoryvoid
prepareGetAuthorizedKeys
(String sessionId, Object returnValue) Prepare a simulated response to getAuthorizedKeysvoid
prepareGetAuthorizedKeysForUser
(String sessionId, String username, Object returnValue) Prepare a simulated response to getAuthorizedKeysForUservoid
prepareGetCommitData
(String sessionId, String commitId, Object returnValue) Prepare a simulated response to getCommitDatavoid
prepareGetCommitData2
(String sessionId, String commitId, Object returnValue) Prepare a simulated response to getCommitData2void
prepareGetCommitId
(String sessionId, String revision, String externalSystemId, String repoPath, Object returnValue) Prepare a simulated response to getCommitIdvoid
prepareGetCommitList
(String sessionId, String repositoryId, SoapFilter[] filters, Object returnValue) Prepare a simulated response to getCommitListvoid
prepareGetExternalSystem
(String sessionId, String systemId, Object returnValue) Prepare a simulated response to getExternalSystemvoid
prepareGetExternalSystemList
(String sessionId, Object returnValue) Prepare a simulated response to getExternalSystemListvoid
prepareGetExternalSystemList2
(String sessionId, Object returnValue) Prepare a simulated response to getExternalSystemList2void
prepareGetReplicableScmExternalSystemList
(String sessionId, Object returnValue) Prepare a simulated response to getReplicableScmExternalSystemListvoid
prepareGetReplicableScmExternalSystemList2
(String sessionId, String adapterName, Object returnValue) Prepare a simulated response to getReplicableScmExternalSystemList2void
prepareGetReplicaData
(String sessionId, String replicaId, Object returnValue) Prepare a simulated response to getReplicaDatavoid
prepareGetReplicaListForExternalSystem
(String sessionId, String externalSystemId, boolean approvedOnly, Object returnValue) Prepare a simulated response to getReplicaListForExternalSystemvoid
prepareGetReplicaRepositoryList
(String sessionId, String replicaId, Object returnValue) Prepare a simulated response to getReplicaRepositoryListvoid
prepareGetReplicatedRepositoryList
(String sessionId, String masterRepositoryId, Object returnValue) Prepare a simulated response to getReplicatedRepositoryListvoid
prepareGetRepository2Data
(String sessionId, String externalSystemId, String repositoryDirectory, Object returnValue) Prepare a simulated response to getRepository2Datavoid
prepareGetRepository2DataById
(String sessionId, String repositoryId, Object returnValue) Prepare a simulated response to getRepository2DataByIdvoid
prepareGetRepositoryData
(String sessionId, String externalSystemId, String repositoryDirectory, Object returnValue) Prepare a simulated response to getRepositoryDatavoid
prepareGetRepositoryDataById
(String sessionId, String repositoryId, Object returnValue) Prepare a simulated response to getRepositoryDataByIdvoid
prepareGetRepositoryList
(String sessionId, String projectId, Object returnValue) Prepare a simulated response to getRepositoryListvoid
prepareGetRepositoryListForExternalSystem
(String sessionId, String externalSystemId, String userName, Object returnValue) Prepare a simulated response to getRepositoryListForExternalSystemvoid
prepareGetScmAdapterNames
(String sessionId, Object returnValue) Prepare a simulated response to getScmAdapterNamesvoid
prepareGetScmAdapterParameterNamesWithType
(String sessionId, String adapterName, Object returnValue) Prepare a simulated response to getScmAdapterParameterNamesWithTypevoid
prepareGetSCMCheckoutCommand
(String sessionId, String repositoryId, String userName, Object returnValue) Prepare a simulated response to getSCMCheckoutCommandvoid
prepareGetSCMCheckoutCommands
(String sessionId, String repositoryId, Object returnValue) Prepare a simulated response to getSCMCheckoutCommandsvoid
prepareGetSCMCheckoutCommandsForReplica
(String sessionId, String repositoryId, String replicaId, Object returnValue) Prepare a simulated response to getSCMCheckoutCommandsForReplicavoid
prepareIsAdapterTypeValid
(com.vasoftware.sf.server.types.NamedValue[] adapterTypeParams, String givenParamName, String givenParamValue, Object returnValue) Prepare a simulated response to isAdapterTypeValidvoid
prepareMoveRepository
(String sessionId, String repositoryId, String projectId, Object returnValue) Prepare a simulated response to moveRepositoryvoid
prepareNullToEmptyString
(String string, Object returnValue) Prepare a simulated response to nullToEmptyStringvoid
prepareRemoveRepositoryFromReplica
(String sessionId, String repositoryId, String replicaId) Prepare a simulated response to removeRepositoryFromReplicavoid
prepareRemoveRepositoryFromReplica
(String sessionId, String repositoryId, String replicaId, Exception exception) Prepare a simulated response to removeRepositoryFromReplicavoid
prepareReplicateRepository
(String sessionId, String repositoryId, String replicaId) Prepare a simulated response to replicateRepositoryvoid
prepareReplicateRepository
(String sessionId, String repositoryId, String replicaId, Exception exception) Prepare a simulated response to replicateRepositoryvoid
prepareSetAuthorizedKeys
(String sessionId, String authorizedKeys) Prepare a simulated response to setAuthorizedKeysvoid
prepareSetAuthorizedKeys
(String sessionId, String authorizedKeys, Exception exception) Prepare a simulated response to setAuthorizedKeysvoid
prepareSetAuthorizedKeys
(String sessionId, String username, String authorizedKeys) Prepare a simulated response to setAuthorizedKeysvoid
prepareSetAuthorizedKeys
(String sessionId, String username, String authorizedKeys, Exception exception) Prepare a simulated response to setAuthorizedKeysvoid
prepareSetAuthorizedKeysForUser
(String sessionId, String username, String authorizedKeys) Prepare a simulated response to setAuthorizedKeysForUservoid
prepareSetAuthorizedKeysForUser
(String sessionId, String username, String authorizedKeys, Exception exception) Prepare a simulated response to setAuthorizedKeysForUservoid
prepareSetExternalSystemData
(String sessionId, ExternalSystemSoapDO systemData) Prepare a simulated response to setExternalSystemDatavoid
prepareSetExternalSystemData
(String sessionId, ExternalSystemSoapDO systemData, Exception exception) Prepare a simulated response to setExternalSystemDatavoid
prepareSetReplicaData
(String sessionId, ReplicaDataSoapDO replica) Prepare a simulated response to setReplicaDatavoid
prepareSetReplicaData
(String sessionId, ReplicaDataSoapDO replica, Exception exception) Prepare a simulated response to setReplicaDatavoid
prepareSetRepositoryData
(String sessionId, Repository2SoapDO repository) Prepare a simulated response to setRepositoryDatavoid
prepareSetRepositoryData
(String sessionId, Repository2SoapDO repository, Exception exception) Prepare a simulated response to setRepositoryDatavoid
removeRepositoryFromReplica
(String sessionId, String repositoryId, String replicaId) Simulate a call to removeRepositoryFromReplicavoid
replicateRepository
(String sessionId, String repositoryId, String replicaId) Simulate a call to replicateRepositoryvoid
setAuthorizedKeys
(String sessionId, String authorizedKeys) Simulate a call to setAuthorizedKeysvoid
setAuthorizedKeys
(String sessionId, String username, String authorizedKeys) Simulate a call to setAuthorizedKeysvoid
setAuthorizedKeysForUser
(String sessionId, String username, String authorizedKeys) Simulate a call to setAuthorizedKeysForUservoid
setExternalSystemData
(String sessionId, ExternalSystemSoapDO systemData) Simulate a call to setExternalSystemDatavoid
setReplicaData
(String sessionId, ReplicaDataSoapDO replica) Simulate a call to setReplicaDatavoid
setRepositoryData
(String sessionId, Repository2SoapDO repository) Simulate a call to setRepositoryDataMethods 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
-
ScmAppSoapMockStub
-
-
Method Details
-
prepareGetRepositoryList
Prepare a simulated response to getRepositoryList -
getRepositoryList
public RepositorySoapList getRepositoryList(String sessionId, String projectId) throws RemoteException Simulate a call to getRepositoryList- Specified by:
getRepositoryList
in interfaceIScmAppSoap
- Parameters:
sessionId
- User session id.projectId
- The project id.- Returns:
- List of SCM repositories within the specified project.
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified project id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetRepositoryListForExternalSystem
public void prepareGetRepositoryListForExternalSystem(String sessionId, String externalSystemId, String userName, Object returnValue) Prepare a simulated response to getRepositoryListForExternalSystem -
getRepositoryListForExternalSystem
public RepositorySoapList getRepositoryListForExternalSystem(String sessionId, String externalSystemId, String userName) throws RemoteException Simulate a call to getRepositoryListForExternalSystem- Specified by:
getRepositoryListForExternalSystem
in interfaceIScmAppSoap
- Parameters:
sessionId
- User session id. Must be site admin.externalSystemId
- The external system (SCM adapter) id.userName
- Name of the user.- Returns:
- List of repositories on a given external system
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified external system id is not validPermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.IllegalArgumentFault
- when any of the parameters is null/emptyRemoteException
- See Also:
-
prepareGetCommitList
public void prepareGetCommitList(String sessionId, String repositoryId, SoapFilter[] filters, Object returnValue) Prepare a simulated response to getCommitList -
getCommitList
public CommitSoapList getCommitList(String sessionId, String repositoryId, SoapFilter[] filters) throws RemoteException Simulate a call to getCommitList- Specified by:
getCommitList
in interfaceIScmAppSoap
- Parameters:
sessionId
- User session id.repositoryId
- The repository id.filters
- Array of filters to apply (null to return unfiltered list).- Returns:
- List of SCM commits on the specified repository.
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified repository id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.InvalidFilterFault
- If the filters are not valid.RemoteException
- See Also:
-
prepareGetCommitData
Prepare a simulated response to getCommitData -
getCommitData
Simulate a call to getCommitData- Specified by:
getCommitData
in interfaceIScmAppSoap
- Parameters:
sessionId
- User session id.commitId
- The commit id.- Returns:
- Commit data.
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified commit id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetCommitData2
Prepare a simulated response to getCommitData2 -
getCommitData2
Simulate a call to getCommitData2- Specified by:
getCommitData2
in interfaceIScmAppSoap
- Parameters:
sessionId
- User session id.commitId
- The commit id.- Returns:
- Commit data
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified commit id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetRepositoryData
public void prepareGetRepositoryData(String sessionId, String externalSystemId, String repositoryDirectory, Object returnValue) Prepare a simulated response to getRepositoryData -
getRepositoryData
public RepositorySoapDO getRepositoryData(String sessionId, String externalSystemId, String repositoryDirectory) throws RemoteException Simulate a call to getRepositoryData- Specified by:
getRepositoryData
in interfaceIScmAppSoap
- Parameters:
sessionId
- User session id.externalSystemId
- The id of the external system that the repository is located onrepositoryDirectory
- The directory on the external system that the repository is located in- Returns:
- Repository Data
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified repository id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetRepository2Data
public void prepareGetRepository2Data(String sessionId, String externalSystemId, String repositoryDirectory, Object returnValue) Prepare a simulated response to getRepository2Data -
getRepository2Data
public Repository2SoapDO getRepository2Data(String sessionId, String externalSystemId, String repositoryDirectory) throws RemoteException Simulate a call to getRepository2Data- Specified by:
getRepository2Data
in interfaceIScmAppSoap
- Parameters:
sessionId
- User session id.externalSystemId
- The id of the external system that the repository is located onrepositoryDirectory
- The directory on the external system that the repository is located in- Returns:
- Repository Data
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified repository id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetRepositoryDataById
Prepare a simulated response to getRepositoryDataById -
getRepositoryDataById
public RepositorySoapDO getRepositoryDataById(String sessionId, String repositoryId) throws RemoteException Simulate a call to getRepositoryDataById- Specified by:
getRepositoryDataById
in interfaceIScmAppSoap
- Parameters:
sessionId
- User session id.repositoryId
- The id of the repository- Returns:
- Repository Data
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified repository id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetRepository2DataById
public void prepareGetRepository2DataById(String sessionId, String repositoryId, Object returnValue) Prepare a simulated response to getRepository2DataById -
getRepository2DataById
public Repository2SoapDO getRepository2DataById(String sessionId, String repositoryId) throws RemoteException Simulate a call to getRepository2DataById- Specified by:
getRepository2DataById
in interfaceIScmAppSoap
- Parameters:
sessionId
- User session id.repositoryId
- The id of the repository- Returns:
- Repository Data
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified repository id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareSetRepositoryData
Prepare a simulated response to setRepositoryData -
prepareSetRepositoryData
public void prepareSetRepositoryData(String sessionId, Repository2SoapDO repository, Exception exception) Prepare a simulated response to setRepositoryData -
setRepositoryData
public void setRepositoryData(String sessionId, Repository2SoapDO repository) throws RemoteException Simulate a call to setRepositoryData- Specified by:
setRepositoryData
in interfaceIScmAppSoap
- Parameters:
sessionId
- User session id.repository
- The repository data- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified repository id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetReplicaData
Prepare a simulated response to getReplicaData -
getReplicaData
Simulate a call to getReplicaData- Specified by:
getReplicaData
in interfaceIScmAppSoap
- Parameters:
sessionId
- the user sessionreplicaId
- the replica server id- Returns:
- the replica server data
- Throws:
InvalidSessionFault
PermissionDeniedFault
SystemFault
NoSuchObjectFault
RemoteException
- See Also:
-
prepareSetReplicaData
Prepare a simulated response to setReplicaData -
prepareSetReplicaData
Prepare a simulated response to setReplicaData -
setReplicaData
Simulate a call to setReplicaData- Specified by:
setReplicaData
in interfaceIScmAppSoap
- Parameters:
sessionId
- user session idreplica
- the replica server data to be set- Throws:
InvalidSessionFault
PermissionDeniedFault
SystemFault
NoSuchObjectFault
VersionMismatchFault
RemoteException
- See Also:
-
prepareGetSCMCheckoutCommand
public void prepareGetSCMCheckoutCommand(String sessionId, String repositoryId, String userName, Object returnValue) Prepare a simulated response to getSCMCheckoutCommand -
getSCMCheckoutCommand
public String getSCMCheckoutCommand(String sessionId, String repositoryId, String userName) throws RemoteException Simulate a call to getSCMCheckoutCommand- Specified by:
getSCMCheckoutCommand
in interfaceIScmAppSoap
- Parameters:
sessionId
- User session id.repositoryId
- The id of the repositoryuserName
- User name.- Returns:
- command to check out the repository
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified repository id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetSCMCheckoutCommands
public void prepareGetSCMCheckoutCommands(String sessionId, String repositoryId, Object returnValue) Prepare a simulated response to getSCMCheckoutCommands -
getSCMCheckoutCommands
public CheckoutCommandSoapList getSCMCheckoutCommands(String sessionId, String repositoryId) throws RemoteException Simulate a call to getSCMCheckoutCommands- Specified by:
getSCMCheckoutCommands
in interfaceIScmAppSoap
- Parameters:
sessionId
- User session id.repositoryId
- The id of the repository- Returns:
- protocol to checkout command tuples
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified repository id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetSCMCheckoutCommandsForReplica
public void prepareGetSCMCheckoutCommandsForReplica(String sessionId, String repositoryId, String replicaId, Object returnValue) Prepare a simulated response to getSCMCheckoutCommandsForReplica -
getSCMCheckoutCommandsForReplica
public CheckoutCommandSoapList getSCMCheckoutCommandsForReplica(String sessionId, String repositoryId, String replicaId) throws RemoteException Simulate a call to getSCMCheckoutCommandsForReplica- Specified by:
getSCMCheckoutCommandsForReplica
in interfaceIScmAppSoap
- Parameters:
sessionId
- User session id.repositoryId
- The id of the repositoryreplicaId
- The id of the replica to which checkout command should point- Returns:
- protocol to checkout command tuples
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified repository id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareCreateRepository
public void prepareCreateRepository(String sessionId, String projectId, String externalSystemId, String repositoryDirectory, String title, String description, boolean idRequiredOnCommit, boolean hideMonitoringDetails, String comment, Object returnValue) Prepare a simulated response to createRepository -
createRepository
public RepositorySoapDO createRepository(String sessionId, String projectId, String externalSystemId, String repositoryDirectory, String title, String description, boolean idRequiredOnCommit, boolean hideMonitoringDetails, String comment) throws RemoteException Simulate a call to createRepository- Specified by:
createRepository
in interfaceIScmAppSoap
- Parameters:
sessionId
- User session id.projectId
- The project that will host the new repositoryexternalSystemId
- The id of the external system on which the new repository will be createdrepositoryDirectory
- The directory on the external system for the new repositorytitle
- The name of the new repositorydescription
- The description for the new repositoryidRequiredOnCommit
- Whether an artifact ID is required for commits to this repositoryhideMonitoringDetails
- Controls whether monitoring messages for commit include full detailscomment
- The comment for documenting the creation of the repository- Returns:
- Repository Data
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified repository id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareCreateRepository2
public void prepareCreateRepository2(String sessionId, String projectId, String externalSystemId, String repositoryDirectory, String title, String description, boolean idRequiredOnCommit, boolean hideMonitoringDetails, String comment, RepositoryParameter2SoapDO[] params, Object returnValue) Prepare a simulated response to createRepository2 -
createRepository2
public Repository2SoapDO createRepository2(String sessionId, String projectId, String externalSystemId, String repositoryDirectory, String title, String description, boolean idRequiredOnCommit, boolean hideMonitoringDetails, String comment, RepositoryParameter2SoapDO[] params) throws RemoteException Simulate a call to createRepository2- Specified by:
createRepository2
in interfaceIScmAppSoap
- Parameters:
sessionId
- User session id.projectId
- The project that will host the new repositoryexternalSystemId
- The id of the external system on which the new repository will be createdrepositoryDirectory
- The directory on the external system for the new repositorytitle
- The name of the new repositorydescription
- The description for the new repositoryidRequiredOnCommit
- Whether an artifact ID is required for commits to this repositoryhideMonitoringDetails
- Controls whether monitoring messages for commit include full detailscomment
- The comment for documenting the creation of the repositoryparams
- The repository parameter- Returns:
- Repository Data
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified repository id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareDeleteRepository
Prepare a simulated response to deleteRepository -
prepareDeleteRepository
Prepare a simulated response to deleteRepository -
deleteRepository
Simulate a call to deleteRepository- Specified by:
deleteRepository
in interfaceIScmAppSoap
- Parameters:
sessionId
- The user's SOAP session idrepositoryId
- The id of the repository to be deleted- Throws:
InvalidSessionFault
- If the user's session is invalidPermissionDeniedFault
- If the user doesn't have proper permissions to delete the repositorySystemFault
- All other faultsNoSuchObjectFault
- If repository id doesn't existRemoteException
- See Also:
-
prepareMoveRepository
public void prepareMoveRepository(String sessionId, String repositoryId, String projectId, Object returnValue) Prepare a simulated response to moveRepository -
moveRepository
public RepositorySoapDO moveRepository(String sessionId, String repositoryId, String projectId) throws RemoteException Simulate a call to moveRepository- Specified by:
moveRepository
in interfaceIScmAppSoap
- Parameters:
sessionId
- The user's SOAP session idrepositoryId
- The id of the repository to moveprojectId
- The id of the project to move the repository to- Returns:
- RepositorySoapDO The repository object post-move
- Throws:
InvalidSessionFault
- If the user's session is invalidNoSuchObjectFault
- If either the repository id or project id doesn't existObjectAlreadyExistsFault
- If the destination project is the same as the current projectPermissionDeniedFault
- If the user doesn't have proper permissions on either the repository or the projectSystemFault
- All other faultsRemoteException
- See Also:
-
prepareGetScmAdapterNames
Prepare a simulated response to getScmAdapterNames -
getScmAdapterNames
Simulate a call to getScmAdapterNames- Specified by:
getScmAdapterNames
in interfaceIScmAppSoap
- Parameters:
sessionId
- The user's SOAP session id- Returns:
- String[] The known SCM adapter names
- Throws:
InvalidSessionFault
- If the session is invalidPermissionDeniedFault
- If the user is not a site administratorSystemFault
- If anything else goes wrongRemoteException
- See Also:
-
prepareGetScmAdapterParameterNamesWithType
public void prepareGetScmAdapterParameterNamesWithType(String sessionId, String adapterName, Object returnValue) Prepare a simulated response to getScmAdapterParameterNamesWithType -
getScmAdapterParameterNamesWithType
public SoapNamedValues getScmAdapterParameterNamesWithType(String sessionId, String adapterName) throws RemoteException Simulate a call to getScmAdapterParameterNamesWithType- Specified by:
getScmAdapterParameterNamesWithType
in interfaceIScmAppSoap
- Parameters:
sessionId
- The user's SOAP session idadapterName
- The SCM adapter's name- Returns:
- SoapNamedValues The named values with type for the SCM adapter parameters
- Throws:
InvalidSessionFault
- If the session is invalidNoSuchObjectFault
- If the adapter name is not availablePermissionDeniedFault
- If the user is not a site administratorSystemFault
- If anything else goes wrongRemoteException
- See Also:
-
prepareAddExternalSystem
public void prepareAddExternalSystem(String sessionId, String adapterType, String title, String description, SoapNamedValues adapterTypeParameters, Object returnValue) Prepare a simulated response to addExternalSystem -
addExternalSystem
public String addExternalSystem(String sessionId, String adapterType, String title, String description, SoapNamedValues adapterTypeParameters) throws RemoteException Simulate a call to addExternalSystem- Specified by:
addExternalSystem
in interfaceIScmAppSoap
- Parameters:
sessionId
- is the user session id.adapterType
- is be the adapter type created, which is one value of the call "getScmAdapterNames()".title
- is the title of the external system.description
- is the description of the external system.adapterTypeParameters
- is the list of parameters of names and associated values for the given adapter type.- Returns:
- The GUID of the newly added external system.
- Throws:
InvalidSessionFault
- When the specified session id is invalid.NoSuchObjectFault
- If the adapter does not exist internally.PermissionDeniedFault
- When the user has insufficient privileges.SystemFault
- When wrong parameters are provided or an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetExternalSystem
Prepare a simulated response to getExternalSystem -
getExternalSystem
public ExternalSystemSoapDO getExternalSystem(String sessionId, String systemId) throws RemoteException Simulate a call to getExternalSystem- Specified by:
getExternalSystem
in interfaceIScmAppSoap
- Parameters:
sessionId
- the user session id.systemId
- The GUID of the external system.- Returns:
- the external system data.
- Throws:
InvalidSessionFault
- When the specified session id is invalid.NoSuchObjectFault
- If the external system does not exist internally.PermissionDeniedFault
- When the user has insufficient privileges.SystemFault
- When wrong parameters are provided or an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetExternalSystemList
Prepare a simulated response to getExternalSystemList -
getExternalSystemList
Simulate a call to getExternalSystemList- Specified by:
getExternalSystemList
in interfaceIScmAppSoap
- Parameters:
sessionId
- the user session id.- Returns:
- the external system list.
- Throws:
InvalidSessionFault
- When the specified session id is invalid.PermissionDeniedFault
- When the user has insufficient privileges.SystemFault
- When wrong parameters are provided or an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetExternalSystemList2
Prepare a simulated response to getExternalSystemList2 -
getExternalSystemList2
Simulate a call to getExternalSystemList2- Specified by:
getExternalSystemList2
in interfaceIScmAppSoap
- Parameters:
sessionId
- the user session id.- Returns:
- the external system list.
- Throws:
InvalidSessionFault
- When the specified session id is invalid.PermissionDeniedFault
- When the user has insufficient privileges.SystemFault
- When wrong parameters are provided or an unexpected system error occurs.RemoteException
- See Also:
-
prepareSetExternalSystemData
Prepare a simulated response to setExternalSystemData -
prepareSetExternalSystemData
public void prepareSetExternalSystemData(String sessionId, ExternalSystemSoapDO systemData, Exception exception) Prepare a simulated response to setExternalSystemData -
setExternalSystemData
public void setExternalSystemData(String sessionId, ExternalSystemSoapDO systemData) throws RemoteException Simulate a call to setExternalSystemData- Specified by:
setExternalSystemData
in interfaceIScmAppSoap
- Parameters:
sessionId
- the user session id.systemData
- the external system data to be updated- Throws:
NoSuchObjectFault
- If the external system does not exist internally.SystemFault
- When wrong parameters are provided or an unexpected system error occurs.InvalidSessionFault
- When the specified session id is invalid.PermissionDeniedFault
- When the user has insufficient privileges.InvalidOperationFault
- When an attempt is made to set different adapterName or adapterCatrogory.RemoteException
- See Also:
-
prepareIsAdapterTypeValid
public void prepareIsAdapterTypeValid(com.vasoftware.sf.server.types.NamedValue[] adapterTypeParams, String givenParamName, String givenParamValue, Object returnValue) Prepare a simulated response to isAdapterTypeValid -
isAdapterTypeValid
public boolean isAdapterTypeValid(com.vasoftware.sf.server.types.NamedValue[] adapterTypeParams, String givenParamName, String givenParamValue) throws RemoteException Simulate a call to isAdapterTypeValid -
prepareGetCommitId
public void prepareGetCommitId(String sessionId, String revision, String externalSystemId, String repoPath, Object returnValue) Prepare a simulated response to getCommitId -
getCommitId
public String getCommitId(String sessionId, String revision, String externalSystemId, String repoPath) throws RemoteException Simulate a call to getCommitId- Specified by:
getCommitId
in interfaceIScmAppSoap
- Parameters:
sessionId
- User session id.revision
- The Revision NumberexternalSystemId
- External system id.repoPath
- Repository path.- Returns:
- The commit Id
- Throws:
InvalidSessionFault
- when the session is invalid (expired / time out)PermissionDeniedFault
- when the user does not have read access.SystemFault
- when an unexpected system error occurs.NoSuchObjectFault
- when the specified repository id is invalid.RemoteException
- See Also:
-
prepareGetReplicableScmExternalSystemList
Prepare a simulated response to getReplicableScmExternalSystemList -
getReplicableScmExternalSystemList
public ReplicableScmExternalSystemSoapList getReplicableScmExternalSystemList(String sessionId) throws RemoteException Simulate a call to getReplicableScmExternalSystemList- Specified by:
getReplicableScmExternalSystemList
in interfaceIScmAppSoap
- Parameters:
sessionId
- User session id.- Returns:
- List of the replicable external systems
- Throws:
InvalidSessionFault
- when the specified session id is invalid.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetReplicableScmExternalSystemList2
public void prepareGetReplicableScmExternalSystemList2(String sessionId, String adapterName, Object returnValue) Prepare a simulated response to getReplicableScmExternalSystemList2 -
getReplicableScmExternalSystemList2
public ReplicableScmExternalSystemSoapList getReplicableScmExternalSystemList2(String sessionId, String adapterName) throws RemoteException Simulate a call to getReplicableScmExternalSystemList2- Specified by:
getReplicableScmExternalSystemList2
in interfaceIScmAppSoap
- Parameters:
sessionId
- User session id.adapterName
- the adapter name ornull
to list replicable systems for all adapters.- Returns:
- List of the replicable external systems.
- Throws:
InvalidSessionFault
- when the specified session id is invalid.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetReplicatedRepositoryList
public void prepareGetReplicatedRepositoryList(String sessionId, String masterRepositoryId, Object returnValue) Prepare a simulated response to getReplicatedRepositoryList -
getReplicatedRepositoryList
public ReplicatedRepositorySoapList getReplicatedRepositoryList(String sessionId, String masterRepositoryId) throws RemoteException Simulate a call to getReplicatedRepositoryList- Specified by:
getReplicatedRepositoryList
in interfaceIScmAppSoap
- Parameters:
sessionId
- the session keymasterRepositoryId
- the repository Id for which to find replicas- Returns:
- a list of ReplicatedRepository
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified master repository id is invalid.PermissionDeniedFault
- when the user has insufficient privileges.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetReplicaListForExternalSystem
public void prepareGetReplicaListForExternalSystem(String sessionId, String externalSystemId, boolean approvedOnly, Object returnValue) Prepare a simulated response to getReplicaListForExternalSystem -
getReplicaListForExternalSystem
public ReplicaServerSoapList getReplicaListForExternalSystem(String sessionId, String externalSystemId, boolean approvedOnly) throws RemoteException Simulate a call to getReplicaListForExternalSystem- Specified by:
getReplicaListForExternalSystem
in interfaceIScmAppSoap
- Parameters:
sessionId
- the user session id.externalSystemId
- The GUID of the external system.approvedOnly
- The GUID of the external system.- Returns:
- replicas list.
- Throws:
IllegalArgumentFault
- When wrong parameters are provided.InvalidSessionFault
- When the specified session id is invalid.RemoteException
- See Also:
-
prepareGetReplicaRepositoryList
Prepare a simulated response to getReplicaRepositoryList -
getReplicaRepositoryList
public ReplicaRepositorySoapList getReplicaRepositoryList(String sessionId, String replicaId) throws RemoteException Simulate a call to getReplicaRepositoryList- Specified by:
getReplicaRepositoryList
in interfaceIScmAppSoap
- Parameters:
sessionId
- the session keyreplicaId
- the replica Id for which to find repositories- Returns:
- a list of ReplicatedRepository
- Throws:
InvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified replica id is invalid.RemoteException
- See Also:
-
prepareReplicateRepository
Prepare a simulated response to replicateRepository -
prepareReplicateRepository
public void prepareReplicateRepository(String sessionId, String repositoryId, String replicaId, Exception exception) Prepare a simulated response to replicateRepository -
replicateRepository
public void replicateRepository(String sessionId, String repositoryId, String replicaId) throws RemoteException Simulate a call to replicateRepository- Specified by:
replicateRepository
in interfaceIScmAppSoap
- Parameters:
sessionId
- the session keyrepositoryId
- the id of the given repositoryreplicaId
- the id of the given replica- Throws:
IllegalArgumentFault
- when the repositoryId or replicaId are null or emptyInvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified master repository or replica are not validSystemFault
- if replica command creation failsPermissionDeniedFault
- if the user has no permissionRemoteException
- See Also:
-
prepareRemoveRepositoryFromReplica
public void prepareRemoveRepositoryFromReplica(String sessionId, String repositoryId, String replicaId) Prepare a simulated response to removeRepositoryFromReplica -
prepareRemoveRepositoryFromReplica
public void prepareRemoveRepositoryFromReplica(String sessionId, String repositoryId, String replicaId, Exception exception) Prepare a simulated response to removeRepositoryFromReplica -
removeRepositoryFromReplica
public void removeRepositoryFromReplica(String sessionId, String repositoryId, String replicaId) throws RemoteException Simulate a call to removeRepositoryFromReplica- Specified by:
removeRepositoryFromReplica
in interfaceIScmAppSoap
- Parameters:
sessionId
- the session keyrepositoryId
- the id of the given repositoryreplicaId
- the id of the given replica- Throws:
IllegalArgumentFault
- when the repositoryId or replicaId are null or emptyInvalidSessionFault
- when the specified session id is invalid.NoSuchObjectFault
- when the specified master repository or replica are not validSystemFault
- if replica command creation failsPermissionDeniedFault
- if the user has no permissionRemoteException
- See Also:
-
prepareGetAuthorizedKeysForUser
Prepare a simulated response to getAuthorizedKeysForUser -
getAuthorizedKeysForUser
Simulate a call to getAuthorizedKeysForUser- Specified by:
getAuthorizedKeysForUser
in interfaceIScmAppSoap
- Parameters:
sessionId
- the session keyusername
- name of the user- Returns:
- Authorized keys, separated by '\n' character.
- Throws:
InvalidSessionFault
- when the specified session id is invalid.PermissionDeniedFault
- when the user has insufficient privileges (the sessionId is not of a site admin).SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareGetAuthorizedKeys
Prepare a simulated response to getAuthorizedKeys -
getAuthorizedKeys
Simulate a call to getAuthorizedKeys- Specified by:
getAuthorizedKeys
in interfaceIScmAppSoap
- Parameters:
sessionId
- the session key- Returns:
- Authorized keys, separated by '\n' character. Returns empty string if the user has no keys.
- Throws:
InvalidSessionFault
- when the specified session id is invalid.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareSetAuthorizedKeys
Prepare a simulated response to setAuthorizedKeys -
prepareSetAuthorizedKeys
Prepare a simulated response to setAuthorizedKeys -
setAuthorizedKeys
Simulate a call to setAuthorizedKeys- Specified by:
setAuthorizedKeys
in interfaceIScmAppSoap
- Parameters:
sessionId
- the session keyauthorizedKeys
- the string containing authorized keys, separated by '\n' character.- Throws:
InvalidSessionFault
- when the specified session id is invalid.SystemFault
- when an unexpected system error occurs.RemoteException
- See Also:
-
prepareSetAuthorizedKeysForUser
public void prepareSetAuthorizedKeysForUser(String sessionId, String username, String authorizedKeys) Prepare a simulated response to setAuthorizedKeysForUser -
prepareSetAuthorizedKeysForUser
public void prepareSetAuthorizedKeysForUser(String sessionId, String username, String authorizedKeys, Exception exception) Prepare a simulated response to setAuthorizedKeysForUser -
setAuthorizedKeysForUser
public void setAuthorizedKeysForUser(String sessionId, String username, String authorizedKeys) throws RemoteException Simulate a call to setAuthorizedKeysForUser- Specified by:
setAuthorizedKeysForUser
in interfaceIScmAppSoap
- Parameters:
sessionId
- the session keyusername
- username for whom the authorized keys to be setauthorizedKeys
- the string containing authorized keys, separated by '\n' character.- Throws:
RemoteException
- when username is invalid- See Also:
-
prepareSetAuthorizedKeys
Prepare a simulated response to setAuthorizedKeys -
prepareSetAuthorizedKeys
public void prepareSetAuthorizedKeys(String sessionId, String username, String authorizedKeys, Exception exception) Prepare a simulated response to setAuthorizedKeys -
setAuthorizedKeys
public void setAuthorizedKeys(String sessionId, String username, String authorizedKeys) throws RemoteException Simulate a call to setAuthorizedKeys- Specified by:
setAuthorizedKeys
in interfaceIScmAppSoap
- Parameters:
sessionId
- the session keyusername
- username for whom the authorized keys to be setauthorizedKeys
- the string containing authorized keys, separated by '\n' character.- Throws:
InvalidSessionFault
- when the specified session id is invalid.SystemFault
- when an unexpected system error occurs.PermissionDeniedFault
- when the user has insufficient privileges.NoSuchObjectFault
- when the specified username is invalid.RemoteException
- See Also:
-
prepareNullToEmptyString
Prepare a simulated response to nullToEmptyString- See Also:
-
ScmAppSoap.nullToEmptyString(java.lang.String)
-
nullToEmptyString
Simulate a call to nullToEmptyString- Throws:
RemoteException
- See Also:
-
ScmAppSoap.nullToEmptyString(java.lang.String)
-