java.lang.Object
com.atlassian.greenhopper.service.lexorank.integrity.BucketFieldCheck

public class BucketFieldCheck extends Object
Prior to Agile 7.2.8 the LEXORANK table didn't have a BUCKET column, so added an integrity check that validates that this field is being populated correctly.
  • Field Details

    • lexoRankDao

      protected LexoRankDao lexoRankDao
    • failureReason

      protected String failureReason
    • exception

      protected Exception exception
  • Constructor Details

    • BucketFieldCheck

      public BucketFieldCheck(LexoRankDao lexoRankDao)
  • Method Details

    • getName

      public String getName()
    • getDescription

      public String getDescription()
    • isFatal

      public boolean isFatal()
    • check

      protected boolean check(Long rankFieldId) throws Exception
      Perform the check for the given lexorank custom field id.
      Returns:
      if the ranking for the given rank field id passed the check or not.
      Throws:
      Exception
    • getFailureReason

      public String getFailureReason()
    • fail

      protected boolean fail(String failureReason, Object... parameters)
    • performCheck

      public boolean performCheck(Long rankFieldId)