|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.templating.elements.AbstractTemplatingElement info.magnolia.templating.elements.AbstractContentTemplatingElement
public abstract class AbstractContentTemplatingElement
Abstract base class for elements that operate on a specified piece of content.
Constructor Summary | |
---|---|
AbstractContentTemplatingElement(ServerConfiguration server,
RenderingContext renderingContext)
|
Method Summary | |
---|---|
javax.jcr.Node |
getContent()
|
String |
getNodeIdentifier()
|
protected String |
getNodePath(javax.jcr.Node node)
|
protected javax.jcr.Node |
getPassedContent()
Returns the content passed to the element (content or workspace/path attribute) or null if nothing was passed. |
String |
getPath()
|
String |
getWorkspace()
|
protected boolean |
renderComments()
Override to set conditions for rendering of cms:comments. |
protected void |
restoreAttributesInWebContext(Map<String,Object> attributes,
int scope)
Restores the original values of attributes in web context under the specified scope. |
protected void |
setAttributesInWebContext(Map<String,Object> attributes,
int scope)
Sets attributes in web context under the specified scope. |
void |
setContent(javax.jcr.Node node)
|
void |
setNodeIdentifier(String nodeIdentifier)
|
void |
setPath(String path)
|
void |
setWorkspace(String workspace)
|
Methods inherited from class info.magnolia.templating.elements.AbstractTemplatingElement |
---|
begin, currentContent, end, getDefinitionMessage, getInterfaceMessage, getRenderingContext, getServer, isAdmin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractContentTemplatingElement(ServerConfiguration server, RenderingContext renderingContext)
Method Detail |
---|
protected String getNodePath(javax.jcr.Node node) throws RenderException
RenderException
protected javax.jcr.Node getPassedContent() throws RenderException
RenderException
public javax.jcr.Node getContent()
public void setContent(javax.jcr.Node node)
public String getWorkspace()
public void setWorkspace(String workspace)
public String getNodeIdentifier()
public void setNodeIdentifier(String nodeIdentifier)
public String getPath()
public void setPath(String path)
protected void setAttributesInWebContext(Map<String,Object> attributes, int scope)
scope
- one of Context.APPLICATION_SCOPE
Context.SESSION_SCOPE
Context.LOCAL_SCOPE
.protected void restoreAttributesInWebContext(Map<String,Object> attributes, int scope)
scope
- one of Context.APPLICATION_SCOPE
Context.SESSION_SCOPE
Context.LOCAL_SCOPE
.protected boolean renderComments()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |