|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jetspeed.portal.portlets.AbstractPortlet
org.openscience.nmrshiftdb.portlets.ResultPortlet
public class ResultPortlet
This is the portlet handling searches
Field Summary | |
---|---|
private int |
MOLECULES_PER_PAGE
|
private int |
PAGES_PER_BROWSE_LINE
|
Fields inherited from class org.apache.jetspeed.portal.portlets.AbstractPortlet |
---|
content |
Fields inherited from interface org.apache.jetspeed.portal.Portlet |
---|
PORTLET_MAXIMIZED, PORTLET_MINIMIZED, PORTLET_NORMAL |
Constructor Summary | |
---|---|
ResultPortlet()
|
Method Summary | |
---|---|
private java.util.ArrayList |
executeLastSearch(javax.servlet.http.HttpSession session,
StringAndInt chiralMessage,
org.apache.turbine.util.RunData runData)
Executes the last search |
private java.util.ArrayList |
executeSearch(javax.servlet.http.HttpSession session,
int[] searches,
StringAndInt chiralMessage,
org.apache.turbine.util.RunData runData)
Executes searches from the searchHistory. |
private java.util.ArrayList |
executeSearch(javax.servlet.http.HttpSession session,
int[] searches,
StringAndInt chiralMessage,
org.apache.turbine.util.RunData runData,
boolean not,
boolean andor)
Executes searches from the searchHistory. |
org.apache.ecs.ConcreteElement |
getContent(org.apache.turbine.util.RunData runData)
Gets the HTML to be displayed in the portlet |
static int[] |
getSearches(javax.servlet.http.HttpSession session)
Gets the searches attribute of the session |
Methods inherited from class org.apache.jetspeed.portal.portlets.AbstractPortlet |
---|
allowClose, allowCustomize, allowInfo, allowMaximize, allowMinimize, allowPrintFriendly, allowView, clearContent, getAllowEdit, getAllowMaximize, getAllowView, getAttribute, getContent, getContent, getCreationTime, getDescription, getDescription, getExpirationMillis, getExpire, getHandle, getHandle, getID, getImage, getImage, getInstance, getName, getPortletConfig, getTitle, getTitle, init, isCacheable, isClosed, isMinimized, isShowTitleBar, providesCustomization, refresh, setAttribute, setCacheable, setCachedObject, setClosed, setContent, setContent, setContent, setCreationTime, setDescription, setExpirationMillis, setHandle, setID, setImage, setMinimized, setName, setPortletConfig, setTitle, setTitle, supportsType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final int MOLECULES_PER_PAGE
private final int PAGES_PER_BROWSE_LINE
Constructor Detail |
---|
public ResultPortlet()
Method Detail |
---|
public org.apache.ecs.ConcreteElement getContent(org.apache.turbine.util.RunData runData)
getContent
in interface org.apache.jetspeed.portal.Portlet
getContent
in class org.apache.jetspeed.portal.portlets.AbstractPortlet
runData
- Created by turbine
public static int[] getSearches(javax.servlet.http.HttpSession session)
session
- The current searches
private java.util.ArrayList executeLastSearch(javax.servlet.http.HttpSession session, StringAndInt chiralMessage, org.apache.turbine.util.RunData runData) throws java.lang.Exception
session
- Current session
java.lang.Exception
- Database problemsprivate java.util.ArrayList executeSearch(javax.servlet.http.HttpSession session, int[] searches, StringAndInt chiralMessage, org.apache.turbine.util.RunData runData) throws NmrshiftdbException, java.lang.Exception
session
- The current session.searches
- The searches to execute. Each figure in searches means the search in this position in sarchHistory will be executed, all searches are AND linked.
java.lang.Exception
- Database problems
NmrshiftdbException
private java.util.ArrayList executeSearch(javax.servlet.http.HttpSession session, int[] searches, StringAndInt chiralMessage, org.apache.turbine.util.RunData runData, boolean not, boolean andor) throws NmrshiftdbException, java.lang.Exception
session
- The current session.searches
- The searches to execute. Each figure in searches means the search in this position in sarchHistory will be executed, all searches are AND linked.
java.lang.Exception
- Database problems
NmrshiftdbException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |