Class BambooVcsBranchImpl

java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.plan.branch.BambooVcsBranchImpl
All Implemented Interfaces:
BambooIdProvider, BambooObject, BambooVcsBranch, NameProvider, Cloneable

@Entity public class BambooVcsBranchImpl extends BambooEntityObject implements BambooVcsBranch
  • Constructor Details

    • BambooVcsBranchImpl

      public BambooVcsBranchImpl()
    • BambooVcsBranchImpl

      public BambooVcsBranchImpl(Chain chain, VcsBranch newBranch)
    • BambooVcsBranchImpl

      public BambooVcsBranchImpl(long id, @NotNull @NotNull String name)
    • BambooVcsBranchImpl

      public BambooVcsBranchImpl(long id, @NotNull @NotNull String name, @Nullable @Nullable Date detectedDeletionDate, long chainId)
  • Method Details

    • getChain

      @NotNull public @NotNull Chain getChain()
      Description copied from interface: BambooVcsBranch
      Returns the master chain associated with the VCS branch. Depending on how it is retrieved, the value could not be set though.
      Specified by:
      getChain in interface BambooVcsBranch
      Returns:
      master chain associated with the VCS branch
    • setChain

      public void setChain(@NotNull @NotNull Chain chain)
      Specified by:
      setChain in interface BambooVcsBranch
    • getChainId

      public long getChainId()
      Specified by:
      getChainId in interface BambooVcsBranch
    • setChainId

      public void setChainId(@NotNull @org.jetbrains.annotations.NotNull long chainId)
      Specified by:
      setChainId in interface BambooVcsBranch
    • getName

      @NotNull public @NotNull String getName()
      Specified by:
      getName in interface NameProvider
    • setName

      public void setName(@NotNull @NotNull String name)
      Specified by:
      setName in interface BambooVcsBranch
    • getDetectedDeletionDate

      @Nullable public @Nullable Date getDetectedDeletionDate()
      Specified by:
      getDetectedDeletionDate in interface BambooVcsBranch
    • setDetectedDeletionDate

      public void setDetectedDeletionDate(@Nullable @Nullable Date detectedDeletionDate)
      Specified by:
      setDetectedDeletionDate in interface BambooVcsBranch
    • isEqualToBranchWith

      public boolean isEqualToBranchWith(@NotNull @NotNull String otherName)
      Specified by:
      isEqualToBranchWith in interface BambooVcsBranch
      Returns:
      true if this object is equal to a branch with given properties.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class com.atlassian.core.bean.EntityObject
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class com.atlassian.core.bean.EntityObject
    • toString

      public String toString()
      Overrides:
      toString in class Object