|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.publication.session.Session
public class Session
Content extractor: Section and Privacy based access to the content database.
| Field Summary | |
|---|---|
protected OutputHandler |
_outputHandler
The object that does the PL4 password checking |
protected int |
_privacyLevel
The current privacy level |
String |
cdrName
The name of the CLabel Definition Redirection (if applicable). |
Hashtable |
customImgExists
Whether or not .../images/subscribed |
Hashtable |
customImgOverExists
Whether or not .../images/subscribed |
InputHandler |
inputHandler
The object that does the input |
String |
name
The name. |
long |
zpadDatTime
Remember when (in combination with what zpad.dat) you have calculated customImgExists and customImgOverExists. |
| Fields inherited from interface info.aduna.gee.publication.net.FileNames |
|---|
ASA_FILE_NAME, BAK_FILE_NAME, CAT_FILE_NAME, CFG_FILE_NAME, CHS_FILE_NAME, DAT_FILE_NAME, HLP_FILE_NAME, LOCAL_FILE_PREFIX, SBS_FILE_NAME, SSS_FILE_NAME, WIF_FILE_NAME |
| Constructor Summary | |
|---|---|
|
Session(InputHandler input,
OutputHandler output)
Sets up a new session. |
protected |
Session(String name)
|
| Method Summary | |
|---|---|
protected boolean |
_checkPrivacyLevel(int level)
Check a request for a PL for *this* ZPad. |
protected boolean |
_emptyAtThisPL(ZContainer container)
Check whether a Container contains entries that can be seen at this privacy level. |
protected ZContainer |
_getContainer(Object name)
|
protected ZContainer |
_getEntries(Object sectionID,
Navigator navigator,
Vector avoidSections)
|
protected void |
_lazyLoadExtra()
Load the clabel information of this stream. |
protected ZContainer |
_loadInternalImport(Entry entry,
Object sectionID,
Navigator navigator,
Vector avoidSections)
Handle an Import entry, which import handler is the Zpad itself. |
boolean |
activeAtThisLevel()
Should the generator do anything at all at the current privacy level? If true, it will operate (and respect all PL's at a more detailed level). |
void |
addExtraInfo(Object sectionID,
Entry entry)
This function changes the Entry. |
Object |
findContent(Object sectionID,
Vector sectionIDs,
boolean searchFuture,
Navigator navigator)
Search for a non-empty date section before/after a given sectionID. |
Vector |
getChildren(PathString sectionName,
boolean createThem)
|
CLabelDefinitions |
getCLabelDefinitions()
Get the effective CLabel definitions for this Session. |
ZContainer |
getEntries(Object sectionID,
Navigator navigator)
Get the entries from a section. |
int |
getNumberOfEntries(Object sectionID)
Get the number of Entries (but in the sense of e.g. |
int |
getPrivacyLevel(boolean current)
Return the privacy level. |
int |
getSeparatorType(Object sectionID)
|
Object |
getStartSection()
|
ZContainer |
getSummarizedEntries(Object overviewSection,
Object contentSection,
Object placeHolder,
int max)
... |
int |
getTemplatePreferenceIndex(String coverName,
Object sectionID)
|
boolean |
login(String name,
String password)
Login a new name/password combination. |
void |
refresh()
|
boolean |
setPrivacyLevel(int level)
Set the privacy level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String name
public String cdrName
public Hashtable customImgExists
public Hashtable customImgOverExists
public long zpadDatTime
protected int _privacyLevel
public InputHandler inputHandler
protected OutputHandler _outputHandler
| Constructor Detail |
|---|
public Session(InputHandler input,
OutputHandler output)
throws IOException
input - the inputHandler that knows how to
retrieve the database and the configuration.output - the outputHandler that knows how to
check name/password combinations
An "empty" Session is used to speed-up startup.
In that case input and output are null, so check it everywhere!
IOException - When an io error occures while
loading the database, or configurationprotected Session(String name)
| Method Detail |
|---|
public boolean setPrivacyLevel(int level)
level - the requested privacy level.
protected boolean _checkPrivacyLevel(int level)
level - the requested privacy level.
public boolean login(String name,
String password)
public int getPrivacyLevel(boolean current)
current - obsoleted.
public ZContainer getEntries(Object sectionID,
Navigator navigator)
sectionID - The name of the requested setion.
protected ZContainer _getEntries(Object sectionID,
Navigator navigator,
Vector avoidSections)
public Object findContent(Object sectionID,
Vector sectionIDs,
boolean searchFuture,
Navigator navigator)
sectionID - the sectionID to start the search from.sectionIDs - the sectionID's of all named sections.searchFuture - if true search after the sectionID, else before
protected boolean _emptyAtThisPL(ZContainer container)
container - the container to test
public CLabelDefinitions getCLabelDefinitions()
public boolean activeAtThisLevel()
protected void _lazyLoadExtra()
public void addExtraInfo(Object sectionID,
Entry entry)
protected ZContainer _loadInternalImport(Entry entry,
Object sectionID,
Navigator navigator,
Vector avoidSections)
entry - the import entrysectionID - the section containing entrynavigator - the NavigatoravoidSections - the sections already handled or null
public void refresh()
public Vector getChildren(PathString sectionName,
boolean createThem)
protected ZContainer _getContainer(Object name)
public int getTemplatePreferenceIndex(String coverName,
Object sectionID)
public Object getStartSection()
public int getNumberOfEntries(Object sectionID)
public ZContainer getSummarizedEntries(Object overviewSection,
Object contentSection,
Object placeHolder,
int max)
public int getSeparatorType(Object sectionID)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||