com.atlassian.jira.appconsistency.db
Class BuildVersionCheck

java.lang.Object
  extended by com.atlassian.jira.appconsistency.db.BuildVersionCheck
All Implemented Interfaces:
DatabaseCheck

public class BuildVersionCheck
extends Object
implements DatabaseCheck

This is a database check that verifies that user is not running old version of JIRA on the data in the database created by more recent version of JIRA. This check can be turned off by setting "-Djira.ignore.buildversion=true".


Constructor Summary
BuildVersionCheck()
           
 
Method Summary
 String getFaultDescription()
          Implement this method to return the description of the fault.
 String getHTMLFaultDescription()
          Implement this method to return the error message of the fault.
 String getName()
          Implement this method to return the name of this check
 boolean isOk()
          Implement this method to return true if the check is positive and false in the case of negarive result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildVersionCheck

public BuildVersionCheck()
Method Detail

getName

public String getName()
Description copied from interface: DatabaseCheck
Implement this method to return the name of this check

Specified by:
getName in interface DatabaseCheck
Returns:
name

isOk

public boolean isOk()
Description copied from interface: DatabaseCheck
Implement this method to return true if the check is positive and false in the case of negarive result.

Specified by:
isOk in interface DatabaseCheck
Returns:
true if positive

getHTMLFaultDescription

public String getHTMLFaultDescription()
Description copied from interface: DatabaseCheck
Implement this method to return the error message of the fault. This method should return null in the case the check was positive. This message is used to present the user with a message viewable in a web browser.

Specified by:
getHTMLFaultDescription in interface DatabaseCheck
Returns:
HTML formatted fault description

getFaultDescription

public String getFaultDescription()
Description copied from interface: DatabaseCheck
Implement this method to return the description of the fault. This method should return null in the case the check was positive. This message is used to present the user with a message to the console

Specified by:
getFaultDescription in interface DatabaseCheck
Returns:
fault description


Copyright © 2002-2008 Atlassian. All Rights Reserved.