public interface IScmAppSoap
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addExternalSystem(java.lang.String sessionId,
java.lang.String adapterType,
java.lang.String title,
java.lang.String description,
SoapNamedValues adapterTypeParameters)
Adds an external system of the given adapter type with its title, description and respective list of parameters.
|
RepositorySoapDO |
createRepository(java.lang.String sessionId,
java.lang.String projectId,
java.lang.String externalSystemId,
java.lang.String repositoryDirectory,
java.lang.String title,
java.lang.String description,
boolean idRequiredOnCommit,
boolean hideMonitoringDetails,
java.lang.String comment)
Creates a new repository in the given SCM server
|
Repository2SoapDO |
createRepository2(java.lang.String sessionId,
java.lang.String projectId,
java.lang.String externalSystemId,
java.lang.String repositoryDirectory,
java.lang.String title,
java.lang.String description,
boolean idRequiredOnCommit,
boolean hideMonitoringDetails,
java.lang.String comment,
RepositoryParameter2SoapDO[] params)
Creates a new repository in the given SCM server
|
void |
deleteRepository(java.lang.String sessionId,
java.lang.String repositoryId)
Delete the repository with specified ID.
|
java.lang.String |
getAuthorizedKeys(java.lang.String sessionId)
Get all authorized keys for calling user.
|
java.lang.String |
getAuthorizedKeysForUser(java.lang.String sessionId,
java.lang.String username)
Get all authorized keys for a user with a given username.
|
CommitSoapDO |
getCommitData(java.lang.String sessionId,
java.lang.String commitId)
Deprecated.
from 7.0.0.1 in favour of getCommitData2() that returns Commit2SoapDO, similar to CommitSoapDO except that the scmfile list does not contain the commit message for each file.
|
Commit2SoapDO |
getCommitData2(java.lang.String sessionId,
java.lang.String commitId)
Returns data associated with a specific commit.
|
java.lang.String |
getCommitId(java.lang.String sessionId,
java.lang.String revision,
java.lang.String externalSystemId,
java.lang.String repoPath)
Returns a commit Id corresponding to an commit version.
|
CommitSoapList |
getCommitList(java.lang.String sessionId,
java.lang.String repositoryId,
SoapFilter[] filters)
Lists the commits on a given repository.
|
ExternalSystemSoapDO |
getExternalSystem(java.lang.String sessionId,
java.lang.String systemId)
Returns information associated with an external system integrated with TeamForge.
|
ExternalSystemSoapList |
getExternalSystemList(java.lang.String sessionId)
Gets a list of external scm systems integrated with TeamForge.
|
ReplicableScmExternalSystemSoapList |
getReplicableScmExternalSystemList(java.lang.String sessionId)
Lists the replicable external systems.
|
ReplicatedRepositorySoapList |
getReplicatedRepositoryList(java.lang.String sessionId,
java.lang.String masterRepositoryId)
Lists replicated repositories of the specified SCM master
|
Repository2SoapDO |
getRepository2Data(java.lang.String sessionId,
java.lang.String externalSystemId,
java.lang.String repositoryDirectory)
Returns data associated with a specific repository.
|
Repository2SoapDO |
getRepository2DataById(java.lang.String sessionId,
java.lang.String repositoryId)
Returns data associated with a specific repository Note that a user has permission to view the repository data if the user belongs to a role that has either full view permission or any path-based permission on this repository.
|
RepositorySoapDO |
getRepositoryData(java.lang.String sessionId,
java.lang.String externalSystemId,
java.lang.String repositoryDirectory)
Returns data associated with a specific repository.
|
RepositorySoapDO |
getRepositoryDataById(java.lang.String sessionId,
java.lang.String repositoryId)
Returns data associated with a specific repository Note that a user has permission to view the repository data if the user belongs to a role that has either full view permission or any path-based permission on this repository.
|
RepositorySoapList |
getRepositoryList(java.lang.String sessionId,
java.lang.String projectId)
Lists the repositories within a given project that the current user has been granted view permission through roles and path based permission.
|
RepositorySoapList |
getRepositoryListForExternalSystem(java.lang.String sessionId,
java.lang.String externalSystemId,
java.lang.String userName)
Lists the repositories on a given external system (SCM Adapter) for which the specified user has been granted view permission.
|
java.lang.String[] |
getScmAdapterNames(java.lang.String sessionId)
Returns a string array containing the known list of supported SCM adapters on the server.
|
SoapNamedValues |
getScmAdapterParameterNamesWithType(java.lang.String sessionId,
java.lang.String adapterName)
Returns the SCM adapter parameter names with their corresponding type.
|
java.lang.String |
getSCMCheckoutCommand(java.lang.String sessionId,
java.lang.String repositoryId,
java.lang.String userName)
Returns the command needed to check out a specific repository.
|
RepositorySoapDO |
moveRepository(java.lang.String sessionId,
java.lang.String repositoryId,
java.lang.String projectId)
Moves the repository from its current project to the one specified.
|
void |
setAuthorizedKeys(java.lang.String sessionId,
java.lang.String authorizedKeys)
Set authorized keys for calling user.
|
void |
setAuthorizedKeys(java.lang.String sessionId,
java.lang.String username,
java.lang.String authorizedKeys)
Deprecated.
from 7.2.0.0 in favour of setAuthorizedKeysForUser() which does the same.
|
void |
setAuthorizedKeysForUser(java.lang.String sessionId,
java.lang.String username,
java.lang.String authorizedKeys)
Set authorized keys for given user.
|
void |
setExternalSystemData(java.lang.String sessionId,
ExternalSystemSoapDO systemData)
Updates information associated with an external system integrated with TeamForge.
|
void |
setRepositoryData(java.lang.String sessionId,
Repository2SoapDO repository)
Sets the repository data
|
RepositorySoapList getRepositoryList(java.lang.String sessionId, java.lang.String projectId) throws java.rmi.RemoteException
sessionId
- User session id.projectId
- The project id.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified project id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
RepositorySoapList getRepositoryListForExternalSystem(java.lang.String sessionId, java.lang.String externalSystemId, java.lang.String userName) throws java.rmi.RemoteException
sessionId
- User session id. Must be site admin.externalSystemId
- The external system (SCM adapter) id.userName
- Name of the user.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified external system id is not validcom.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.com.collabnet.ce.soap60.fault.IllegalArgumentFault
- when any of the parameters is null/emptyjava.rmi.RemoteException
CommitSoapList getCommitList(java.lang.String sessionId, java.lang.String repositoryId, SoapFilter[] filters) throws java.rmi.RemoteException
filters
. The valid filter names are: createdAfter, createdBefore, createdBy.sessionId
- User session id.repositoryId
- The repository id.filters
- Array of filters to apply (null to return unfiltered list).com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified repository id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.com.collabnet.ce.soap60.fault.InvalidFilterFault
- If the filters are not valid.java.rmi.RemoteException
CommitSoapDO getCommitData(java.lang.String sessionId, java.lang.String commitId) throws java.rmi.RemoteException
sessionId
- User session id.commitId
- The commit id.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified commit id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
Commit2SoapDO getCommitData2(java.lang.String sessionId, java.lang.String commitId) throws java.rmi.RemoteException
sessionId
- User session id.commitId
- The commit id.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified commit id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
RepositorySoapDO getRepositoryData(java.lang.String sessionId, java.lang.String externalSystemId, java.lang.String repositoryDirectory) throws java.rmi.RemoteException
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 incom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified repository id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
Repository2SoapDO getRepository2Data(java.lang.String sessionId, java.lang.String externalSystemId, java.lang.String repositoryDirectory) throws java.rmi.RemoteException
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 incom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified repository id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
RepositorySoapDO getRepositoryDataById(java.lang.String sessionId, java.lang.String repositoryId) throws java.rmi.RemoteException
sessionId
- User session id.repositoryId
- The id of the repositorycom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified repository id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
Repository2SoapDO getRepository2DataById(java.lang.String sessionId, java.lang.String repositoryId) throws java.rmi.RemoteException
sessionId
- User session id.repositoryId
- The id of the repositorycom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified repository id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
void setRepositoryData(java.lang.String sessionId, Repository2SoapDO repository) throws java.rmi.RemoteException
sessionId
- User session id.repository
- The repository datacom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified repository id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
java.lang.String getSCMCheckoutCommand(java.lang.String sessionId, java.lang.String repositoryId, java.lang.String userName) throws java.rmi.RemoteException
sessionId
- User session id.repositoryId
- The id of the repositoryuserName
- User name.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified repository id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
RepositorySoapDO createRepository(java.lang.String sessionId, java.lang.String projectId, java.lang.String externalSystemId, java.lang.String repositoryDirectory, java.lang.String title, java.lang.String description, boolean idRequiredOnCommit, boolean hideMonitoringDetails, java.lang.String comment) throws java.rmi.RemoteException
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 repositorycom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified repository id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
Repository2SoapDO createRepository2(java.lang.String sessionId, java.lang.String projectId, java.lang.String externalSystemId, java.lang.String repositoryDirectory, java.lang.String title, java.lang.String description, boolean idRequiredOnCommit, boolean hideMonitoringDetails, java.lang.String comment, RepositoryParameter2SoapDO[] params) throws java.rmi.RemoteException
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 parametercom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified repository id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
void deleteRepository(java.lang.String sessionId, java.lang.String repositoryId) throws java.rmi.RemoteException
sessionId
- The user's SOAP session idrepositoryId
- The id of the repository to be deletedcom.collabnet.ce.soap60.fault.InvalidSessionFault
- If the user's session is invalidcom.collabnet.ce.soap60.fault.PermissionDeniedFault
- If the user doesn't have proper permissions to delete the repositorycom.collabnet.ce.soap60.fault.SystemFault
- All other faultscom.collabnet.ce.soap60.fault.NoSuchObjectFault
- If repository id doesn't existjava.rmi.RemoteException
RepositorySoapDO moveRepository(java.lang.String sessionId, java.lang.String repositoryId, java.lang.String projectId) throws java.rmi.RemoteException
sessionId
- The user's SOAP session idrepositoryId
- The id of the repository to moveprojectId
- The id of the project to move the repository tocom.collabnet.ce.soap60.fault.InvalidSessionFault
- If the user's session is invalidcom.collabnet.ce.soap60.fault.NoSuchObjectFault
- If either the repository id or project id doesn't existcom.collabnet.ce.soap60.fault.ObjectAlreadyExistsFault
- If the destination project is the same as the current projectcom.collabnet.ce.soap60.fault.PermissionDeniedFault
- If the user doesn't have proper permissions on either the repository or the projectcom.collabnet.ce.soap60.fault.SystemFault
- All other faultsjava.rmi.RemoteException
java.lang.String[] getScmAdapterNames(java.lang.String sessionId) throws java.rmi.RemoteException
sessionId
- The user's SOAP session idcom.collabnet.ce.soap60.fault.InvalidSessionFault
- If the session is invalidcom.collabnet.ce.soap60.fault.PermissionDeniedFault
- If the user is not a site administratorcom.collabnet.ce.soap60.fault.SystemFault
- If anything else goes wrongjava.rmi.RemoteException
SoapNamedValues getScmAdapterParameterNamesWithType(java.lang.String sessionId, java.lang.String adapterName) throws java.rmi.RemoteException
sessionId
- The user's SOAP session idadapterName
- The SCM adapter's namecom.collabnet.ce.soap60.fault.InvalidSessionFault
- If the session is invalidcom.collabnet.ce.soap60.fault.NoSuchObjectFault
- If the adapter name is not availablecom.collabnet.ce.soap60.fault.PermissionDeniedFault
- If the user is not a site administratorcom.collabnet.ce.soap60.fault.SystemFault
- If anything else goes wrongjava.rmi.RemoteException
java.lang.String addExternalSystem(java.lang.String sessionId, java.lang.String adapterType, java.lang.String title, java.lang.String description, SoapNamedValues adapterTypeParameters) throws java.rmi.RemoteException
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. The list of the needed parameters and their expected associated data type is retrieved by calling "getScmAdapterParameterNamesWithType(adapterType)".com.collabnet.ce.soap60.fault.InvalidSessionFault
- When the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- If the adapter does not exist internally.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- When the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- When wrong parameters are provided or an unexpected system error occurs.java.rmi.RemoteException
ExternalSystemSoapDO getExternalSystem(java.lang.String sessionId, java.lang.String systemId) throws java.rmi.RemoteException
sessionId
- the user session id.systemId
- The GUID of the external system.com.collabnet.ce.soap60.fault.InvalidSessionFault
- When the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- If the external system does not exist internally.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- When the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- When wrong parameters are provided or an unexpected system error occurs.java.rmi.RemoteException
ExternalSystemSoapList getExternalSystemList(java.lang.String sessionId) throws java.rmi.RemoteException
sessionId
- the user session id.com.collabnet.ce.soap60.fault.InvalidSessionFault
- When the specified session id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- When the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- When wrong parameters are provided or an unexpected system error occurs.java.rmi.RemoteException
void setExternalSystemData(java.lang.String sessionId, ExternalSystemSoapDO systemData) throws java.rmi.RemoteException
sessionId
- the user session id.systemData
- the external system data to be updatedcom.collabnet.ce.soap60.fault.NoSuchObjectFault
- If the external system does not exist internally.com.collabnet.ce.soap60.fault.SystemFault
- When wrong parameters are provided or an unexpected system error occurs.com.collabnet.ce.soap60.fault.InvalidSessionFault
- When the specified session id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- When the user has insufficient privileges.com.collabnet.ce.soap60.fault.InvalidOperationFault
- When an attempt is made to set different adapterName or adapterCatrogory.java.rmi.RemoteException
java.lang.String getCommitId(java.lang.String sessionId, java.lang.String revision, java.lang.String externalSystemId, java.lang.String repoPath) throws java.rmi.RemoteException
sessionId
- User session id.revision
- The Revision NumberexternalSystemId
- External system id.repoPath
- Repository path.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the session is invalid (expired / time out)com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user does not have read access.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified repository id is invalid.java.rmi.RemoteException
ReplicableScmExternalSystemSoapList getReplicableScmExternalSystemList(java.lang.String sessionId) throws java.rmi.RemoteException
sessionId
- User session id.com.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
ReplicatedRepositorySoapList getReplicatedRepositoryList(java.lang.String sessionId, java.lang.String masterRepositoryId) throws java.rmi.RemoteException
sessionId
- the session keymasterRepositoryId
- the repository Id for which to find replicascom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified master repository id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
java.lang.String getAuthorizedKeysForUser(java.lang.String sessionId, java.lang.String username) throws java.rmi.RemoteException
sessionId
- the session keyusername
- name of the usercom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges (the sessionId is not of a site admin).com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
java.lang.String getAuthorizedKeys(java.lang.String sessionId) throws java.rmi.RemoteException
sessionId
- the session keycom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
void setAuthorizedKeys(java.lang.String sessionId, java.lang.String authorizedKeys) throws java.rmi.RemoteException
sessionId
- the session keyauthorizedKeys
- the string containing authorized keys, separated by '\n' character.com.collabnet.ctf.common.exceptions.InvalidUsernameException
- when username is invalidcom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.java.rmi.RemoteException
void setAuthorizedKeysForUser(java.lang.String sessionId, java.lang.String username, java.lang.String authorizedKeys) throws java.rmi.RemoteException
sessionId
- the session keyusername
- username for whom the authorized keys to be setauthorizedKeys
- the string containing authorized keys, separated by '\n' character.java.rmi.RemoteException
- when username is invalidvoid setAuthorizedKeys(java.lang.String sessionId, java.lang.String username, java.lang.String authorizedKeys) throws java.rmi.RemoteException
sessionId
- the session keyusername
- username for whom the authorized keys to be setauthorizedKeys
- the string containing authorized keys, separated by '\n' character.com.collabnet.ctf.common.exceptions.InvalidUsernameException
- when username is invalidcom.collabnet.ce.soap60.fault.InvalidSessionFault
- when the specified session id is invalid.com.collabnet.ce.soap60.fault.SystemFault
- when an unexpected system error occurs.com.collabnet.ce.soap60.fault.PermissionDeniedFault
- when the user has insufficient privileges.com.collabnet.ce.soap60.fault.NoSuchObjectFault
- when the specified username is invalid.java.rmi.RemoteException