info.aduna.gee.spectacle.gee.jit
Class JitNavigationDatabase

java.lang.Object
  extended by info.aduna.gee.publication.net.WStorable
      extended by info.aduna.gee.publication.content.Database
          extended by info.aduna.gee.spectacle.gee.jit.JitNavigationDatabase
All Implemented Interfaces:
EntryConstants, Runnable

public class JitNavigationDatabase
extends Database
implements Runnable

JitNavigationDatabase a just in time navigation database.


Field Summary
 
Fields inherited from class info.aduna.gee.publication.content.Database
_containerNames, _dummyContainer, _sortedDates, _storeVersion, containers, DATED, NAMED, navigation, privacyLevel, SEPARATOR_TYPE_CONTINUATION, SEPARATOR_TYPE_DEFAULT, SEPARATOR_TYPE_IGNORE, SEPARATOR_TYPE_META, startSection, STORE_DEFAULT_VERSION, STORE_JAZZZ_VERSION, STORE_TOSTRING_VERSION, TEMPLATE_CACHE, tmplPreferences, TODAY_WILD_CARD, WILDC
 
Fields inherited from class info.aduna.gee.publication.net.WStorable
_isStorable, _lastModified, BASE64ENCODING, GZIPCOMPRESSION, NONE, WLZ77COMPRESSION
 
Fields inherited from interface info.aduna.gee.publication.content.EntryConstants
ACLS_PREFIX, AFTER_TRANSFER, APPLET_TYPE_VALUE, ASSOCIATES_EDIT_LEVEL, BEFORE_STORAGE, BEFORE_TRANSFER, CODE_KEY, CODEBASE_KEY, CONSTRUCTION_KEY, CONTAINER_TTL_KEY, CONTAINERID_KEY, CONTAINERPROPS_KEY, DBPRIVACY_LEVEL_KEY, DESCRIPTION_KEY, EMBED_TYPE_VALUE, END_TIME_KEY, ENTRY_ID_KEY, ENTRYATTRIBS_KEY, ENTRYPARAMS_KEY, ENTRYPROPS_KEY, EXPIRES_KEY, EXTERNAL_ENTRY_KEY, HEIGHT_KEY, HTML_KEY, HTML_TYPE_VALUE, ID2IDID_KEY, IMAGE_TYPE_VALUE, IMPORT_CLASSNAME, IMPORT_DONT_FORWARD, IMPORT_IMPORTED, IMPORT_LANGUAGE, IMPORT_SERVER_NAME, IMPORT_TYPE_VALUE, INFO_EXTENSION, INHERIT_CONFIGURATION, INLINE_DESCRIPTION_IS_HTML_KEY, INLINE_DESCRIPTION_KEY, INSPIRES_KEY, JIT_DESTINATION, JIT_DESTINATION_INDEX, LINK_IN_FRAME_KEY, LINK_KEY, MANUAL_KEY, MINIMALHEIGHT_KEY, MINIMALWIDTH_KEY, NAVIGATION_KEY, OBJECT_TYPE_VALUE, OCCURRING_CLABELS_KEY, OVERRIDE_SUGGESTION_KEY, PRIVACY_LEVEL_KEY, PROVIDE_KEY, PROVIDE_PL_KEY, QUALIFIED_BASE_KEY, RE_EXPORT_KEY, RE_MANUAL_KEY, REPEAT_ID_KEY, REPEAT_TODAY_KEY, REQUIRES_NEW_PAGE, ROTATABLE_KEY, SHARED_CLABELS_KEY, SHOP_GIF_KEY, SHOP_GIF_LOCATION_KEY, SHOP_ID_KEY, SHOP_ORIGIN_KEY, SHOP_OVER_GIF_KEY, SORT_CLABELS, SORT_DESCRIPTION, SOURCE_KEY, STARTSECTION_KEY, SUBSCRIBED_COLOR_KEY, SUBSCRIBED_GIF_KEY, SUBSCRIBED_GIF_LOCATION_KEY, SUBSCRIBED_OVER_GIF_KEY, SUBSCRIBED_VISIBLE_CLABELS_KEY, SUBSCRIPTION_KEY, SUBSCRIPTION_LINK_KEY, SUGGESTION_KEY, SUMMARY_IS_HTML_KEY, SUMMARY_KEY, SUMMARY_TYPE_VALUE, TEMPLATEPREFERENCES_KEY, TEXT_KEY, TEXT_TYPE_VALUE, TIME_KEY, TMPL_DESCRIPTOR_KEY, TMPL_FOREIGN_ID_KEY, TMPL_ID_KEY, TMPL_PREFERENCES_KEY, TMPL_STUB_RECOGNIZER_KEY, TMPLD_TYPE_VALUE, TYPE_KEY, WIDTH_KEY
 
