public class

PostgresSchemaConfigCheck

extends Object
implements StartupCheck
java.lang.Object
   ↳ com.atlassian.jira.appconsistency.db.PostgresSchemaConfigCheck

Class Overview

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

see JRA-16780.

Summary

Public Constructors
PostgresSchemaConfigCheck(Supplier<DatasourceInfo> datasourceInfoSupplier, ExternalLinkUtil externalLinkUtil)
Public Methods
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()
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)
void stop()
Called when the instance is coming down
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.startup.StartupCheck

Public Constructors

public PostgresSchemaConfigCheck (Supplier<DatasourceInfo> datasourceInfoSupplier, ExternalLinkUtil externalLinkUtil)

Public Methods

public String getFaultDescription ()

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

Returns
  • fault description

public String getHTMLFaultDescription ()

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.

Returns
  • HTML formatted fault description

public String getName ()

Implement this method to return the name of this check

Returns
  • name

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.

Returns
  • true

public void setLoggedError (boolean loggedError)

public void stop ()

Called when the instance is coming down

public String toString ()