Package org.openbravo.client.kernel
Class SessionDynamicResourceComponent
- java.lang.Object
-
- org.openbravo.client.kernel.BaseComponent
-
- org.openbravo.client.kernel.SessionDynamicResourceComponent
-
- All Implemented Interfaces:
Component
public class SessionDynamicResourceComponent extends BaseComponent
This class generates other components called session dynamic resources. This kind of resources are loaded before the javascript content used in the application and they are provided by those classes extending theSessionDynamicTemplateComponent
class.
-
-
Field Summary
-
Fields inherited from class org.openbravo.client.kernel.BaseComponent
adcs
-
-
Constructor Summary
Constructors Constructor Description SessionDynamicResourceComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generate()
Generates the content of the component which is sent to the client for execution/rendering.Object
getData()
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.List<SessionDynamicTemplateComponent>
getSortedComponentList()
-
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
-
generate
public String generate()
Description copied from interface:Component
Generates the content of the component which is sent to the client for execution/rendering.- Specified by:
generate
in interfaceComponent
- Specified by:
generate
in classBaseComponent
- Returns:
- the generated javascript which is send back to the client
-
getData
public Object getData()
- Specified by:
getData
in classBaseComponent
-
getETag
public 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
-
getSortedComponentList
public List<SessionDynamicTemplateComponent> getSortedComponentList()
-
-