public interface

ServerInfoService

com.atlassian.fisheye.spi.services.ServerInfoService

Summary

Public Methods
abstract String getAppHome()
abstract String getInstanceDir()
abstract String getProductName()
abstract VersionInfo getProductVersionInfo()
Get product version info
abstract TimeZone getServerTimeZone()
abstract boolean isCrucible()
abstract boolean isFishEye()

Public Methods

public abstract String getAppHome ()

Returns
  • an absoluate path to the applications home direction.

public abstract String getInstanceDir ()

Returns
  • an absolute path to the instance directory

public abstract String getProductName ()

Returns
  • the name of the product. Depending on which are enabled, it will return "Crucible", "Fisheye" or "Fisheye and Crucible"

public abstract VersionInfo getProductVersionInfo ()

Get product version info

Returns
  • versionInfo

public abstract TimeZone getServerTimeZone ()

Returns
  • the time zone that the server is running in.

public abstract boolean isCrucible ()

Returns
  • true if the server is running with a license that includes Crucible, false otherwise. This is useful for Crucible plugins to verify whether Crucible services are available.

public abstract boolean isFishEye ()

Returns
  • true if the server is running with a license that includes FishEye, false otherwise. This is useful for FishEye plugins to verify whether FishEye services are available.