jetbrains.buildServer
Class DataFactory

java.lang.Object
  extended by jetbrains.buildServer.DataFactory

public class DataFactory
extends java.lang.Object

Is used to create data objects according to specified interfaces. After this conversion data object might to be converted to strings with XStream and be sent to some remote client


Nested Class Summary
static interface DataFactory.BuildTypeInstancesFilter
           
 
Constructor Summary
DataFactory()
           
 
Method Summary
 BuildRunnerData createBuildRunnerDataOn(BuildRunnerDescriptor descriptor)
           
protected  BuildTypeData createBuildTypeDataOn(BuildType buildType)
           
 ProjectData createData(BuildProject project, DataFactory.BuildTypeInstancesFilter loadInstances, Filter<BuildType> buildTypeFilter, User user)
           
 BuildTypeData createData(BuildType buildType, DataFactory.BuildTypeInstancesFilter loadInstances, User user)
           
 BuildInstanceData createData(Build instance, User user)
           
 UserData createData(User userById)
           
 VcsModificationData createData(VcsModification modification)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataFactory

public DataFactory()
Method Detail

createData

public BuildTypeData createData(BuildType buildType,
                                DataFactory.BuildTypeInstancesFilter loadInstances,
                                @Nullable
                                User user)

createData

public BuildInstanceData createData(Build instance,
                                    @Nullable
                                    User user)

createData

public VcsModificationData createData(VcsModification modification)

createData

public ProjectData createData(BuildProject project,
                              DataFactory.BuildTypeInstancesFilter loadInstances,
                              Filter<BuildType> buildTypeFilter,
                              User user)

createData

public UserData createData(User userById)

createBuildTypeDataOn

@NotNull
protected BuildTypeData createBuildTypeDataOn(@NotNull
                                                      BuildType buildType)

createBuildRunnerDataOn

@NotNull
public BuildRunnerData createBuildRunnerDataOn(@NotNull
                                                       BuildRunnerDescriptor descriptor)