|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sage.swt.client.ui.builder.GlobalCache
public class GlobalCache
Global cache that stores downloaded and processed items for a SWT UI, so that we only need to download and process those items ones.
To hide irrelevant information, the global cache exposes itself to the
various builders under different cache interfaces including
UIDefinitionCache, ExternalScriptCache,
ExternalStyleCache, and ExternalDataDefinitionCache (which
itself can be exposed as TypeSchemaCache).
| Constructor Summary | |
|---|---|
GlobalCache()
Constructs an empty global cache. |
|
| Method Summary | |
|---|---|
void |
addExternalConDefinition(URLKey conDefURLKey,
ConnectionsDefinition externalConDefinition)
Adds an external connections definition and its associated URL key to the cache. |
void |
addExternalDSDefinition(URLKey dsDefURLKey,
DataSourcesDefinition externalDSDefinition)
Adds an external datasources definition and its associated URL key to the cache. |
void |
addExternalScript(URLKey scriptURLKey,
java.lang.String scriptContent)
Adds an external script's content and its associated URL key to the cache. |
void |
addExternalStyle(URLKey styleURLKey,
java.lang.String styleContent)
Adds an external style's content and its associated URL key to the cache. |
void |
addTypeSchema(URLKey typeSchemaURLKey,
TypeSchemaInfo typeSchema)
Adds a type schema and its associated URL key to the cache. |
void |
addUIDefinition(URLKey uiDefURLKey,
DefaultUIDefinition uiDefinition)
Adds a UI definition and its associated URL key to the cache. |
boolean |
containsExternalConDefinition(URLKey conDefURLKey)
Indicates whether or not the cache contains an external connections definition with the specified URL key. |
boolean |
containsExternalDSDefinition(URLKey dsDefURLKey)
Indicates whether or not the cache contains an external datasources definition with the specified URL key. |
boolean |
containsExternalScript(URLKey scriptURLKey)
Indicates whether or not the cache contains an external script with the specified URL key. |
boolean |
containsExternalStyle(URLKey styleURLKey)
Indicates whether or not the cache contains an external style with the specified URL key. |
boolean |
containsTypeSchema(URLKey typeSchemaURLKey)
Indicates whether or not the cache contains a type schema with the specified URL key. |
boolean |
containsUIDefintion(URLKey uiDefURLKey)
Indicates whether or not the cache contains a UI definition with the specified URL key. |
ConnectionsDefinition |
getExternalConDefinition(URLKey conDefURLKey)
Gets the external connections definition associated with the specified URL key, or null if there is no such entry in the cache. |
DataSourcesDefinition |
getExternalDSDefinition(URLKey dsDefURLKey)
Gets the external datasources definition associated with the specified URL key, or null if there is no such entry in the cache. |
java.lang.String |
getExternalScript(URLKey scriptURLKey)
Gets the external script content associated with the specified URL key, or null if there is no such entry in the cache. |
java.lang.String |
getExternalStyle(URLKey styleURLKey)
Gets the external style content associated with the specified URL key, or null if there is no such entry in the cache. |
TypeSchemaInfo |
getTypeSchema(URLKey typeSchemaURLKey)
Gets the type schema associated with the specified URL key, or null if there is no such entry in the cache. |
DefaultUIDefinition |
getUIDefinition(URLKey uiDefURLKey)
Gets the UI definition associated with the specified URL key, or null if there is no such entry in the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GlobalCache()
| Method Detail |
|---|
public boolean containsUIDefintion(URLKey uiDefURLKey)
containsUIDefintion in interface UIDefinitionCacheuiDefURLKey - The UI definition's URL key (which is created using the contract
path and declarative definition name).
public DefaultUIDefinition getUIDefinition(URLKey uiDefURLKey)
getUIDefinition in interface UIDefinitionCacheuiDefURLKey - The UI definition's URL key (which is created using the contract
path and declarative definition name).
public void addUIDefinition(URLKey uiDefURLKey,
DefaultUIDefinition uiDefinition)
addUIDefinition in interface UIDefinitionCacheuiDefURLKey - The UI definition's URL key (which is created using the contract
path and declarative definition name).uiDefinition - The built UI definition.public boolean containsExternalScript(URLKey scriptURLKey)
containsExternalScript in interface ExternalScriptCachescriptURLKey - The external script's URL key.
public java.lang.String getExternalScript(URLKey scriptURLKey)
getExternalScript in interface ExternalScriptCachescriptURLKey - The external script's URL key.
public void addExternalScript(URLKey scriptURLKey,
java.lang.String scriptContent)
addExternalScript in interface ExternalScriptCachescriptURLKey - The external script's URL key.scriptContent - The external script's content.public boolean containsExternalStyle(URLKey styleURLKey)
containsExternalStyle in interface ExternalStyleCachestyleURLKey - The external style's URL key.
public java.lang.String getExternalStyle(URLKey styleURLKey)
getExternalStyle in interface ExternalStyleCachestyleURLKey - The external style's URL key.
public void addExternalStyle(URLKey styleURLKey,
java.lang.String styleContent)
addExternalStyle in interface ExternalStyleCachestyleURLKey - The external style's URL key.styleContent - The external style's content.public boolean containsExternalDSDefinition(URLKey dsDefURLKey)
containsExternalDSDefinition in interface ExternalDataDefinitionCachedsDefURLKey - The external datasources definition's URL key.
public DataSourcesDefinition getExternalDSDefinition(URLKey dsDefURLKey)
getExternalDSDefinition in interface ExternalDataDefinitionCachedsDefURLKey - The external datasources definition's URL key.
public void addExternalDSDefinition(URLKey dsDefURLKey,
DataSourcesDefinition externalDSDefinition)
addExternalDSDefinition in interface ExternalDataDefinitionCachedsDefURLKey - The external datasources definition's URL key.externalDSDefinition - The built external datasources definition.public boolean containsTypeSchema(URLKey typeSchemaURLKey)
containsTypeSchema in interface TypeSchemaCachetypeSchemaURLKey - The type schema's URL key.
public TypeSchemaInfo getTypeSchema(URLKey typeSchemaURLKey)
getTypeSchema in interface TypeSchemaCachetypeSchemaURLKey - The type schema's URL key.
public void addTypeSchema(URLKey typeSchemaURLKey,
TypeSchemaInfo typeSchema)
addTypeSchema in interface TypeSchemaCachetypeSchemaURLKey - The type schema's URL key.typeSchema - The built type schema.
public void addExternalConDefinition(URLKey conDefURLKey,
ConnectionsDefinition externalConDefinition)
ExternalConnectionDefinitionCache
addExternalConDefinition in interface ExternalConnectionDefinitionCacheconDefURLKey - The external connections definition's URL key.externalConDefinition - The built external connections definition.public boolean containsExternalConDefinition(URLKey conDefURLKey)
ExternalConnectionDefinitionCache
containsExternalConDefinition in interface ExternalConnectionDefinitionCacheconDefURLKey - The external connections definition's URL key.
public ConnectionsDefinition getExternalConDefinition(URLKey conDefURLKey)
ExternalConnectionDefinitionCache
getExternalConDefinition in interface ExternalConnectionDefinitionCacheconDefURLKey - The external connections definition's URL key.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||