class: ApplicationBean

public class: ApplicationBean
Author: : Thomas Diebäcker, created 09.08.2007
Project: Phase: 1.0; Status: Proposed; Version: : $Revision: 2538 $ $LastChangedDate: 2009-04-24 1; Complexity: 1
Dates: Created: 16.07.2009 15:34:10; Modified: 16.07.2009 15:34:10;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {ED9454A3-36FA-41f4-A827-294424B889A1}
ApplicationBean which stores all application wide values.
 

Goto: Custom Properties, Fields, Methods

Extends: FacesBean

See also: SystemType, FacesBean

Appears in: pubman

Connections
 
Custom Properties
 
ApplicationBean Attributes
Attribute Details
private const String
  APP_TITLE
Initial: "Publication Manager"
private String
  appContext
Initial: ""
private String
  appTitle
Initial: null
public static const String
  BEAN_NAME
Initial: "ApplicationBean"
private static Logger
  logger
Initial: Logger.getLogger(ApplicationBean.class)
private static const String
  PROPERTY_FILENAME
Initial: "solution.properties"
Notes: filename of the ear-internal property file
private SystemType
  systemType
Notes: system type of this application instance
 
ApplicationBean Methods
Operation Details
public
ApplicationBean():
Sequential
Notes: Public constructor.
public
fetchSystemTypeFromProperty():SystemType
Sequential
Tags: throws=PubManVersionNotAvailableException
Notes: Provides the escidoc instance string.
@return the escidoc instance
public
getAppContext():String
Sequential
Notes: Returns the current application context.
@return the application context
public
getAppTitle():String
Sequential
Notes: Returns the title and version of the application, shown in the header.
@return applicationtitle, including version
public
getCheckSystemTypeProduction():boolean
Sequential
public
getLocaleCharacterEncoding():String
Sequential
Notes: Returns an appropriate character encoding based on the Locale defined for the current JavaServer Faces view. If no more suitable encoding can be found, return "UTF-8" as a general purpose default. The default implementation uses the implementation from our superclass, FacesBean.
@return the local character encoding
public
getPubmanInstanceUrl():String
Sequential
Tags: throws=PubManVersionNotAvailableException
Notes: Provides the escidoc instance string.
@return the escidoc instance
private
getVersion():String
Sequential
Tags: throws=PubManVersionNotAvailableException
Notes: Provides the escidoc version string.
@return the escidoc version
public
init():void
Sequential
Notes: This method is called when this bean is initially added to application scope. Typically, this occurs as a result of evaluating a value binding or method binding expression, which utilizes the managed bean facility to instantiate this bean and store it into application scope.
public
setAppContext(
   String appContext):void
Sequential
Notes: Sets the application context.