-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
77 changed files
with
9,062 additions
and
1,215 deletions.
There are no files selected for viewing
991 changes: 991 additions & 0 deletions
991
src/main/java/pt/ua/bioinformatics/coeus/actions/ConfigActionBean.java
Large diffs are not rendered by default.
Oops, something went wrong.
108 changes: 108 additions & 0 deletions
108
src/main/java/pt/ua/bioinformatics/coeus/actions/ManagerActionBean.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
/* | ||
* To change this template, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package pt.ua.bioinformatics.coeus.actions; | ||
|
||
import net.sourceforge.stripes.action.ActionBean; | ||
import net.sourceforge.stripes.action.ActionBeanContext; | ||
import net.sourceforge.stripes.action.DefaultHandler; | ||
import net.sourceforge.stripes.action.ForwardResolution; | ||
import net.sourceforge.stripes.action.Resolution; | ||
import net.sourceforge.stripes.action.UrlBinding; | ||
|
||
/** | ||
* | ||
* @author sernadela | ||
*/ | ||
@UrlBinding("/manager/{$model}/{method}") | ||
public class ManagerActionBean implements ActionBean { | ||
|
||
private static final String INDEX_VIEW = "/setup/index.jsp"; | ||
private static final String SEEDS_VIEW = "/setup/seeds.jsp"; | ||
//private static final String SEEDS_ADD_VIEW = "/setup/addseed.jsp"; | ||
//private static final String ENTITY_ADD_VIEW = "/setup/addentity.jsp"; | ||
private static final String ENTITIES_VIEW = "/setup/entities.jsp"; | ||
//private static final String CONCEPT_ADD_VIEW = "/setup/addconcept.jsp"; | ||
private static final String CONCEPTS_VIEW = "/setup/concepts.jsp"; | ||
//private static final String RESOURCE_ADD_VIEW = "/setup/addresource.jsp"; | ||
private static final String RESOURCES_VIEW = "/setup/resources.jsp"; | ||
private static final String SELECTORS_VIEW = "/setup/selectors.jsp"; | ||
private static final String ENVIRONMENTS_VIEW = "/setup/environments.jsp"; | ||
private static final String ENVIRONMENTS_EDIT_VIEW = "/setup/editenvironment.jsp"; | ||
private static final String NOTFOUND_VIEW = "/setup/404.jsp"; | ||
private static final String GRAPH_VIEW = "/setup/graph.jsp"; | ||
private String method; | ||
private String model; | ||
private ActionBeanContext context; | ||
|
||
@DefaultHandler | ||
public Resolution handle() { | ||
return new ForwardResolution(NOTFOUND_VIEW); | ||
} | ||
|
||
public Resolution config() { | ||
return new ForwardResolution("/setup/config.jsp"); | ||
} | ||
|
||
public Resolution graph() { | ||
return new ForwardResolution(GRAPH_VIEW); | ||
} | ||
|
||
public Resolution environments() { | ||
if (method != null && method.startsWith("edit")) { | ||
return new ForwardResolution(ENVIRONMENTS_EDIT_VIEW); | ||
} else { | ||
return new ForwardResolution(ENVIRONMENTS_VIEW); | ||
} | ||
} | ||
|
||
public Resolution seed() { | ||
if (method == null) { | ||
return new ForwardResolution(SEEDS_VIEW); | ||
} else { | ||
return new ForwardResolution(INDEX_VIEW); | ||
} | ||
} | ||
|
||
public Resolution entity() { | ||
return new ForwardResolution(ENTITIES_VIEW); | ||
} | ||
|
||
public Resolution concept() { | ||
return new ForwardResolution(CONCEPTS_VIEW); | ||
} | ||
|
||
public Resolution resource() { | ||
return new ForwardResolution(RESOURCES_VIEW); | ||
} | ||
public Resolution selector() { | ||
return new ForwardResolution(SELECTORS_VIEW); | ||
} | ||
|
||
public String getModel() { | ||
return model; | ||
} | ||
|
||
public void setModel(String model) { | ||
this.model = model; | ||
} | ||
|
||
public String getMethod() { | ||
return method; | ||
} | ||
|
||
public void setMethod(String method) { | ||
this.method = method; | ||
} | ||
|
||
@Override | ||
public void setContext(ActionBeanContext actionBeanContext) { | ||
this.context = actionBeanContext; | ||
} | ||
|
||
@Override | ||
public ActionBeanContext getContext() { | ||
return context; | ||
} | ||
} |
50 changes: 0 additions & 50 deletions
50
src/main/java/pt/ua/bioinformatics/coeus/actions/SeedActionBean.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.