|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.context.AbstractContext info.magnolia.context.ContextDecorator
public class ContextDecorator
Subclass this context if you like to decorate an other context.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary | |
---|---|
protected Context |
ctx
|
Fields inherited from class info.magnolia.context.AbstractContext |
---|
locale |
Fields inherited from interface info.magnolia.context.Context |
---|
APPLICATION_SCOPE, ATTRIBUTE_COMMENT, ATTRIBUTE_EXCEPTION, ATTRIBUTE_MESSAGE, ATTRIBUTE_PATH, ATTRIBUTE_POSSIBLE_CSRF, ATTRIBUTE_RECURSIVE, ATTRIBUTE_REPOSITORY, ATTRIBUTE_UUID, ATTRIBUTE_VERSION, ATTRIBUTE_VERSION_MAP, LOCAL_SCOPE, SESSION_SCOPE |
Constructor Summary | |
---|---|
ContextDecorator(Context ctx)
|
Method Summary | |
---|---|
AccessManager |
getAccessManager(String name)
Delegates call to the original context. |
Object |
getAttribute(String name,
int scope)
Delegates call to the original context. |
Map<String,Object> |
getAttributes(int scope)
Delegates call to the original context. |
javax.jcr.Session |
getJCRSession(String workspaceName)
|
QueryManager |
getQueryManager(String workspaceId)
Delegates call to the original context. |
User |
getUser()
Delegates call to the original context. |
Context |
getWrappedContext()
Returns the context wrapped by this decorator. |
void |
release()
Release any resource used by this Context (e.g. jcr sessions). |
void |
removeAttribute(String name,
int scope)
Delegates call to the original context. |
void |
setAttribute(String name,
Object value,
int scope)
Delegates call to the original context. |
Methods inherited from class info.magnolia.context.AbstractContext |
---|
clear, containsKey, containsValue, entrySet, get, getAttribute, getAttributes, getAttributeStrategy, getHierarchyManager, getLocale, getMessages, getMessages, getRepositoryStrategy, getSubject, isEmpty, keySet, put, putAll, remove, setAttributeStrategy, setLocale, setRepositoryStrategy, size, values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Field Detail |
---|
protected Context ctx
Constructor Detail |
---|
public ContextDecorator(Context ctx)
ctx
- the context to decorateMethod Detail |
---|
public AccessManager getAccessManager(String name)
getAccessManager
in class AbstractContext
public Object getAttribute(String name, int scope)
getAttribute
in class AbstractContext
name
- to which value is associated toscope
- the scope (request, session, application)
public Map<String,Object> getAttributes(int scope)
getAttributes
in class AbstractContext
public javax.jcr.Session getJCRSession(String workspaceName) throws javax.jcr.LoginException, javax.jcr.RepositoryException
getJCRSession
in class AbstractContext
javax.jcr.LoginException
javax.jcr.RepositoryException
public User getUser()
getUser
in class AbstractContext
public void setAttribute(String name, Object value, int scope)
setAttribute
in class AbstractContext
name
- is used as a keyscope
- , highest level of scope from which this attribute is visiblepublic QueryManager getQueryManager(String workspaceId)
getQueryManager
in class AbstractContext
public void removeAttribute(String name, int scope)
removeAttribute
in class AbstractContext
public Context getWrappedContext()
public void release()
AbstractContext
release
in class AbstractContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |