|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.cms.CMSContext
The entry point into all the global state that CCM CMS code expects to have available to it when running, e.g. the current content section, current item
This is a session object that provides an environment in which code can execute. The CMSContext contains all session-specific variables. One session object is maintained per thread.
Accessors of this class will assert that the item it returned is not null. If the caller wants to handle the case where an item is null explicitly, then use the hasContentItem and hasContentSection methods first.
KernelContext
,
CMS
Field Summary | |
static String |
versionId
|
Method Summary | |
ContentItem |
getContentItem()
Returns the current content item |
ContentSection |
getContentSection()
Gets the current content section |
String |
getDebugInfo()
|
SecurityManager |
getSecurityManager()
Returns the current security manager. |
boolean |
hasContentItem()
Checks if a content item is available |
boolean |
hasContentSection()
Checks if a content section is available |
boolean |
hasSecurityManager()
Checks if there is a CMS SecurityManager for this
session. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String versionId
Method Detail |
public final String getDebugInfo()
public final boolean hasContentSection()
public final ContentSection getContentSection()
public final boolean hasContentItem()
public final ContentItem getContentItem()
public final boolean hasSecurityManager()
SecurityManager
for this
session.
true
if a security manager is availableSecurityManager
public final SecurityManager getSecurityManager()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |