|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.gwt.shared.CmsTemplateContextInfo
public class CmsTemplateContextInfo
Client-compatible bean with information about the current template context.
| Field Summary | |
|---|---|
static java.lang.String |
DUMMY_ELEMENT_MARKER
Dummy element marker class. |
static java.lang.String |
EMPTY_VALUE
The constant used for empty setting. |
static java.lang.String |
SETTING
The setting name used for storing the compatible template contexts. |
| Constructor Summary | |
|---|---|
CmsTemplateContextInfo()
Default constructor. |
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,CmsDefaultSet<java.lang.String>> |
getAllowedContexts()
Gets the map of forbidden contexts for resource types. |
java.util.Map<java.lang.String,java.lang.String> |
getContextLabels()
Gets the map of labels for the different template contexts. |
java.lang.String |
getContextProvider()
Gets the name of the context provider class. |
java.lang.String |
getCookieName()
Gets the name of the cookie used for overriding the template context. |
java.lang.String |
getCurrentContext()
Gets the key of the currently active template context. |
java.lang.String |
getSelectedContext()
Gets the key of the currently selected template context, using the cookie. |
CmsXmlContentProperty |
getSettingDefinition()
Gets the property definition for the templateContexts setting. |
void |
setAllowedContexts(java.util.Map<java.lang.String,CmsDefaultSet<java.lang.String>> allowedContextMap)
Sets the allowed contexts. |
void |
setContextLabels(java.util.Map<java.lang.String,java.lang.String> contextLabels)
Sets the map of labels for the contexts. |
void |
setContextProvider(java.lang.String contextProvider)
Sets the context provider class name. |
void |
setCookieName(java.lang.String cookieName)
Sets the name of the cookie used for overriding the template context. |
void |
setCurrentContext(java.lang.String context)
Sets the active context. |
void |
setSelectedContext(java.lang.String selectedContext)
Sets the selected context. |
void |
setSettingDefinition(CmsXmlContentProperty definition)
Sets the property definition for the templateContexts setting. |
boolean |
shouldShowElementTemplateContextSelection()
Returns true if the template context selection should be shown for container elements. |
boolean |
shouldShowTemplateContextContextMenuEntry()
Returns true if the template context selection context menu entry should be shown. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DUMMY_ELEMENT_MARKER
public static final java.lang.String EMPTY_VALUE
public static final java.lang.String SETTING
| Constructor Detail |
|---|
public CmsTemplateContextInfo()
| Method Detail |
|---|
public java.util.Map<java.lang.String,CmsDefaultSet<java.lang.String>> getAllowedContexts()
public java.util.Map<java.lang.String,java.lang.String> getContextLabels()
public java.lang.String getContextProvider()
public java.lang.String getCookieName()
public java.lang.String getCurrentContext()
public java.lang.String getSelectedContext()
public CmsXmlContentProperty getSettingDefinition()
public void setAllowedContexts(java.util.Map<java.lang.String,CmsDefaultSet<java.lang.String>> allowedContextMap)
allowedContextMap - the map of allowed contextspublic void setContextLabels(java.util.Map<java.lang.String,java.lang.String> contextLabels)
contextLabels - the map of context labelspublic void setContextProvider(java.lang.String contextProvider)
contextProvider - the context provider class namepublic void setCookieName(java.lang.String cookieName)
cookieName - the name of the cookie used for overriding the template contextpublic void setCurrentContext(java.lang.String context)
context - the active contextpublic void setSelectedContext(java.lang.String selectedContext)
selectedContext - the selected contextpublic void setSettingDefinition(CmsXmlContentProperty definition)
definition - the property definitionpublic boolean shouldShowElementTemplateContextSelection()
public boolean shouldShowTemplateContextContextMenuEntry()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||