com.arsdigita.kernel
Class Kernel

java.lang.Object
  extended bycom.arsdigita.kernel.Kernel

public class Kernel
extends Object

A central location for commonly used kernel services and their accessories.

Context. getContext() fetches the context record (KernelContext) of the current thread.

The system party. getSystemParty() returns the party used to perform work as "the system".

Author:
Rafael Schloming, Richard Li, Justin Ross
See Also:
KernelConfig, KernelContext, KernelExcursion

Field Summary
static String SYSTEM_PARTY_EMAIL
          The email address of the built-in system party.
static String versionId
           
 
Constructor Summary
Kernel()
           
 
Method Summary
static KernelConfig getConfig()
           
static KernelContext getContext()
          Get the context record of the current thread.
static User getPublicUser()
          Get the User that represents "the public", i.e.
static SecurityConfig getSecurityConfig()
           
static Party getSystemParty()
          Get the system party, the agent of any work the system performs, as apart from what some user or group does.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

SYSTEM_PARTY_EMAIL

public static final String SYSTEM_PARTY_EMAIL
The email address of the built-in system party.

See Also:
Constant Field Values
Constructor Detail

Kernel

public Kernel()
Method Detail

getConfig

public static final KernelConfig getConfig()

getSecurityConfig

public static final SecurityConfig getSecurityConfig()

getContext

public static final KernelContext getContext()
Get the context record of the current thread.


getSystemParty

public static final Party getSystemParty()
Get the system party, the agent of any work the system performs, as apart from what some user or group does. Returns null if the system party is not defined.


getPublicUser

public static final User getPublicUser()
Get the User that represents "the public", i.e. non-logged-in users.



Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC