|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.ac.ebi.intact.application.hierarchView.business.IntactUser
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 HttpSessionBindingListener interface for it can be notified of session time outs.
| Field Summary |
| Fields inherited from interface uk.ac.ebi.intact.application.hierarchView.business.IntactUserI |
GRAPH_PROPERTIES, GRAPH2MIF_PROPERTIES, HIGHLIGHTING_PROPERTIES, SEARCH_PROPERTIES, WEB_SERVICE_PROPERTIES |
| Constructor Summary | |
IntactUser(java.lang.String applicationPath)
Constructs an instance of this class with given mapping file and the name of the data source class. |
|
| Method Summary | |
void |
addHighlightOption(java.lang.String name,
java.lang.Object value)
Add a new option in the option set. That new option is referenced by its name |
boolean |
clickBehaviourIsAdd()
is the current behaviour is to Add when the user click on the image map |
boolean |
clickBehaviourIsCenter()
is the current behaviour is to Center the view when the user click on the image map |
void |
desacreaseDepth()
Desacrease the depth of the interraction network up to the defined minimum. |
java.lang.String |
getApplicationPath()
|
java.lang.String |
getBehaviour()
|
int |
getCurrentDepth()
|
java.lang.String |
getDatabaseName()
The name of the database connected to. |
IntactHelper |
getHelper()
|
java.lang.Object |
getHighlightOption(java.lang.String name)
Get the value associated to the option name. |
ImageBean |
getImageBean()
|
InteractionNetwork |
getInteractionNetwork()
|
java.util.Collection |
getKeys()
|
int |
getMaximalDepth()
|
java.lang.String |
getMethodClass()
|
java.lang.String |
getMethodLabel()
|
int |
getMinimalDepth()
|
java.lang.String |
getQueryString()
|
java.lang.String |
getSearchUrl()
|
java.lang.String |
getSearchUrl(java.lang.String query,
boolean addFullContext)
|
java.lang.String |
getSelectedKey()
|
java.lang.String |
getSourceURL()
|
java.lang.String |
getUserName()
Returns the Intact user. |
boolean |
hasSourceUrlToDisplay()
|
void |
increaseDepth()
Increase the depth of the interraction network up to the defined maximum. |
void |
init()
Set the default value of user's data |
boolean |
InteractionNetworkReadyToBeDisplayed()
Allows the user to know if an interaction network will be displayed |
boolean |
InteractionNetworkReadyToBeHighlighted()
Allows the user to know if an interaction network is ready to be highlighted. |
boolean |
maximalDepthReached()
says if the current depth is maximal |
boolean |
minimalDepthReached()
says if the current depth is minimal |
void |
resetHighlightOptions()
Clear all highlight options. |
void |
resetSourceURL()
|
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 |
setBehaviour(java.lang.String behaviour)
|
void |
setClickBehaviour(ClickBehaviourForm form)
|
void |
setCurrentDepth(int depth)
|
void |
setDepthToDefault()
|
void |
setImageBean(ImageBean imageBean)
|
void |
setInteractionNetwork(InteractionNetwork in)
|
void |
setKeys(java.util.Collection keys)
|
void |
setMethodClass(java.lang.String methodClass)
|
void |
setMethodLabel(java.lang.String methodLabel)
|
void |
setQueryString(java.lang.String queryString)
|
void |
setSelectedKey(java.lang.String key)
|
void |
setSourceURL(java.lang.String aSourceURL)
|
InteractionNetwork |
subGraph(InteractionNetwork in,
int graphDepth,
java.util.Collection experiments,
int complexExpansion)
Returns a subgraph centered on startNode (stored in the interaction network). |
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 IntactUser(java.lang.String applicationPath)
throws DataSourceException,
IntactException
applicationPath - the current application path
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 lists such
as topics, database names etc.| Method Detail |
public java.lang.String getQueryString()
getQueryString in interface IntactUserIpublic java.lang.String getApplicationPath()
getApplicationPath in interface IntactUserIpublic int getCurrentDepth()
getCurrentDepth in interface IntactUserIpublic int getMinimalDepth()
public int getMaximalDepth()
public boolean minimalDepthReached()
minimalDepthReached in interface IntactUserIpublic boolean maximalDepthReached()
maximalDepthReached in interface IntactUserIpublic java.lang.String getMethodLabel()
getMethodLabel in interface IntactUserIpublic java.lang.String getMethodClass()
getMethodClass in interface IntactUserIpublic java.lang.String getBehaviour()
getBehaviour in interface IntactUserIpublic boolean InteractionNetworkReadyToBeDisplayed()
InteractionNetworkReadyToBeDisplayed in interface IntactUserIpublic boolean InteractionNetworkReadyToBeHighlighted()
InteractionNetworkReadyToBeHighlighted in interface IntactUserIpublic void setClickBehaviour(ClickBehaviourForm form)
setClickBehaviour in interface IntactUserIpublic boolean clickBehaviourIsAdd()
clickBehaviourIsAdd in interface IntactUserIpublic boolean clickBehaviourIsCenter()
clickBehaviourIsCenter in interface IntactUserIpublic InteractionNetwork getInteractionNetwork()
getInteractionNetwork in interface IntactUserIpublic ImageBean getImageBean()
getImageBean in interface IntactUserIpublic java.util.Collection getKeys()
getKeys in interface IntactUserIpublic java.lang.String getSelectedKey()
getSelectedKey in interface IntactUserIpublic IntactHelper getHelper()
getHelper in interface IntactUserIpublic java.lang.String getSourceURL()
getSourceURL in interface IntactUserIpublic boolean hasSourceUrlToDisplay()
hasSourceUrlToDisplay in interface IntactUserIpublic void setQueryString(java.lang.String queryString)
setQueryString in interface IntactUserIpublic void increaseDepth()
increaseDepth in interface IntactUserIpublic void desacreaseDepth()
desacreaseDepth in interface IntactUserIpublic void setDepthToDefault()
setDepthToDefault in interface IntactUserIpublic void setMethodLabel(java.lang.String methodLabel)
setMethodLabel in interface IntactUserIpublic void setMethodClass(java.lang.String methodClass)
setMethodClass in interface IntactUserIpublic void setBehaviour(java.lang.String behaviour)
setBehaviour in interface IntactUserIpublic void setInteractionNetwork(InteractionNetwork in)
setInteractionNetwork in interface IntactUserIpublic void setImageBean(ImageBean imageBean)
setImageBean in interface IntactUserIpublic void setKeys(java.util.Collection keys)
setKeys in interface IntactUserIpublic void setSelectedKey(java.lang.String key)
setSelectedKey in interface IntactUserIpublic void setSourceURL(java.lang.String aSourceURL)
setSourceURL in interface IntactUserIpublic void resetSourceURL()
resetSourceURL in interface IntactUserIpublic void init()
init in interface IntactUserI
public InteractionNetwork subGraph(InteractionNetwork in,
int graphDepth,
java.util.Collection experiments,
int complexExpansion)
throws IntactException
subGraph in interface IntactUserIin - - the interaction network.graphDepth - - depth of the graphexperiments - - Experiments which should be taken into accountcomplexExpansion - - Mode of expansion of complexes into pairwise interactions
IntactException - - thrown if problems are encounteredpublic void resetHighlightOptions()
IntactUserI
resetHighlightOptions in interface IntactUserI
public void addHighlightOption(java.lang.String name,
java.lang.Object value)
IntactUserI
addHighlightOption in interface IntactUserIname - name of the optionvalue - value taken by the optionpublic java.lang.Object getHighlightOption(java.lang.String name)
IntactUserI
getHighlightOption in interface IntactUserIname - the name of the option we want the value
public void setCurrentDepth(int depth)
setCurrentDepth in interface IntactUserI
public java.lang.String getSearchUrl(java.lang.String query,
boolean addFullContext)
getSearchUrl in interface IntactUserIpublic java.lang.String getSearchUrl()
getSearchUrl in interface IntactUserIpublic 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.HttpSessionBindingListener
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 getUserName()
IntactUserI
getUserName in interface IntactUserIpublic java.lang.String getDatabaseName()
IntactUserI
getDatabaseName in interface IntactUserI
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||