public class OpsuiApp extends WebApplication implements Serializable {
private static final long serialVersionUID = 1403288657369282259L;
public OpsuiApp() {
MixedParamUrlCodingStrategy types = new MixedParamUrlCodingStrategy(
"types", TypesPage.class, new String[] {});
MixedParamUrlCodingStrategy typeBrowser = new MixedParamUrlCodingStrategy(
"type", TypeBrowserPage.class, new String[] { "name", "pageNum" });
MixedParamUrlCodingStrategy prodBrowser = new MixedParamUrlCodingStrategy(
"product", ProductBrowserPage.class, new String[] { "id" });
MixedParamUrlCodingStrategy pcsStatus = new MixedParamUrlCodingStrategy(
"status", StatusPage.class, new String[] {});
MixedParamUrlCodingStrategy taskPageMount = new MixedParamUrlCodingStrategy(
"task", WorkflowTaskViewerPage.class, new String[] { "id" });
MixedParamUrlCodingStrategy condPageMount = new MixedParamUrlCodingStrategy(
"condition", WorkflowConditionViewerPage.class, new String[] { "id" });
MixedParamUrlCodingStrategy workflowPageMount = new MixedParamUrlCodingStrategy(
"workflow", WorkflowViewerPage.class, new String[] { "id" });
MixedParamUrlCodingStrategy workflowsPageMount = new MixedParamUrlCodingStrategy(
"workflows", WorkflowsViewerPage.class, new String[] {});
MixedParamUrlCodingStrategy workflowInstsPageMount = new MixedParamUrlCodingStrategy(
"instances", WorkflowInstanceViewerPage.class, new String[] { "status",
"pageNum" });
MixedParamUrlCodingStrategy configPageMount = new MixedParamUrlCodingStrategy("config",
ConfigPage.class, new String [] {"tab"});
mount(pcsStatus);
mount(types);
mount(typeBrowser);