|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.spectacle.Loader
public abstract class Loader
A generic class for talking to Spectacle Server; this is a facade towards the entire lower-level spectacle APIs.
The spectacle loader supports one type of entities at a time.
Generated names and required IDs: :
| Field Summary | |
|---|---|
static String |
DEFAULT_LABELS_PATTERN
|
static String |
ENTITIES_DATA_FILENAME
|
static String |
INTERNAL_LIST_SEQUENCE_FIELD
Don't use this name for any of your entity fields, when the List variant of setEntities() is used. |
static String |
NAVSPEC_DATA_FILENAME
|
static String |
RENDERER_DATA_FILENAME
|
| Constructor Summary | |
|---|---|
Loader()
Construct a new Loader for use as Guided Exploration Engine |
|
Loader(String appName)
Construct a new spectacle loader for the given application. |
|
Loader(String appName,
String coverName)
Construct a new spectacle loader, that connects to spectacle in the context of the given application name. |
|
Loader(String appName,
String coverName,
int timeToLive)
Construct a new spectacle loader, that connects to spectacle in the context of the given application name. |
|
| Method Summary | |
|---|---|
void |
commit()
Commit all currently known information to the spectacle server. |
protected abstract List<Entity> |
createEntities()
Returns the List of explored Entities. |
protected abstract List<FacetClassifier> |
createFacets()
Returns the List of Classifiers used to explore the Entities. |
NavigationTree |
getNavigationTree()
For local GEE applications only: return the resulting NavigationTree. |
void |
run()
Creates and sets entities and facets and commits the results. |
void |
setEntities(List<Entity> entities)
Store the given entities in the specified sequence on the spectacle server. |
void |
setEntities(Map<Object,Entity> entities)
Store the given entities in the spectacle server. |
void |
setFacets(List<FacetClassifier> facetClassifiers)
Sets the facets being used, and how they are classified. |
void |
setNavigation(NavigationRules navRules,
String sectionRendererClass)
Store the given navigation specification in the spectacle server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ENTITIES_DATA_FILENAME
public static final String NAVSPEC_DATA_FILENAME
public static final String RENDERER_DATA_FILENAME
public static final String INTERNAL_LIST_SEQUENCE_FIELD
public static final String DEFAULT_LABELS_PATTERN
| Constructor Detail |
|---|
public Loader()
public Loader(String appName)
appName - Uniquely identifying name for application, which is used for
looking up the various channels: some channels are prefixed
with this appName.
public Loader(String appName,
String coverName)
appName - Uniquely identifying name for application, which is used for
looking up the various channels: some channels are prefixed
with this appName.coverName - The name of the cover to be used.
public Loader(String appName,
String coverName,
int timeToLive)
appName - Uniquely identifying name for application, which is used for
looking up the various channels: some channels are prefixed
with this appName.coverName - The name of the cover to be used.timeToLive - After timeToLive seconds of no access, the spectacle channels
are automatically removed (0 means don't remove automatically,
which is the default).| Method Detail |
|---|
public void run()
protected abstract List<Entity> createEntities()
protected abstract List<FacetClassifier> createFacets()
public void commit()
public void setEntities(Map<Object,Entity> entities)
public void setEntities(List<Entity> entities)
public void setFacets(List<FacetClassifier> facetClassifiers)
public void setNavigation(NavigationRules navRules,
String sectionRendererClass)
public NavigationTree getNavigationTree()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||