com.atlassian.jira.appconsistency.db
Class PostgresSchemaConfigCheck

java.lang.Object
  extended by com.atlassian.jira.appconsistency.db.PostgresSchemaConfigCheck
All Implemented Interfaces:
StartupCheck

public class PostgresSchemaConfigCheck
extends java.lang.Object
implements StartupCheck

A checker that will print a log message if the database is Postgres and the schema name contains upper case. see JRA-16780.

Since:
v4.0

Constructor Summary
PostgresSchemaConfigCheck(ExternalLinkUtil externalLinkUtil)
           
 
Method Summary
 java.lang.String getFaultDescription()
          Implement this method to return the description of the fault.
 java.lang.String getHTMLFaultDescription()
          Implement this method to return the error message of the fault.
 java.lang.String getName()
          Implement this method to return the name of this check
 boolean isOk()
          Always returns true and will log a message if the database is POSTGRES and the configured schema name contains upper case characters.
 void setLoggedError(boolean loggedError)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostgresSchemaConfigCheck

public PostgresSchemaConfigCheck(ExternalLinkUtil externalLinkUtil)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: StartupCheck
Implement this method to return the name of this check

Specified by:
getName in interface StartupCheck
Returns:
name

isOk

public boolean isOk()
Always returns true and will log a message if the database is POSTGRES and the configured schema name contains upper case characters.

Specified by:
isOk in interface StartupCheck
Returns:
true

setLoggedError

public void setLoggedError(boolean loggedError)

getFaultDescription

public java.lang.String getFaultDescription()
Description copied from interface: StartupCheck
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 StartupCheck
Returns:
fault description

getHTMLFaultDescription

public java.lang.String getHTMLFaultDescription()
Description copied from interface: StartupCheck
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 StartupCheck
Returns:
HTML formatted fault description


Copyright © 2002-2010 Atlassian. All Rights Reserved.