jetbrains.buildServer
Interface BuildServer

All Known Subinterfaces:
SBuildServer

public interface BuildServer

This interface provides information about TeamCity server and allows to get some server data.


Method Summary
 byte[] fetchData(long userId, long buildId, java.lang.String sourceId, java.lang.String whatToFetch)
          Get custom data provided by some data provider.
 java.util.List<java.lang.String> getResponsibilityIds(long userId)
          Returns all configurations specified user is currently responsible for.
 

Method Detail

getResponsibilityIds

java.util.List<java.lang.String> getResponsibilityIds(long userId)
Returns all configurations specified user is currently responsible for.

Parameters:
userId - TeamCity user unique identifier.
Returns:
list of configuration ids (buildTypeIds) the user is responsible for.

fetchData

byte[] fetchData(long userId,
                 long buildId,
                 java.lang.String sourceId,
                 java.lang.String whatToFetch)
Get custom data provided by some data provider. Data providers are implementations of jetbrains.buildServer.serverSide.DataFetcher interfaces, which are registered on the server side using jetbrains.buildServer.serverSide.SBuildServer#registerExtension method. This method is just like #getDataUrl method, but it should be used when data itself should be obtained, not URL reference to it.

Parameters:
userId - Id of user who tries to fetch the data from the server.
buildId - buildId parameter, which is passed to the fetchData method of DataFetcher interface implementation.
sourceId - source identifier, which was used while DataFetcher registration using SBuildServer#registerExtension method.
whatToFetch - custom parameter, which is passed to the fetchData method of DataFetcher interface implementation.
Returns:
data, returned by the corresponding implementation of DataFetcher interface, if such DataFetcher was registered; empty array if no corresponding DataFetcher found.