public interface EditContext
EditConfig
.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Returns the context attribute for the given name
|
Component |
getComponent()
Returns the primary edit component for this context.
|
ComponentContext |
getComponentContext()
Returns the primary component context that is bound to this edit context.
|
EditConfig |
getEditConfig()
Retrieves the edit config for the current component respecting the
context hierarchy.
|
EditContext |
getParent()
Returns the parent edit context or
null if this context
is the root context. |
EditContext |
getRoot()
Returns the root edit context.
|
void |
includeEpilog(SlingHttpServletRequest req,
SlingHttpServletResponse resp,
WCMMode mode)
Includes the html epilog of this context into the response.
|
void |
includeProlog(SlingHttpServletRequest req,
SlingHttpServletResponse resp,
WCMMode mode)
Includes the html prolog needed for editing
|
boolean |
isRoot()
Checks if this is the root edit context.
|
java.lang.Object |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets a context attribute with the given name.
|
void |
setContentPath(java.lang.String path)
Sets the content path that is used when including the java script call
for the edit bars.
|
boolean isRoot()
true
if this is the root edit contextEditContext getParent()
null
if this context
is the root context.null
EditContext getRoot()
ComponentContext getComponentContext()
Component getComponent()
EditConfig getEditConfig()
getComponent().getEditConfig()
since it
can be merged with the child configs of its parents.java.lang.Object getAttribute(java.lang.String name)
name
- the name of the attributenull
if not defined.void setContentPath(java.lang.String path)
path
- content pathjava.lang.Object setAttribute(java.lang.String name, java.lang.Object value)
null
it is removed from the attribute map.name
- the name of the attributevalue
- the attribute valuenull
void includeProlog(SlingHttpServletRequest req, SlingHttpServletResponse resp, WCMMode mode) throws java.io.IOException, ServletException
req
- the requestresp
- the responsemode
- the wcm modejava.io.IOException
- if an I/O error occursServletException
- if a servlet error occursvoid includeEpilog(SlingHttpServletRequest req, SlingHttpServletResponse resp, WCMMode mode) throws java.io.IOException, ServletException
req
- the requestresp
- the responsemode
- the wcm modejava.io.IOException
- if an I/O error occursServletException
- if a servlet error occursCopyright © 2010 - 2020 Adobe. All Rights Reserved