|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.ac.ebi.intact.application.search2.business.IntactUserImpl
This class stores information about an Intact Web user session. Instead of binding multiple objects, only an object of this class is bound to a session, thus serving a single access point for multiple information.
This class implements the ttpSessionBindingListener interface for it can be notified of session time outs.
| Constructor Summary | |
IntactUserImpl(java.lang.String mapping,
java.lang.String dsClass)
Constructs an instance of this class with given mapping file and the name of the data source class. |
|
| Method Summary | |
java.lang.String |
getDatabaseName()
The name of the database connected to. |
java.lang.String |
getHelpLink()
|
java.lang.String |
getSearchClass()
|
java.lang.String |
getSearchValue()
|
int |
getSelectedChunk()
|
java.lang.String |
getUserName()
Returns the Intact user. |
java.util.Collection |
search(java.lang.String objectType,
java.lang.String searchParam,
java.lang.String searchValue)
This method provides a means of searching intact objects, within the constraints provided by the parameters to the method. |
void |
setHelpLink(java.lang.String link)
|
void |
setSearchClass(java.lang.String searchClass)
|
void |
setSearchValue(java.lang.String searchValue)
|
void |
setSelectedChunk(int selectedChunk)
|
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent event)
Will call this method when an object is bound to a session. |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
Will call this method when an object is unbound from a session. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IntactUserImpl(java.lang.String mapping,
java.lang.String dsClass)
throws DataSourceException,
IntactException
IntactHelper and
an XmlBuilder created for use during a user session.
mapping - the name of the mapping file.dsClass - the class name of the Data Source.
DataSourceException - for error in getting the data source; this
could be due to the errors in repository files or the underlying
persistent mechanism rejected user and
password combination.
IntactException - thrown for any error in creating an IntactHelper,
XmlBuilder etc| Method Detail |
public int getSelectedChunk()
getSelectedChunk in interface IntactUserIFpublic void setSelectedChunk(int selectedChunk)
setSelectedChunk in interface IntactUserIFpublic void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
valueBound in interface javax.servlet.http.HttpSessionBindingListenerpublic void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
valueUnbound in interface javax.servlet.http.HttpSessionBindingListenerpublic java.lang.String getUserName()
IntactUserI
getUserName in interface IntactUserIpublic java.lang.String getDatabaseName()
IntactUserI
getDatabaseName in interface IntactUserI
public java.util.Collection search(java.lang.String objectType,
java.lang.String searchParam,
java.lang.String searchValue)
throws IntactException
IntactUserI
search in interface IntactUserIobjectType - the object type to be searchedsearchParam - the parameter to search on (eg field)searchValue - the search value to match with the parameter
IntactException - thrown if problems are encountered during the
search process.public java.lang.String getSearchClass()
getSearchClass in interface IntactUserIFpublic void setSearchClass(java.lang.String searchClass)
setSearchClass in interface IntactUserIFpublic java.lang.String getSearchValue()
getSearchValue in interface IntactUserIFpublic void setSearchValue(java.lang.String searchValue)
setSearchValue in interface IntactUserIFpublic void setHelpLink(java.lang.String link)
setHelpLink in interface IntactUserIFpublic java.lang.String getHelpLink()
getHelpLink in interface IntactUserIF
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||