List<AdminRegistration> registry = new ArrayList<AdminRegistration>();
List<StatusPageRegistration> statusRegistry = new ArrayList<StatusPageRegistration>();
List<FrontPageRegistration> frontRegistry = new ArrayList<FrontPageRegistration>();
// add the home item to the top of the list
AdminRegistration home = new AdminRegistration("home", "Home",
"/wonderland-web-front");
home.setAbsolute(true);
home.setPosition(0);
registry.add(home);
// add other built-in registrations
AdminRegistration runner = new AdminRegistration("runner",
"Manage Server", "/wonderland-web-runner");
runner.setFilter(AdminRegistration.ADMIN_FILTER);
runner.setPosition(1);
registry.add(runner);
// Register the module management page. This needs to happen here because
// there is no forced order of installation for things in web/, and
// front/ needs to be installed before modules/ and that currently
// cannot be guaranteed.
AdminRegistration modules = new AdminRegistration("modules",
"Manage Modules", "/wonderland-web-modules/editor");
modules.setFilter(AdminRegistration.ADMIN_FILTER);
registry.add(modules);
// Register the client properties management page
AdminRegistration client = new AdminRegistration("client",
"Client Settings", "/wonderland-web-front/config/settings");
client.setFilter(AdminRegistration.ADMIN_FILTER);
registry.add(client);
// add the registry to the context
ServletContext sc = sce.getServletContext();
sc.setAttribute(AdminRegistration.ADMIN_REGISTRY_PROP, registry);