org.oscelot.webct.dao
Class WebCTApplication

java.lang.Object
  extended byorg.oscelot.webct.dao.WebCTApplication

public class WebCTApplication
extends java.lang.Object

The WebCTApplication class provides methods which relate to the WebCT installation

Version:
2.5 (31-Oct-11)
Author:
Stephen P Vickers

Field Summary
static int MAJOR_VERSION_AP1
           
static int MAJOR_VERSION_AP2
           
static int MAJOR_VERSION_V8
           
 
Constructor Summary
WebCTApplication()
           
 
Method Summary
static int getApplicationBuildVersion()
          Get the current build version of WebCT
static int getApplicationMajorVersion()
          Get the current major version of WebCT
static int getApplicationMinorVersion()
          Get the current minor version of WebCT
static int getApplicationPatchVersion()
          Get the current patch version of WebCT
static java.lang.String getApplicationRelease()
          Get the current release of WebCT
static java.lang.String getApplicationVersion()
          Get the current version of WebCT
static java.lang.String getInstanceName(javax.servlet.http.HttpServletRequest request)
          Get the name of the proxy tool instance
static boolean isDatabaseOracle()
          Is this WebCT installation using an Oracle database?
static boolean isDatabaseSQLServer()
          Is this WebCT installation using a Microsoft SQL Server database?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAJOR_VERSION_AP1

public static final int MAJOR_VERSION_AP1
See Also:
Constant Field Values

MAJOR_VERSION_AP2

public static final int MAJOR_VERSION_AP2
See Also:
Constant Field Values

MAJOR_VERSION_V8

public static final int MAJOR_VERSION_V8
See Also:
Constant Field Values
Constructor Detail

WebCTApplication

public WebCTApplication()
Method Detail

isDatabaseOracle

public static boolean isDatabaseOracle()
Is this WebCT installation using an Oracle database?

Returns:
true if the database is Oracle

isDatabaseSQLServer

public static boolean isDatabaseSQLServer()
Is this WebCT installation using a Microsoft SQL Server database?

Returns:
true if the database is Microsoft SQL Server

getApplicationVersion

public static java.lang.String getApplicationVersion()
                                              throws VistaDataException
Get the current version of WebCT

Returns:
a string comprising the major, minor, patch and build version numbers separated by periods (e.g. 14.0.3.10)
Throws:
VistaDataException

getApplicationRelease

public static java.lang.String getApplicationRelease()
                                              throws VistaDataException
Get the current release of WebCT

Returns:
a string comprising the version, minor version and service pack numbers separated by periods (e.g. 8.0.6). Versions prior to Release 8 do not include a service pack number and comprise both the Vista and Campus Edition release values (e.g. 4.2/6.2).
Throws:
VistaDataException

getApplicationMajorVersion

public static int getApplicationMajorVersion()
                                      throws VistaDataException
Get the current major version of WebCT

Returns:
the number of the major version of WebCT
Throws:
VistaDataException

getApplicationMinorVersion

public static int getApplicationMinorVersion()
                                      throws VistaDataException
Get the current minor version of WebCT

Returns:
the number of the minor version of WebCT
Throws:
VistaDataException

getApplicationPatchVersion

public static int getApplicationPatchVersion()
                                      throws VistaDataException
Get the current patch version of WebCT

Returns:
the number of the patch version of WebCT
Throws:
VistaDataException

getApplicationBuildVersion

public static int getApplicationBuildVersion()
                                      throws VistaDataException
Get the current build version of WebCT

Returns:
the number of the build version of WebCT
Throws:
VistaDataException

getInstanceName

public static java.lang.String getInstanceName(javax.servlet.http.HttpServletRequest request)
Get the name of the proxy tool instance

Returns:
the name of the proxy tool instance