public class ContentContext<C extends Content<CA,CF>,CA extends AbstractContentAttribute,CF extends AbstractContentFacet> extends Object implements Serializable
ThreadLocal
context for passing WebUserShell
into and any domain specific objects within a Thread.Transformer
cannot obtain this via a defined argument anyway.Modifier and Type | Field and Description |
---|---|
static ThreadLocal<ContentContext> |
threadLocal
Use this to pass this context for a given WebRequest
|
Constructor and Description |
---|
ContentContext() |
Modifier and Type | Method and Description |
---|---|
C |
getContentDescriber() |
Status |
getStatus() |
WebUserShell |
getUserShell()
The
WebUserShell will be available to the script to FacetMeta.getDisplayTransformer() , while rendering of final content |
void |
setContentDescriber(C contentDescriber) |
void |
setStatus(Status status) |
void |
setUserShell(WebUserShell userShell)
The
WebUserShell will be available to the script to FacetMeta.getDisplayTransformer() , while rendering of final content |
public static transient ThreadLocal<ContentContext> threadLocal
public Status getStatus()
public void setStatus(Status status)
public WebUserShell getUserShell()
WebUserShell
will be available to the script to FacetMeta.getDisplayTransformer()
, while rendering of final contentpublic void setUserShell(WebUserShell userShell)
WebUserShell
will be available to the script to FacetMeta.getDisplayTransformer()
, while rendering of final contentpublic C getContentDescriber()
public void setContentDescriber(C contentDescriber)
Copyright © 2018. All rights reserved.