info.aduna.gee.spectacle.gee
Class EntityContextImpl

java.lang.Object
  extended by info.aduna.gee.spectacle.gee.EntityContext
      extended by info.aduna.gee.spectacle.gee.EntityContextImpl

public final class EntityContextImpl
extends EntityContext

Implements the lower-level entity context that is used by the SpectacleLoader.


Field Summary
static int MAX_APPNAME_LENGTH
           
 
Fields inherited from class info.aduna.gee.spectacle.gee.EntityContext
_channel, _dispenser, _orderFields, _producer, _views
 
Constructor Summary
EntityContextImpl(String appName, String coverName, int timeToLive)
          Constructor.
 
Method Summary
 void commit()
          Commit all currently known information to the spectacle server.
 NavigationTree getNavigationTree()
           
 void setEntities(Map<Object,Entity> entities)
          Store the given entities in the spectacle server, all existing entities are gone afterwards.
 void setFacets(List<FacetClassifier> facetClassifiers)
          Sets the facets being used, and how they are classified.
 void setNavigation(NavigationRules navRules, JitSectionRenderer sectionRenderer)
          Store the
- given navigation specification
- the JitSectionRender (plus its settings)
- the navigation rules
in the spectacle server.
 void setNavigation(NavigationRules navRules, String sectionRendererClass)
           
 
Methods inherited from class info.aduna.gee.spectacle.gee.EntityContext
_init, addView, addView, getChannel, getChannelName, getEntities, getLabelClassification, getLabelDescription, getNewLabel, getView, render, selectEntities, setOrderField, setOrderFields, sync
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_APPNAME_LENGTH

public static final int MAX_APPNAME_LENGTH
See Also:
Constant Field Values
Constructor Detail

EntityContextImpl

public EntityContextImpl(String appName,
                         String coverName,
                         int timeToLive)
Constructor.

Method Detail

commit

public void commit()
Commit all currently known information to the spectacle server.


getNavigationTree

public NavigationTree getNavigationTree()

setEntities

public void setEntities(Map<Object,Entity> entities)
Store the given entities in the spectacle server, all existing entities are gone afterwards.

Parameters:
entities - Key=entityID, value=Entity

setFacets

public void setFacets(List<FacetClassifier> facetClassifiers)
Sets the facets being used, and how they are classified. To allow multiple selection of facet values (i.e. and's of them), include the classifier more than once in the List.


setNavigation

public void setNavigation(NavigationRules navRules,
                          String sectionRendererClass)
See Also:
setNavigation(NavigationRules, JitSectionRenderer)

setNavigation

public void setNavigation(NavigationRules navRules,
                          JitSectionRenderer sectionRenderer)
Store the
- given navigation specification
- the JitSectionRender (plus its settings)
- the navigation rules
in the spectacle server.



Copyright © 1997-2008 Aduna. All Rights Reserved.