Class ChangesBean
- java.lang.Object
-
- jetbrains.buildServer.controllers.changes.ChangesBean
-
public class ChangesBean extends Object
Groups changes by users, per-user changes are in the same order as they were in the build.- Author:
- Pavel.Sher Date: 31.08.2006
-
-
Constructor Summary
Constructors Constructor Description ChangesBean(BuildPromotion buildPromotion, int limit, SUser currentUser)
ChangesBean(BuildPromotion buildPromotion, int limit, SUser currentUser, int calcLimit)
Constructor for containing changes in build promotionChangesBean(SBuild build, int limit)
Constructor for containing changes in buildChangesBean(SBuild build, int maxChangeCount, SUser currentUser)
ChangesBean(SBuildType ownerBuildType, int limit, SUser currentUser, BuildTypeBranchBean branchBean)
Constructor for pending changes in build configuration
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsUserChanges()
static ChangesBean
createForChangesLink(BuildPromotion buildPromotion, SUser curUser)
Creates changes bean to be used in Changes link in web interface.SBuild
getBuild()
BuildPromotion
getBuildPromotion()
List<UserChanges>
getChanges()
int
getLimit()
List<ChangeDescriptor>
getModifications()
SBuildType
getOwnerBuildType()
SQueuedBuild
getQueuedBuild()
int
getTotal()
SUser
getUser()
Map<String,List<ChangeDescriptor>>
groupChangesByVcsUsernameSignature(List<ChangeDescriptor> descriptors)
boolean
isChangesLimitExceeded()
boolean
isContainsVcsRootsOfDifferentTypes()
boolean
isOutOfChangesSequence()
boolean
isPendingChanges()
static boolean
lazyChanges(BuildPromotion promotion)
-
-
-
Constructor Detail
-
ChangesBean
public ChangesBean(@NotNull SBuild build, int limit)
Constructor for containing changes in build- Parameters:
build
- buildlimit
- max number of changes to return (use 0 for no limit)
-
ChangesBean
public ChangesBean(@NotNull BuildPromotion buildPromotion, int limit, @Nullable SUser currentUser)
-
ChangesBean
public ChangesBean(@NotNull SBuildType ownerBuildType, int limit, SUser currentUser, @NotNull BuildTypeBranchBean branchBean)
Constructor for pending changes in build configuration- Parameters:
ownerBuildType
- build configurationlimit
- max number of changes to return (use 0 for no limit)
-
ChangesBean
public ChangesBean(@NotNull BuildPromotion buildPromotion, int limit, @Nullable SUser currentUser, int calcLimit)
Constructor for containing changes in build promotion- Parameters:
buildPromotion
- build promotionlimit
- max number of changes to return (use 0 for no limit)calcLimit
- max number of changes to calculate per VCS root (use 0 for no limit). The CalcLimit is different from the limit: with calcLimit=0 and limit=10 all changes are calculated but only 100 returned. CalcLimit could be used in places where total number of changes doesn't matter.
-
-
Method Detail
-
createForChangesLink
@NotNull public static ChangesBean createForChangesLink(@NotNull BuildPromotion buildPromotion, @Nullable SUser curUser)
Creates changes bean to be used in Changes link in web interface.- Parameters:
buildPromotion
-curUser
-- Returns:
-
lazyChanges
public static boolean lazyChanges(@NotNull BuildPromotion promotion)
-
containsUserChanges
public boolean containsUserChanges()
-
isChangesLimitExceeded
public boolean isChangesLimitExceeded()
-
getLimit
public int getLimit()
-
getTotal
public int getTotal()
-
getBuildPromotion
@Nullable public BuildPromotion getBuildPromotion()
-
getBuild
@Nullable public SBuild getBuild()
-
getQueuedBuild
@Nullable public SQueuedBuild getQueuedBuild()
-
getChanges
public List<UserChanges> getChanges()
-
getModifications
@NotNull public List<ChangeDescriptor> getModifications()
-
isPendingChanges
public boolean isPendingChanges()
-
isOutOfChangesSequence
public boolean isOutOfChangesSequence()
-
getUser
public SUser getUser()
-
groupChangesByVcsUsernameSignature
@NotNull public Map<String,List<ChangeDescriptor>> groupChangesByVcsUsernameSignature(@NotNull List<ChangeDescriptor> descriptors)
-
getOwnerBuildType
public SBuildType getOwnerBuildType()
-
isContainsVcsRootsOfDifferentTypes
public boolean isContainsVcsRootsOfDifferentTypes()
-
-