|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.indexdata.masterkey.pazpar2.client.Pazpar2Session
public class Pazpar2Session
A Pazpar2 session object holding a Pazpar2 session ID and the target settings (if any) for the session.
Pazpar2Session also keeps track of changes to the ClientCommand from one SP search request to the next. (A repeated search (lack of change to the search) should omit another request to Pazpar2 A change of a torus query should re-initialize the entire session A change of a record filter should reset the record filtering) Note that Pazpar2Session is cached on the HTTP Session so setting new attributes on this object should be done with caution.
Constructor Summary | |
---|---|
Pazpar2Session()
|
Method Summary | |
---|---|
String |
getLatestQueryString()
|
ClientCommand |
getSearchCommand()
|
String |
getSessionId()
|
boolean |
recordFilterChanged()
Compares the record filtering on the current search with the previous search |
boolean |
recordFilterTargetCriteriaChanged()
Compares the target criteria associated with a record filter on the current search with the previous search. |
void |
resetQuery()
|
boolean |
searchChanged()
Compares the current search with the previous search |
void |
setSearchCommand(ClientCommand command)
If the command is a search it is inserted as latest command and the hitherto latest search command is now previous. |
void |
setSessionId(String sessionId)
|
boolean |
torusQueryChanged()
Compares the torus query on the current search with the previous search |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Pazpar2Session()
Method Detail |
---|
public void setSearchCommand(ClientCommand command)
command
- public ClientCommand getSearchCommand()
public String getLatestQueryString()
public boolean searchChanged()
public void resetQuery()
public boolean recordFilterChanged()
public boolean recordFilterTargetCriteriaChanged()
public String getSessionId()
public void setSessionId(String sessionId)
public boolean torusQueryChanged()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |