|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.UserChangeInfo
public class UserChangeInfo
information about modification
| Nested Class Summary | |
|---|---|
static class |
UserChangeInfo.BuildTypeChangeStatus
Describes the status of the change in the particular build configuration |
| Constructor Summary | |
|---|---|
UserChangeInfo(VcsModification modification,
java.util.List<java.lang.Long> usersId,
PersonalChangeDescriptor personalChangeDescriptor)
Construct the object in initial state. |
|
| Method Summary | |
|---|---|
void |
addBuildType(BuildType type)
Add information about this build configuration to the change |
int |
compareTo(UserChangeInfo o)
|
java.util.List<Build> |
getAllInstances()
Returns list of build instance representatives for each build configuration where this change has been first included. |
java.util.List<BuildType> |
getBuildTypes()
|
UserChangeStatus |
getChangeStatus()
Return status of this change (calculated across all build configurations) |
Build |
getCurrentBuild(BuildType type)
Returns last build for the specified configuration, which contains the change. |
UserChangeInfo.BuildTypeChangeStatus |
getDetails(BuildType buildType)
Returns details object which describes status of the change in this particular build configuration. |
java.util.Map<BuildType,UserChangeInfo.BuildTypeChangeStatus> |
getDetailsMap()
Returns a map from build configuration to the details object which describes status of the change in this particular build configuration. |
Build |
getFirstRunIn(BuildType type)
Returns build instance, according to affected configuration, null if change is pending for the configuration |
Build |
getFixedIn(BuildType type)
Returns first successful build for the specified configuration, which contains the change. |
VcsModification |
getModification()
Returns modification set that contains this change. |
PersonalChangeDescriptor |
getPersonalChangeDescriptor()
Info about personal change and its status |
java.util.List<java.lang.Long> |
getUserIds()
Returns the list of user ids whose version control names are matched with the specified configuration user name |
boolean |
isBuildResultsAvailable()
Returns true if there is at least one started or finished build with this change |
boolean |
isChangeCanceled()
|
boolean |
isChangeFinished()
|
boolean |
isChangeSuccessful()
|
boolean |
isSuspicious()
Returns true if the change is suspisious. |
boolean |
isSuspicious(BuildType type)
Return if the change is suspicious for the specified configuration. |
void |
removeType(BuildType type)
Remove information about this build configuration from the change |
void |
setChangeStatus(UserChangeStatus changeStatus)
Set status of this change (calculated across all build configurations) |
void |
setCurrent(BuildType type,
Build instance)
Set current build of the change in corresponding build configuration |
void |
setFirstRunIn(BuildType type,
Build instance)
Set the first build which contains this change in given build configuration |
void |
setFixedIn(BuildType type,
Build instance)
|
void |
sortBuildTypes()
Resort build configurations, related to the change |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UserChangeInfo(VcsModification modification,
java.util.List<java.lang.Long> usersId,
PersonalChangeDescriptor personalChangeDescriptor)
modification - corresponding VCS modificationusersId - users who participated in changepersonalChangeDescriptor - information about personal build| Method Detail |
|---|
public void setChangeStatus(UserChangeStatus changeStatus)
changeStatus - new status for the changepublic UserChangeStatus getChangeStatus()
public VcsModification getModification()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isBuildResultsAvailable()
public java.util.Map<BuildType,UserChangeInfo.BuildTypeChangeStatus> getDetailsMap()
public UserChangeInfo.BuildTypeChangeStatus getDetails(BuildType buildType)
buildType - build configuration
public void setFirstRunIn(BuildType type,
@Nullable
Build instance)
type - build configurationinstance - build instance, may be null
public void setFixedIn(BuildType type,
@Nullable
Build instance)
public void setCurrent(BuildType type,
Build instance)
type - build configurationinstance - current build in this build configurationUserChangeInfo.BuildTypeChangeStatus.getCurrentBuild()@NotNull public java.util.List<BuildType> getBuildTypes()
@Nullable public Build getFirstRunIn(BuildType type)
type - build configuration
@Nullable public Build getFixedIn(BuildType type)
null if configuration is still failing or pending.
type - build configuration
@Nullable public Build getCurrentBuild(BuildType type)
null if configuration is still pending.
type - build configuration
public java.util.List<Build> getAllInstances()
public int compareTo(UserChangeInfo o)
compareTo in interface java.lang.Comparable<UserChangeInfo>public void removeType(BuildType type)
type - build configuration to remove
public void addBuildType(@NotNull
BuildType type)
type - build configuration to addpublic void sortBuildTypes()
public boolean isSuspicious()
true if the change is suspisious.
public boolean isSuspicious(BuildType type)
type - build configuration
true if change included to the build, which failed or has not been run yet for specified
configuration.public java.util.List<java.lang.Long> getUserIds()
public PersonalChangeDescriptor getPersonalChangeDescriptor()
public boolean isChangeFinished()
public boolean isChangeCanceled()
public boolean isChangeSuccessful()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||