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_WILDCARDFields 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 createRepository2voiddeleteRepository(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 getSCMCheckoutCommandsForReplicabooleanisAdapterTypeValid(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 nullToEmptyStringvoidprepareAddExternalSystem(String sessionId, String adapterType, String title, String description, SoapNamedValues adapterTypeParameters, Object returnValue) Prepare a simulated response to addExternalSystemvoidprepareCreateRepository(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 createRepositoryvoidprepareCreateRepository2(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 createRepository2voidprepareDeleteRepository(String sessionId, String repositoryId) Prepare a simulated response to deleteRepositoryvoidprepareDeleteRepository(String sessionId, String repositoryId, Exception exception) Prepare a simulated response to deleteRepositoryvoidprepareGetAuthorizedKeys(String sessionId, Object returnValue) Prepare a simulated response to getAuthorizedKeysvoidprepareGetAuthorizedKeysForUser(String sessionId, String username, Object returnValue) Prepare a simulated response to getAuthorizedKeysForUservoidprepareGetCommitData(String sessionId, String commitId, Object returnValue) Prepare a simulated response to getCommitDatavoidprepareGetCommitData2(String sessionId, String commitId, Object returnValue) Prepare a simulated response to getCommitData2voidprepareGetCommitId(String sessionId, String revision, String externalSystemId, String repoPath, Object returnValue) Prepare a simulated response to getCommitIdvoidprepareGetCommitList(String sessionId, String repositoryId, SoapFilter[] filters, Object returnValue) Prepare a simulated response to getCommitListvoidprepareGetExternalSystem(String sessionId, String systemId, Object returnValue) Prepare a simulated response to getExternalSystemvoidprepareGetExternalSystemList(String sessionId, Object returnValue) Prepare a simulated response to getExternalSystemListvoidprepareGetExternalSystemList2(String sessionId, Object returnValue) Prepare a simulated response to getExternalSystemList2voidprepareGetReplicableScmExternalSystemList(String sessionId, Object returnValue) Prepare a simulated response to getReplicableScmExternalSystemListvoidprepareGetReplicableScmExternalSystemList2(String sessionId, String adapterName, Object returnValue) Prepare a simulated response to getReplicableScmExternalSystemList2voidprepareGetReplicaData(String sessionId, String replicaId, Object returnValue) Prepare a simulated response to getReplicaDatavoidprepareGetReplicaListForExternalSystem(String sessionId, String externalSystemId, boolean approvedOnly, Object returnValue) Prepare a simulated response to getReplicaListForExternalSystemvoidprepareGetReplicaRepositoryList(String sessionId, String replicaId, Object returnValue) Prepare a simulated response to getReplicaRepositoryListvoidprepareGetReplicatedRepositoryList(String sessionId, String masterRepositoryId, Object returnValue) Prepare a simulated response to getReplicatedRepositoryListvoidprepareGetRepository2Data(String sessionId, String externalSystemId, String repositoryDirectory, Object returnValue) Prepare a simulated response to getRepository2DatavoidprepareGetRepository2DataById(String sessionId, String repositoryId, Object returnValue) Prepare a simulated response to getRepository2DataByIdvoidprepareGetRepositoryData(String sessionId, String externalSystemId, String repositoryDirectory, Object returnValue) Prepare a simulated response to getRepositoryDatavoidprepareGetRepositoryDataById(String sessionId, String repositoryId, Object returnValue) Prepare a simulated response to getRepositoryDataByIdvoidprepareGetRepositoryList(String sessionId, String projectId, Object returnValue) Prepare a simulated response to getRepositoryListvoidprepareGetRepositoryListForExternalSystem(String sessionId, String externalSystemId, String userName, Object returnValue) Prepare a simulated response to getRepositoryListForExternalSystemvoidprepareGetScmAdapterNames(String sessionId, Object returnValue) Prepare a simulated response to getScmAdapterNamesvoidprepareGetScmAdapterParameterNamesWithType(String sessionId, String adapterName, Object returnValue) Prepare a simulated response to getScmAdapterParameterNamesWithTypevoidprepareGetSCMCheckoutCommand(String sessionId, String repositoryId, String userName, Object returnValue) Prepare a simulated response to getSCMCheckoutCommandvoidprepareGetSCMCheckoutCommands(String sessionId, String repositoryId, Object returnValue) Prepare a simulated response to getSCMCheckoutCommandsvoidprepareGetSCMCheckoutCommandsForReplica(String sessionId, String repositoryId, String replicaId, Object returnValue) Prepare a simulated response to getSCMCheckoutCommandsForReplicavoidprepareIsAdapterTypeValid(com.vasoftware.sf.server.types.NamedValue[] adapterTypeParams, String givenParamName, String givenParamValue, Object returnValue) Prepare a simulated response to isAdapterTypeValidvoidprepareMoveRepository(String sessionId, String repositoryId, String projectId, Object returnValue) Prepare a simulated response to moveRepositoryvoidprepareNullToEmptyString(String string, Object returnValue) Prepare a simulated response to nullToEmptyStringvoidprepareRemoveRepositoryFromReplica(String sessionId, String repositoryId, String replicaId) Prepare a simulated response to removeRepositoryFromReplicavoidprepareRemoveRepositoryFromReplica(String sessionId, String repositoryId, String replicaId, Exception exception) Prepare a simulated response to removeRepositoryFromReplicavoidprepareReplicateRepository(String sessionId, String repositoryId, String replicaId) Prepare a simulated response to replicateRepositoryvoidprepareReplicateRepository(String sessionId, String repositoryId, String replicaId, Exception exception) Prepare a simulated response to replicateRepositoryvoidprepareSetAuthorizedKeys(String sessionId, String authorizedKeys) Prepare a simulated response to setAuthorizedKeysvoidprepareSetAuthorizedKeys(String sessionId, String authorizedKeys, Exception exception) Prepare a simulated response to setAuthorizedKeysvoidprepareSetAuthorizedKeys(String sessionId, String username, String authorizedKeys) Prepare a simulated response to setAuthorizedKeysvoidprepareSetAuthorizedKeys(String sessionId, String username, String authorizedKeys, Exception exception) Prepare a simulated response to setAuthorizedKeysvoidprepareSetAuthorizedKeysForUser(String sessionId, String username, String authorizedKeys) Prepare a simulated response to setAuthorizedKeysForUservoidprepareSetAuthorizedKeysForUser(String sessionId, String username, String authorizedKeys, Exception exception) Prepare a simulated response to setAuthorizedKeysForUservoidprepareSetExternalSystemData(String sessionId, ExternalSystemSoapDO systemData) Prepare a simulated response to setExternalSystemDatavoidprepareSetExternalSystemData(String sessionId, ExternalSystemSoapDO systemData, Exception exception) Prepare a simulated response to setExternalSystemDatavoidprepareSetReplicaData(String sessionId, ReplicaDataSoapDO replica) Prepare a simulated response to setReplicaDatavoidprepareSetReplicaData(String sessionId, ReplicaDataSoapDO replica, Exception exception) Prepare a simulated response to setReplicaDatavoidprepareSetRepositoryData(String sessionId, Repository2SoapDO repository) Prepare a simulated response to setRepositoryDatavoidprepareSetRepositoryData(String sessionId, Repository2SoapDO repository, Exception exception) Prepare a simulated response to setRepositoryDatavoidremoveRepositoryFromReplica(String sessionId, String repositoryId, String replicaId) Simulate a call to removeRepositoryFromReplicavoidreplicateRepository(String sessionId, String repositoryId, String replicaId) Simulate a call to replicateRepositoryvoidsetAuthorizedKeys(String sessionId, String authorizedKeys) Simulate a call to setAuthorizedKeysvoidsetAuthorizedKeys(String sessionId, String username, String authorizedKeys) Simulate a call to setAuthorizedKeysvoidsetAuthorizedKeysForUser(String sessionId, String username, String authorizedKeys) Simulate a call to setAuthorizedKeysForUservoidsetExternalSystemData(String sessionId, ExternalSystemSoapDO systemData) Simulate a call to setExternalSystemDatavoidsetReplicaData(String sessionId, ReplicaDataSoapDO replica) Simulate a call to setReplicaDatavoidsetRepositoryData(String sessionId, Repository2SoapDO repository) Simulate a call to setRepositoryDataMethods 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
-
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:
getRepositoryListin 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:
getRepositoryListForExternalSystemin 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:
getCommitListin 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:
getCommitDatain 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:
getCommitData2in 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:
getRepositoryDatain 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:
getRepository2Datain 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:
getRepositoryDataByIdin 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:
getRepository2DataByIdin 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:
setRepositoryDatain 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:
getReplicaDatain interfaceIScmAppSoap- Parameters:
sessionId- the user sessionreplicaId- the replica server id- Returns:
- the replica server data
- Throws:
InvalidSessionFaultPermissionDeniedFaultSystemFaultNoSuchObjectFaultRemoteException- See Also:
-
prepareSetReplicaData
Prepare a simulated response to setReplicaData -
prepareSetReplicaData
Prepare a simulated response to setReplicaData -
setReplicaData
Simulate a call to setReplicaData- Specified by:
setReplicaDatain interfaceIScmAppSoap- Parameters:
sessionId- user session idreplica- the replica server data to be set- Throws:
InvalidSessionFaultPermissionDeniedFaultSystemFaultNoSuchObjectFaultVersionMismatchFaultRemoteException- 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:
getSCMCheckoutCommandin 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:
getSCMCheckoutCommandsin 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:
getSCMCheckoutCommandsForReplicain 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:
createRepositoryin 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:
createRepository2in 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:
deleteRepositoryin 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:
moveRepositoryin 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:
getScmAdapterNamesin 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:
getScmAdapterParameterNamesWithTypein 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:
addExternalSystemin 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:
getExternalSystemin 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:
getExternalSystemListin 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:
getExternalSystemList2in 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:
setExternalSystemDatain 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:
getCommitIdin 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:
getReplicableScmExternalSystemListin 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:
getReplicableScmExternalSystemList2in interfaceIScmAppSoap- Parameters:
sessionId- User session id.adapterName- the adapter name ornullto 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:
getReplicatedRepositoryListin 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:
getReplicaListForExternalSystemin 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:
getReplicaRepositoryListin 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:
replicateRepositoryin 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:
removeRepositoryFromReplicain 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:
getAuthorizedKeysForUserin 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:
getAuthorizedKeysin 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:
setAuthorizedKeysin 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:
setAuthorizedKeysForUserin 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:
setAuthorizedKeysin 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)
-