app

Object
   |
   +--app


 
Properties Summary
 Application __app__
          This property contains a reference this application's instance of the Packages.helma.framework.core.Application class.
 Object data
          Object that serves as a cache for application specific data.
 String[] globalMacroPath
          The app.globalMacroPath property allows to define a search path for global macros.
 Number maxThreads
          This property contains the maximum number of additional threads (=request evaluators)

The maximum number of additional threads that are being created by Helma to handle incoming requests.
 Map modules
          Map object that can be used as an application wide data cache

This property offers a dedicated place to store module-related data on an application wide level.
 Function processMacroParameter
          This allows the application to set a callback function for pre-processing macro parameters formatted as $(...).
 Map properties
          Map of any specified application or server properties

This property offers access to each key/value pair defined in either app.properties or in server.properties.
 Array repositories
          List of the application's code repositories

This property offers a dedicated place to store module-related data on an application wide level.
 
Methods Summary
 void addCronJob(functionNameAsString, year, month, day, weekday, hour, minute)
           Adds a global function to the list of CronJobs that are being called periodically.
 void addRepository(<String> repository)
           Adds a code repository to the current application
 void clearCache()
           Removes all objects from the object cache for the current application.
 Number countSessions()
           Returns the number of currently active sessions.
 SessionObject createSession(sessionID)
           Creates a SessionObject with the passed sessionID as its unique identifier.
 void debug(<String> filenameOrText,<String> text)
           Writes a string to a log file if debug is set to true in app.properties.
 Number getActiveThreads()
           Returns the number of currently active threads (=request evaluators).
 Array getActiveUsers()
           Returns an array of Users, that are currently logged in.
 String getAppDir()
           Returns the absolute path to the application directory.
 Number getCacheUsage()
           Returns the number of currently cached objects for the current application.
 Object getCronJobs()
           Returns an object of scheduled cron jobs.
 String getDir()
           Returns the absolute path to the application directory.
 Number getErrorCount()
           Returns the number of errors that have occurred since the application has been started.
 Number getFreeThreads()
           Returns the number of currently free threads (i.e.
 Number getMaxThreads()
           Returns the maximum number of threads (i.e.
 String getName()
           Returns the name of the current application, i.e.
 Array getRegisteredUsers()
           Returns an array of all existing users.
 Number getRequestCount()
           Returns the number of web requests that occurred since the application has been started.
 String getServerDir()
           Returns the absolute path to the home directory of this Helma installation.
 SessionObject getSession(<String> sessionID)
           Returns a SessionObject identified through the passed sessionID, if such a session exists.
 Array getSessions()
           Returns an array of all currently active sessions, represented as SessionObjects.
 Array getSessionsForUser(<User> user)
           Returns an array of active sessions for the specified user

Returns an array of all currently active sessions, which have been associated with the passed User.
 Map getSkinfiles()
           Returns a Map that allows access to all defined file-based skins.
 Date getUpSince()
           Returns the timestamp of when that application has been started.
 User getUser(<String> username)
           Returns a User identified through the passed username.
 Number getXmlrpcCount()
           Returns the number of XmlRpc requests that occurred since the application has been started.
 Object invoke(<Object> thisObject,<Function> fnc,<Array> args,<Number> timeout)
           Trigger a synchronous Helma invocation.
 Object invokeAsync(<Object> thisObject,<Function> fnc,<Array> args,<Number> timeout)
           Trigger an asynchronous Helma invocation.
 void log(<String> filenameOrText,<String> text)
           Writes a string to a log file.
 User registerUser(<String> username, <String> password)
           Creates a new User object

Creates a new HopObject of prototype User, stores it persistently, and returns the created User object.



When mapping the User prototype to a relational database, the type.properties file must contain mappings for the '_name'-property (the username) and for a property named 'password'.
 void removeCronJob(<String> functionName)
           Removes a CronJob, identified through the passed function name, from the list of CronJobs.


Properties Detail

__app__

Application __app__

data

Object data

globalMacroPath

String[] globalMacroPath

maxThreads

Number maxThreads

modules

Map modules

processMacroParameter

Function processMacroParameter

properties

Map properties

repositories

Array repositories

Method Detail

addCronJob

void addCronJob(functionNameAsString, year, month, day, weekday, hour, minute)

addRepository

void addRepository(<String> repository)

clearCache

void clearCache()

countSessions

Number countSessions()

createSession

SessionObject createSession(sessionID)

debug

void debug(<String> filenameOrText,<String> text)

getActiveThreads

Number getActiveThreads()

getActiveUsers

Array getActiveUsers()

getAppDir

String getAppDir()

getCacheUsage

Number getCacheUsage()

getCronJobs

Object getCronJobs()

getDir

String getDir()

getErrorCount

Number getErrorCount()

getFreeThreads

Number getFreeThreads()

getMaxThreads

Number getMaxThreads()

getName

String getName()

getRegisteredUsers

Array getRegisteredUsers()

getRequestCount

Number getRequestCount()

getServerDir

String getServerDir()

getSession

SessionObject getSession(<String> sessionID)

getSessions

Array getSessions()

getSessionsForUser

Array getSessionsForUser(<User> user)

getSkinfiles

Map getSkinfiles()

getUpSince

Date getUpSince()

getUser

User getUser(<String> username)

getXmlrpcCount

Number getXmlrpcCount()

invoke

Object invoke(<Object> thisObject,<Function> fnc,<Array> args,<Number> timeout)

invokeAsync

Object invokeAsync(<Object> thisObject,<Function> fnc,<Array> args,<Number> timeout)

log

void log(<String> filenameOrText,<String> text)

registerUser

User registerUser(<String> username, <String> password)

removeCronJob

void removeCronJob(<String> functionName)


Documentation generated by JSDoc on Thu Apr 5 01:59:00 2007