Constructor Summary
JitNavigationDatabase(Collection entities, NavigationSpecification navSpec, JitSectionRenderer renderer)
          Constructor.
 
Method Summary
 void clear()
          Override clearing: the method is empty.
 boolean containerNamesAreSorted()
          Override automatic name sorting of Database.
 void destroy()
          Destroy the current database.
 void gc()
          Garbage collect this database.
 Vector getChildren(PathString sectionName, boolean createThem)
          Override Database's getChildren, because this is much faster (especially when the tree is big).
 int getNumberOfEntries(Object sectionID)
           
 int getSeparatorType(Object sectionID)
           
 ZContainer getSummarizedEntries(Object overviewSection, Object contentSection, Object placeHolder, int max)
          No need to know.
 NavigationTree getTree()
           
 boolean isStorable()
          Override WStorable completely.
 void prepareAccess(Object sectionID)
          Prepare access to any section's content.
 void prepareChildren(Object sectionID)
          Prepare children of any section.
 void run()
           
 
Methods inherited from class info.aduna.gee.publication.content.Database
_clearIdle, _deKeyProtect, _keyProtect, _typeToIndex, addContainer, clone, getContainer, getContainer, getContainerNames, getRange, getVersion, hasContainer, load, preload, recalculateWildCards, removeContainer, setStoreVersion, store, sweep, toProperties
 
Methods inherited from class info.aduna.gee.publication.net.WStorable
getCompression, getEncoding, getLastModified, setLastModified, setStorable, toSeconds
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JitNavigationDatabase

public JitNavigationDatabase(Collection entities,
                             NavigationSpecification navSpec,
                             JitSectionRenderer renderer)
Constructor.

Parameters:
entities - the set of entities
navSpec - the navigation specification
renderer - the jit section renderer
Method Detail

isStorable

public boolean isStorable()
Override WStorable completely.

Overrides:
isStorable in class WStorable
Returns:
false

containerNamesAreSorted

public boolean containerNamesAreSorted()
Override automatic name sorting of Database.

Overrides:
containerNamesAreSorted in class Database
Returns:
false

clear

public void clear()
Override clearing: the method is empty.

Overrides:
clear in class Database

destroy

public void destroy()
Destroy the current database. When this happens, the renderer's channel is closed automatically.

Overrides:
destroy in class WStorable

prepareAccess

public void prepareAccess(Object sectionID)
Prepare access to any section's content.

Overrides:
prepareAccess in class Database

prepareChildren

public void prepareChildren(Object sectionID)
Prepare children of any section.

Overrides:
prepareChildren in class Database

getNumberOfEntries

public int getNumberOfEntries(Object sectionID)
Overrides:
getNumberOfEntries in class Database
See Also:
JitSectionRenderer.getNumberOfEntries(info.aduna.gee.publication.content.PathString, info.aduna.gee.spectacle.gee.NavigationTree)

getSummarizedEntries

public ZContainer getSummarizedEntries(Object overviewSection,
                                       Object contentSection,
                                       Object placeHolder,
                                       int max)
No need to know.

Overrides:
getSummarizedEntries in class Database
See Also:
Session.getSummarizedEntries(java.lang.Object, java.lang.Object, java.lang.Object, int)

getSeparatorType

public int getSeparatorType(Object sectionID)
Overrides:
getSeparatorType in class Database
See Also:
Database.getSeparatorType(java.lang.Object)

getChildren

public Vector getChildren(PathString sectionName,
                          boolean createThem)
Override Database's getChildren, because this is much faster (especially when the tree is big).

Overrides:
getChildren in class Database
Returns:
the children of a section or null
See Also:
Database.getChildren(info.aduna.gee.publication.content.PathString, boolean)

gc

public void gc()
Garbage collect this database.

Overrides:
gc in class Database

getTree

public NavigationTree getTree()
Returns:
the navigation tree of this database.

run

public void run()
Specified by:
run in interface Runnable


Copyright © 1997-2008 Aduna. All Rights Reserved.