|
||||||||||
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 |
---|
java.util.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_RECURSIVE, ATTRIBUTE_REPOSITORY, ATTRIBUTE_UUID, ATTRIBUTE_VERSION, ATTRIBUTE_VERSION_MAP, LOCAL_SCOPE, SESSION_SCOPE |
Constructor Summary | |
---|---|
ContextDecorator(Context ctx)
|
Method Summary | |
---|---|
AccessManager |
getAccessManager(java.lang.String repositoryId,
java.lang.String workspaceId)
Delegates call to the original context. |
java.lang.Object |
getAttribute(java.lang.String name,
int scope)
Delegates call to the original context. |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes(int scope)
Delegates call to the original context. |
HierarchyManager |
getHierarchyManager(java.lang.String repositoryId,
java.lang.String workspaceId)
Delegates call to the original context. |
QueryManager |
getQueryManager(java.lang.String repositoryId,
java.lang.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. |
void |
removeAttribute(java.lang.String name,
int scope)
Delegates call to the original context. |
void |
setAttribute(java.lang.String name,
java.lang.Object value,
int scope)
Delegates call to the original context. |
Methods inherited from class info.magnolia.context.AbstractContext |
---|
clear, containsKey, containsValue, entrySet, get, getAccessManager, getAttribute, getAttributes, getAttributeStrategy, getHierarchyManager, getLocale, getMessages, getMessages, getQueryManager, getRepositoryStrategy, 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(java.lang.String repositoryId, java.lang.String workspaceId)
getAccessManager
in class AbstractContext
public java.lang.Object getAttribute(java.lang.String name, int scope)
getAttribute
in class AbstractContext
name
- to which value is associated toscope
- the scope (request, session, application)
public java.util.Map<java.lang.String,java.lang.Object> getAttributes(int scope)
getAttributes
in class AbstractContext
public HierarchyManager getHierarchyManager(java.lang.String repositoryId, java.lang.String workspaceId)
getHierarchyManager
in class AbstractContext
public User getUser()
getUser
in class AbstractContext
public void setAttribute(java.lang.String name, java.lang.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(java.lang.String repositoryId, java.lang.String workspaceId)
getQueryManager
in class AbstractContext
public void removeAttribute(java.lang.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 |