|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--uk.ac.ebi.intact.application.editor.struts.framework.util.AbstractEditViewBean
|
+--uk.ac.ebi.intact.application.editor.struts.view.experiment.ExperimentViewBean
Experiment edit view bean.
| Constructor Summary | |
ExperimentViewBean()
|
|
| Method Summary | |
void |
addInteraction(Interaction inter)
Adds an Interaction. |
void |
addInteractionToHold(java.util.Collection ints)
Adds an Interaction to hold if the new interaction doesn't already exists in the interaction hold collection and in the current interaction collection for this experiment. |
void |
addToRecentList(EditUserI user)
Adds the current edit object to the recent edited item list. |
void |
clear()
Deletes all the links to sub objects of the current edit object. |
void |
clearInteractionToHold()
Clears all the interactions on hold. |
void |
clearTransactions()
Clears any pending xrefs and annotations stored in the transaction containers. |
void |
delInteraction(Interaction inter)
Removes an Interaction |
java.lang.String |
getHelpTag()
Returns the help tag link for the current view bean; subclasses must override this method to return the help tag (if necessary) or else the link to the CV editor is returned. |
int |
getHoldInteractionCount()
Returns the number of interactions in the hold interaction collection. |
java.util.List |
getHoldInteractions()
Returns a collection of Interaction objects on hold. |
java.lang.String |
getIdent()
|
java.util.List |
getIdentMenu()
The idetification menu list. |
java.lang.String |
getInter()
|
java.util.List |
getInteractions()
Returns a collection of Interactions for the current
experiment. |
java.util.List |
getInterMenu()
The interaction menu list. |
int |
getNumberOfInteractions()
Returns the number of interactions for this experiment. |
java.lang.String |
getOrganism()
|
java.util.List |
getOrganismMenu()
The organism menu list. |
java.lang.Boolean |
getReadOnly()
False as this object is editable. |
void |
hideInteractionToHold(Interaction inter)
Hides an Interaction bean from hold. |
void |
removeFromRecentList(EditUserI user)
Removes the current edit object from the recent edited item list. |
protected void |
reset(AnnotatedObject annobj)
Resets with the bean using an existing Annotated object. |
protected void |
reset(java.lang.Class clazz)
Resets the bean with the current edit class. |
void |
sanityCheck(EditUserI user)
Performs sanity check on a bean. |
void |
setIdent(java.lang.String identification)
|
void |
setInter(java.lang.String interaction)
|
void |
setLayout(org.apache.struts.tiles.ComponentContext context)
Sets the layout in given context. |
void |
setOrganism(java.lang.String organism)
|
protected void |
updateAnnotatedObject(EditUserI user)
Gathers values in the view bean and updates the existing AnnotatedObject if it exists or create a new annotated object for the view and sets the annotated object. |
void |
updateFromForm(org.apache.struts.action.DynaActionForm dynaform)
Updates the internal data from given form. |
void |
validate(EditUserI user)
Validates the data in the view bean. |
| Methods inherited from class uk.ac.ebi.intact.application.editor.struts.framework.util.AbstractEditViewBean |
addAnnotation, addXref, delAnnotation, delXref, equals, getAc, getAcLink, getAddDatabaseMenu, getAddTopicMenu, getAddXrefMenus, getAnnotatedObject, getAnnotations, getDefaultXrefQualifier, getEditClass, getEditDatabaseMenu, getEditorMenus, getEditTopicMenu, getEditXrefMenus, getFullName, getMenuFactory, getShortLabel, getXrefs, persist, persistOthers, reset, saveComment, saveXref, setAnnotatedObject, setFullName, setMenuFactory, setShortLabel |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ExperimentViewBean()
| Method Detail |
protected void reset(java.lang.Class clazz)
AbstractEditViewBean
reset in class AbstractEditViewBeanclazz - the Class of the new annotated object.protected void reset(AnnotatedObject annobj)
AbstractEditViewBean
reset in class AbstractEditViewBeanannobj - AnnotatedObject object to set this bean.
protected void updateAnnotatedObject(EditUserI user)
throws SearchException
AbstractEditViewBean
updateAnnotatedObject in class AbstractEditViewBeanuser - to access the persistent system.
SearchException - for errors in searching the persistent system.
post: getAnnotatedObject() != null
public void addToRecentList(EditUserI user)
AbstractEditViewBean
addToRecentList in class AbstractEditViewBeanuser - the user handle to add to the recent list.public void removeFromRecentList(EditUserI user)
AbstractEditViewBean
removeFromRecentList in class AbstractEditViewBeanuser - the user handle to remove from the recent list.public void setLayout(org.apache.struts.tiles.ComponentContext context)
AbstractEditViewBean
setLayout in class AbstractEditViewBeancontext - the Tiles context to set the layout.public java.lang.String getHelpTag()
AbstractEditViewBean
getHelpTag in class AbstractEditViewBeanpublic void updateFromForm(org.apache.struts.action.DynaActionForm dynaform)
AbstractEditViewBean
updateFromForm in class AbstractEditViewBeandynaform - the form to update the internal data.public java.lang.Boolean getReadOnly()
AbstractEditViewBean
getReadOnly in class AbstractEditViewBean
public void sanityCheck(EditUserI user)
throws ValidationException,
SearchException
AbstractEditViewBean
sanityCheck in class AbstractEditViewBeanSearchException - for errors in searching for objects in the
persistent system.
ValidationException - if sanity check fails.
public void validate(EditUserI user)
throws ValidationException,
SearchException
AbstractEditViewBean
validate in class AbstractEditViewBeanuser - handler to the user to access the DB.
ValidationException - thrown when this bean contains invalid data.
For example, an experiment must contain non null values for organism,
interaction and identification. Currently this method is empty as no
validations are preformed.
SearchExceptionpublic void clear()
AbstractEditViewBean
clear in class AbstractEditViewBean
public java.util.List getOrganismMenu()
throws SearchException
SearchException - for errors in generating menus.
public java.util.List getInterMenu()
throws SearchException
SearchException - for errors in generating menus.
public java.util.List getIdentMenu()
throws SearchException
SearchException - for errors in generating menus.public java.lang.String getOrganism()
public void setOrganism(java.lang.String organism)
public java.lang.String getInter()
public void setInter(java.lang.String interaction)
public java.lang.String getIdent()
public void setIdent(java.lang.String identification)
public void addInteraction(Interaction inter)
inter - the Interaction to add.
post: myInteractionsToAdd = myInteractionsToAdd@pre + 1 post: myInteractions = myInteractions@pre + 1
public void delInteraction(Interaction inter)
inter - the Interaction to remove.
post: myInteractionsToDel = myInteractionsToDel@pre - 1 post: myInteractions = myInteractions@pre - 1
public void addInteractionToHold(java.util.Collection ints)
ints - a collection of Interaction to add.
pre: forall(obj : Object | obj.oclIsTypeOf(Interaction))
public java.util.List getInteractions()
Interactions for the current
experiment.
post: return != null post: return->forall(obj : Object | obj.oclIsTypeOf(Interaction))
public java.util.List getHoldInteractions()
Interaction objects on hold.
post: return != null post: return->forall(obj : Object | obj.oclIsTypeOf(Interaction))
public int getHoldInteractionCount()
public void hideInteractionToHold(Interaction inter)
inter - an Interaction to hide.
pre: myInteractionsToHold->includes(intbean) post: myInteractionsToHold = myInteractionsToHold@pre - 1
public void clearInteractionToHold()
public void clearTransactions()
AbstractEditViewBeanpost: myAnnotsToAdd->isEmpty post: myAnnotsToDel->isEmpty post: myAnnotsToUpdate->isEmpty post: myXrefsToAdd->isEmpty post: myXrefsToDel->isEmpty post: myXrefsToUpdate->isEmpty
clearTransactions in class AbstractEditViewBeanpublic int getNumberOfInteractions()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||