Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

edu.virtualschool.jwaa.xml.ApplicationElement Class Reference

Inheritance diagram for edu.virtualschool.jwaa.xml.ApplicationElement:

edu.virtualschool.jwaa.GenericIdentifiable Collaboration diagram for edu.virtualschool.jwaa.xml.ApplicationElement:

Collaboration graph
[legend]
List of all members.

Detailed Description

Each directory in jwaa/root contains an application.xml file that is managed by an instance of this class. Each instance holds a fileMonitor for detecting when the application.xml file has changed and needs to be reloaded, a database pool of connections to that application's database, a VelocityEngine instance, the application's name and decription, the application's dictionary, roles, and a list of that application's pages element names.

Definition at line 40 of file ApplicationElement.java.

Public Member Functions

void addToDictionary (String key, String value) throws ValidationFault
PageElement findPage (String id)
PagesElement findPages (String id)
RoleAbstraction findRole (String personIdentifier)
NameField getName ()
TextField getDescription ()
VelocityEngine getVelocityEngine ()
String getDirectory ()
String getFilePath ()
RootDirectory getRoot ()
PageElement getOuterHomePage ()
PageElement getInnerHomePage ()
PageElement getFaultPage ()
PageElement getNotFoundPage ()
PageElement getRefusePage ()
HashMap getDictionary ()
DB getDBMS () throws DBPool.Fault, Config.Fault, DB.Fault
Object getLogger ()

Package Functions

 ApplicationElement (RootDirectory root, File file) throws Fault
void update () throws Fault
PageElement validateRequiredPage (String id) throws ValidationFault

Package Attributes

final RootDirectory root
final FileField fileMonitor
DBPool dbPool
VelocityEngine velocityEngine
NameField name
TextField description
final HashMap dictionary = new HashMap()
final HashMap roleMap = new HashMap()
final ArrayList pagesList = new ArrayList()

Static Package Attributes

final Logger logger = Logger.getLogger(ApplicationElement.class.getName())
final String innerHomePageID = "INNER"
final String outerHomePageID = "OUTER"
final String portalPageID = "PORTAL"
final String notFoundPageID = "NOTFOUND"
final String faultPageID = "FAULT"
final String refusePageID = "DENY"
final String[] requiredPages


Member Data Documentation

final String [] edu.virtualschool.jwaa.xml.ApplicationElement.requiredPages [static, package]
 

Initial value:

 new String[] {
    innerHomePageID,
    outerHomePageID,
    portalPageID,
    notFoundPageID,
    faultPageID,
    refusePageID,
  }

Definition at line 60 of file ApplicationElement.java.


The documentation for this class was generated from the following file: