Class 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 Detail

      • ChangesBean

        public ChangesBean​(@NotNull
                           SBuild build,
                           int limit)
        Constructor for containing changes in build
        Parameters:
        build - build
        limit - max number of changes to return (use 0 for no limit)
      • ChangesBean

        public ChangesBean​(SBuild build,
                           int maxChangeCount,
                           SUser currentUser)
      • 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 configuration
        limit - 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 promotion
        limit - 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()
      • isPendingChanges

        public boolean isPendingChanges()
      • isOutOfChangesSequence

        public boolean isOutOfChangesSequence()
      • getUser

        public SUser getUser()
      • getOwnerBuildType

        public SBuildType getOwnerBuildType()
      • isContainsVcsRootsOfDifferentTypes

        public boolean isContainsVcsRootsOfDifferentTypes()