|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.jetspeed.portal.portlets.AbstractPortlet
org.openscience.nmrshiftdb.portlets.SubmitPortlet
public class SubmitPortlet
This is the portlet handlang submitting spectra/molecules...
| Field Summary |
|---|
| 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 | |
|---|---|
SubmitPortlet()
|
|
| Method Summary | |
|---|---|
boolean |
alreadyids(DBLiterature lit,
DBMolecule mol)
Tells if there are already ids for this molecule and this literature. |
static void |
doEmailForReviewAndSerialize(SubmittingData subData,
org.apache.turbine.util.RunData runData,
org.apache.jetspeed.om.security.turbine.TurbineUser reviewer)
Sends an email to the reviewer and serializes the data |
static boolean |
doReview(SubmittingData subData,
java.util.Date now,
org.apache.jetspeed.om.security.turbine.TurbineUser user,
org.apache.turbine.util.RunData runData)
Does everything connected with the review process. |
org.apache.ecs.ConcreteElement |
getContent(org.apache.turbine.util.RunData runData)
Gets the content to be displayed in the portlet as HTML. |
private void |
saveSubdataToDisk(SubmittingData subData,
org.apache.turbine.util.RunData runData)
Saves the submitting data object to disk |
private java.lang.String |
submitPage(java.lang.String messages,
SubmittingData subData,
org.apache.turbine.util.RunData runData,
javax.servlet.http.HttpSession session)
Puts together the submit page |
| 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 |
| Constructor Detail |
|---|
public SubmitPortlet()
| Method Detail |
|---|
public static void doEmailForReviewAndSerialize(SubmittingData subData,
org.apache.turbine.util.RunData runData,
org.apache.jetspeed.om.security.turbine.TurbineUser reviewer)
throws java.io.IOException,
java.io.FileNotFoundException,
java.lang.Exception
runData - The runData objectreviewer - The reviewer the spectrum is assigned tosubData - Description of Parameter
java.io.IOException - Problems writing serialized file
java.io.FileNotFoundException - Nmrshfiftdb.properties not found
java.lang.Exception - Description of Exception
public static boolean doReview(SubmittingData subData,
java.util.Date now,
org.apache.jetspeed.om.security.turbine.TurbineUser user,
org.apache.turbine.util.RunData runData)
throws java.lang.Exception
subData - The current SubmittingData object.now - The Date considered to be input time.user - The user doing the submit.runData - The current RunData object.
java.lang.Exception - Database problems.public org.apache.ecs.ConcreteElement getContent(org.apache.turbine.util.RunData runData)
getContent in interface org.apache.jetspeed.portal.PortletgetContent in class org.apache.jetspeed.portal.portlets.AbstractPortletrunData - Created by turbine.
public boolean alreadyids(DBLiterature lit,
DBMolecule mol)
throws java.lang.Exception
lit - The literature to check.mol - The molecule to check.
java.lang.Exception - Databse problems.
private java.lang.String submitPage(java.lang.String messages,
SubmittingData subData,
org.apache.turbine.util.RunData runData,
javax.servlet.http.HttpSession session)
throws java.lang.Exception
messages - Collected messages for the usersubData - submittingData object from sessionrunData - The RunData object from turbinesession - The current session
java.lang.Exception - Description of Exception
private void saveSubdataToDisk(SubmittingData subData,
org.apache.turbine.util.RunData runData)
subData - The submittinData objectrunData - The current runData object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||