org.hackystat.projectbrowser
Class ProjectBrowserApplication

java.lang.Object
  extended by org.apache.wicket.Application
      extended by org.apache.wicket.protocol.http.WebApplication
          extended by org.hackystat.projectbrowser.ProjectBrowserApplication

public class ProjectBrowserApplication
extends org.apache.wicket.protocol.http.WebApplication

The top-level web application instance for this ProjectBrowser.

Author:
Philip Johnson

Field Summary
 
Fields inherited from class org.apache.wicket.Application
CONFIGURATION, CONTEXTPATH, DEPLOYMENT, DEVELOPMENT
 
Constructor Summary
ProjectBrowserApplication()
          Creates a ProjectBrowserApplication, obtaining all ProjectBrowserProperties from the properties file.
ProjectBrowserApplication(java.util.Properties properties)
          Creates a ProjectBrowserApplication, in which the passed properties override the entries in the properties file.
 
Method Summary
 java.lang.String getApplicationLogo()
          Returns the application logo.
 java.lang.String getApplicationName()
          Returns the application name.
 java.lang.String getDailyProjectDataHost()
          Returns the DPD host.
 java.lang.Class<? extends org.apache.wicket.Page> getHomePage()
          Returns the home page for this application (SigninPage).
 java.util.logging.Logger getLogger()
          Returns the logger for this service.
 java.lang.String getPortfolioDefinitionDir()
          Return the directroy of portfolio definition xmls.
 ProjectBrowserProperties getProjectBrowserProperties()
          Returns the ProjectBrowserProperties instance associated with this web app.
 java.lang.String getProjectBrowserProperty(java.lang.String key)
          Returns the value associated with key, or null if not found.
 java.lang.String getSensorBaseHost()
          Returns the sensorbase host.
 java.lang.String getTelemetryHost()
          Returns the telemetry host.
 boolean hasApplicationLogo()
          Returns true if the user has supplied an application logo.
 void init()
          Do default setup and initialization when this web application is started up.
 boolean isBackgroundProcessEnable(java.lang.String pageName)
           
 boolean isLoggingUserUsage()
           
 boolean isPageAvailable(java.lang.String pageName)
           
 org.apache.wicket.Session newSession(org.apache.wicket.Request request, org.apache.wicket.Response response)
          Defines ProjectBrowserSession as the session instance created in this app.
 
Methods inherited from class org.apache.wicket.protocol.http.WebApplication
getApplicationKey, getConfigurationType, getDefaultRequestCycleFactory, getInitParameter, getRequestCycleProcessor, getResourceFinder, getServletContext, getSessionAttributePrefix, getWicketFilter, internalDestroy, internalInit, logEventTarget, logResponseTarget, mount, mount, mountBookmarkablePage, mountBookmarkablePage, mountSharedResource, newAjaxRequestTarget, newRequestCycle, newRequestCycleProcessor, newSession, newSession, newSessionStore, newWebRequest, newWebResponse, outputDevelopmentModeWarning, sessionDestroyed, setApplicationKey, setWicketFilter, unmount
 
Methods inherited from class org.apache.wicket.Application
addComponentInstantiationListener, addComponentOnAfterRenderListener, addComponentOnBeforeRenderListener, addRenderHeadListener, configure, destroy, exists, get, get, getApplicationKeys, getApplicationSettings, getConverterLocator, getDebugSettings, getExceptionSettings, getFrameworkSettings, getMarkupCache, getMarkupSettings, getMetaData, getName, getPageSettings, getRequestCycleFactory, getRequestCycleSettings, getRequestLogger, getRequestLoggerSettings, getResourceSettings, getSecuritySettings, getSessionFactory, getSessionSettings, getSessionStore, getSharedResources, initializeComponents, newConverterLocator, newRequestCycle, newRequestLogger, notifyRenderHeadListener, onDestroy, removeComponentInstantiationListener, removeComponentOnAfterRenderListener, removeComponentOnBeforeRenderListener, removeRenderHeadListener, set, setMetaData, unset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectBrowserApplication

public ProjectBrowserApplication()
Creates a ProjectBrowserApplication, obtaining all ProjectBrowserProperties from the properties file.


ProjectBrowserApplication

public ProjectBrowserApplication(java.util.Properties properties)
Creates a ProjectBrowserApplication, in which the passed properties override the entries in the properties file.

Parameters:
properties - A properties instance, the contents of which will override any other property settings.
Method Detail

getHomePage

public java.lang.Class<? extends org.apache.wicket.Page> getHomePage()
Returns the home page for this application (SigninPage).

Specified by:
getHomePage in class org.apache.wicket.Application
Returns:
The home page.

newSession

public org.apache.wicket.Session newSession(org.apache.wicket.Request request,
                                            org.apache.wicket.Response response)
Defines ProjectBrowserSession as the session instance created in this app.

Overrides:
newSession in class org.apache.wicket.protocol.http.WebApplication
Parameters:
request - The request.
response - The response.
Returns:
The current ProjectBrowserSession instance.

init

public void init()
Do default setup and initialization when this web application is started up.

Overrides:
init in class org.apache.wicket.protocol.http.WebApplication

isPageAvailable

public boolean isPageAvailable(java.lang.String pageName)
Parameters:
pageName - name of the page.
Returns:
true if the user set the page as available.

getPortfolioDefinitionDir

public java.lang.String getPortfolioDefinitionDir()
Return the directroy of portfolio definition xmls.

Returns:
the file path.

isBackgroundProcessEnable

public boolean isBackgroundProcessEnable(java.lang.String pageName)
Parameters:
pageName - name of the page.
Returns:
true if the user set the background process of the page enable.

getProjectBrowserProperties

public ProjectBrowserProperties getProjectBrowserProperties()
Returns the ProjectBrowserProperties instance associated with this web app.

Returns:
The properties.

getProjectBrowserProperty

public java.lang.String getProjectBrowserProperty(java.lang.String key)
Returns the value associated with key, or null if not found. Key should be one of the public static strings declared in ProjectBrowserProperties.

Parameters:
key - The key.
Returns:
The value associated with this key, or null if not found.

getLogger

public java.util.logging.Logger getLogger()
Returns the logger for this service.

Returns:
The logger.

getDailyProjectDataHost

public java.lang.String getDailyProjectDataHost()
Returns the DPD host.

Returns:
The DPD host.

getSensorBaseHost

public java.lang.String getSensorBaseHost()
Returns the sensorbase host.

Returns:
The sensorbase host.

getTelemetryHost

public java.lang.String getTelemetryHost()
Returns the telemetry host.

Returns:
The telemetry host.

getApplicationName

public java.lang.String getApplicationName()
Returns the application name.

Returns:
The application name.

getApplicationLogo

public java.lang.String getApplicationLogo()
Returns the application logo.

Returns:
The application logo.

hasApplicationLogo

public boolean hasApplicationLogo()
Returns true if the user has supplied an application logo.

Returns:
True if application logo exists.

isLoggingUserUsage

public boolean isLoggingUserUsage()
Returns:
true if the user set to enable usage logging