◆ ContextConstructor()
org.turro.elephant.web.ContextConstructor.ContextConstructor |
( |
IConstructor |
constructor, |
|
|
ElContext |
context |
|
) |
| |
◆ start()
void org.turro.elephant.web.ContextConstructor.start |
( |
| ) |
throws ServletException, IOException |
Definition at line 47 of file ContextConstructor.java.
50 if(iel ==
null)
return;
59 SessionTags.get(constructor).add(webContext);
61 ElephantMarker em =
new ElephantMarker(constructor);
62 if(webContext.isControlVersion() ||
63 constructor.
isInRole(
"control-version:admin") ||
65 em.put(
"fileVersion",
new FileVersionWrapper(iel, 20, 3));
68 if(webContext.isPrintVersion() && context.
canPrint()) {
69 String printPath = ElephantContext.getRootWebPath() +
"/print_" + context.
getPath();
70 em.put(
"printPath", printPath);
72 Navigator navigator =
new Navigator(context);
73 navigator.setDynamicLoad(
"dynamic".equals(ElephantContext.getContextLoad()));
74 em.put(
"nav", navigator);
75 em.put(
"traversal", webContext.isTraversalNavigation());
77 em.put(
"webmap",
new WebMap(constructor));
79 iel.getMetas().forEach(meta -> constructor.
addMeta(meta));
82 em.process(
"layout",
template);
WebContext getWebContext()
void setTitle(String title)
IElement getElementInstance()
void initiate(IConstructor constructor)
boolean isWebAdministering()
void addMeta(String meta)
boolean isInRole(String role)
void setConfiguration(IConstructor constructor, ElContext context)
The documentation for this class was generated from the following file: