Package org.openbravo.client.kernel
Class SessionDynamicTemplateComponent
- java.lang.Object
-
- org.openbravo.client.kernel.BaseComponent
-
- org.openbravo.client.kernel.BaseTemplateComponent
-
- org.openbravo.client.kernel.SessionDynamicTemplateComponent
-
- All Implemented Interfaces:
Component
- Direct Known Subclasses:
ApplicationDynamicComponent
,ApplicationMenuComponent
,HeartBeatPopUpComponent
,I18NComponent
,MyOpenbravoComponent
,NavigationBarComponent
,PropertiesComponent
,UserInfoComponent
public abstract class SessionDynamicTemplateComponent extends BaseTemplateComponent
Classes extending this one will be used bySessionDynamicResourceComponent
to generate the components that should be created before the loading of the javascript content of the application.
-
-
Field Summary
-
Fields inherited from class org.openbravo.client.kernel.BaseTemplateComponent
BASE_QUALIFIER, DATA_PARAMETER
-
Fields inherited from class org.openbravo.client.kernel.BaseComponent
adcs
-
-
Constructor Summary
Constructors Constructor Description SessionDynamicTemplateComponent()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Template
getComponentTemplate()
String
getETag()
An ETag is a hash-like string which is used to determine if content has changed since the last request for the content.protected abstract String
getTemplateId()
-
Methods inherited from class org.openbravo.client.kernel.BaseTemplateComponent
generate, getData, setComponentTemplate
-
Methods inherited from class org.openbravo.client.kernel.BaseComponent
bypassAuthentication, createComponent, getADCS, getApplicationName, getContentType, getContextUrl, getDependencies, getId, getLastModified, getModule, getModulePackageName, getParameter, getParameterNames, getParameters, getSafeValue, hasParameter, isClassicMode, isInDevelopment, isInDevelopment, isJavaScriptComponent, nullifyModuleCache, setDependencies, setId, setParameters, stripHost
-
-
-
-
Method Detail
-
getTemplateId
protected abstract String getTemplateId()
-
getComponentTemplate
protected Template getComponentTemplate()
- Overrides:
getComponentTemplate
in classBaseTemplateComponent
-
getETag
public final String getETag()
Description copied from interface:Component
An ETag is a hash-like string which is used to determine if content has changed since the last request for the content. See this link for more information. Note for language specific components the etag has to encode the language (id) also! See (OBContext.getLanguage()
) to get the current language.- Specified by:
getETag
in interfaceComponent
- Overrides:
getETag
in classBaseComponent
- Returns:
- a unique hash for the content generated
-
-