protected void activate(ComponentContext cCtx) throws Exception { logger.debug("Activating DashBoard"); URL template = getClass().getResource("dashboard-template.ssp"); renderletManager.registerRenderlet(ScalaServerPagesRenderlet.class.getName(), new UriRef(template.toURI().toString()), DASHBOARD.DashBoard, "naked", MediaType.APPLICATION_XHTML_XML_TYPE, true); }
/** * The activate method is called when SCR activates the component * configuration * * @param componentContext */ protected void activate(ComponentContext componentContext) throws Exception { URL template = getClass().getResource("exception-template.ssp"); renderletManager.registerRenderlet("org.apache.clerezza.platform.typerendering.scalaserverpages.ScalaServerPagesRenderlet", new IRI(template.toURI().toString()), TYPERENDERING.Exception, ".*", MediaType.APPLICATION_XHTML_XML_TYPE, true); } }
public void activate(ComponentContext context) throws URISyntaxException, IOException { renderletManager.registerRenderlet(ScalaServerPagesRenderlet.class.getName(), new UriRef(getClass().getResource( "config-page-naked.ssp").toURI().toString()), LOGGING.LoggingConfigPage, "naked", MediaType.APPLICATION_XHTML_XML_TYPE, true); for (Bundle bundle : context.getBundleContext().getBundles()) { if (bundle.getSymbolicName().equals("org.ops4j.pax.logging.pax-logging-service")) { paxLoggingLocation = bundle.getLocation(); break; } } }
protected void activate(ComponentContext context) throws IOException, URISyntaxException { Bundle bundle = context.getBundleContext().getBundle(); URL resourceDir = getClass().getResource("staticweb"); PathNode pathNode = new BundlePathNode(bundle, resourceDir.getPath()); fileServer = new FileServer(pathNode); URL template = getClass().getResource("language-list.ssp"); renderletManager.registerRenderlet(ScalaServerPagesRenderlet.class.getName(), new UriRef(template.toURI().toString()), LANGUAGE.LanguageList, "naked", MediaType.APPLICATION_XHTML_XML_TYPE, true); }
/** * The activate method is called when SCR activates the component configuration. * * @param componentContext */ protected void activate(ComponentContext componentContext) { URL templateURL = getClass().getResource("reset.xhtml"); renderletManager.registerRenderlet(SeedsnipeRenderlet.class.getName(), new UriRef(templateURL.toString()), USERMANAGER.PasswordResetPage, null, MediaType.APPLICATION_XHTML_XML_TYPE, true); templateURL = getClass().getResource("reset_mail.txt"); renderletManager.registerRenderlet(SeedsnipeRenderlet.class.getName(), new UriRef(templateURL.toString()), USERMANAGER.PasswordResetMail, null, MediaType.TEXT_PLAIN_TYPE, true); passwordUser = (String)componentContext.getProperties().get(PASSWORD_USER); logger.info("Password Reset activated."); }
protected void activate(ComponentContext context) throws IOException, URISyntaxException { Bundle bundle = context.getBundleContext().getBundle(); URL resourceDir = getClass().getResource("staticweb"); PathNode pathNode = new BundlePathNode(bundle, resourceDir.getPath()); logger.debug("Initializing file server for {} ({})", resourceDir, resourceDir.getFile()); fileServer = new FileServer(pathNode); URL template = getClass().getResource( "config.ssp"); renderletManager.registerRenderlet(ScalaServerPagesRenderlet.class.getName(), new UriRef(template.toURI().toString()), CONFIG_PAGE, "naked", MediaType.APPLICATION_XHTML_XML_TYPE, true); }
protected void activate(ComponentContext context) throws URISyntaxException { configure(context.getBundleContext()); URL template = getClass().getResource("generic-resource-page.ssp"); renderletManager.registerRenderlet(ScalaServerPagesRenderlet.class.getName(), new UriRef(template.toURI().toString()), CONCEPTS.GenericResourcePage, "naked", MediaType.APPLICATION_XHTML_XML_TYPE, true); remoteConceptsDescriptionManager = new RemoteConceptsDescriptionManager(); }
/** * The activate method is called when SCR activates the component * configuration. * * @param context * @throws IOException * @throws URISyntaxException */ protected void activate(ComponentContext context) throws IOException, URISyntaxException { URL template = getClass().getResource("manage-concept-providers-page.ssp"); renderletManager.registerRenderlet(ScalaServerPagesRenderlet.class.getName(), new UriRef(template.toURI().toString()), CONCEPTS.ManageConceptProvidersPage, "naked", MediaType.APPLICATION_XHTML_XML_TYPE, true); instantiateConceptProviders(); }
protected void activate(ComponentContext context) throws URISyntaxException { URL template = getClass().getResource("skos-collection-json.ssp"); renderletManager.registerRenderlet(ScalaServerPagesRenderlet.class.getName(), new UriRef(template.toURI().toString()), SKOS.Collection, null, MediaType.APPLICATION_JSON_TYPE, true); freeConceptScheme = new UriRef(platformConfig.getDefaultBaseUri().getUnicodeString() + ConceptManipulator.FREE_CONCEPT_SCHEME); freeConceptProvider = new LocalConceptProvider(tcManager, cgProvider, freeConceptScheme); }
renderletManager.registerRenderlet(ScalaServerPagesRenderlet.class.getName(), new UriRef(renderlet.toURI().toString()), SCRIPTMANAGER.ScriptManagerOverviewPage, "naked", MediaType.APPLICATION_XHTML_XML_TYPE, true); renderlet = getClass().getResource("scriptmanager-script-list.xhtml"); renderletManager.registerRenderlet(SeedsnipeRenderlet.class.getName(), new UriRef(renderlet.toURI().toString()), SCRIPTMANAGER.ScriptList, "naked" , MediaType.APPLICATION_XHTML_XML_TYPE, true); renderlet = getClass().getResource("scriptmanager-script-install.ssp"); renderletManager.registerRenderlet(ScalaServerPagesRenderlet.class.getName(), new UriRef(renderlet.toURI().toString()), SCRIPTMANAGER.ScriptManagerInstallPage, "naked" , MediaType.APPLICATION_XHTML_XML_TYPE, true); renderlet = getClass().getResource("scriptmanager-execution-uri-overview.ssp"); renderletManager.registerRenderlet(ScalaServerPagesRenderlet.class.getName(), new UriRef(renderlet.toURI().toString()), SCRIPTMANAGER.ExecutionUriOverviewPage, "naked" , MediaType.APPLICATION_XHTML_XML_TYPE, true); renderlet = getClass().getResource("scriptmanager-execution-uri-list.xhtml"); renderletManager.registerRenderlet(SeedsnipeRenderlet.class.getName(), new UriRef(renderlet.toURI().toString()), SCRIPTMANAGER.ExecutionUriList, "naked" , MediaType.APPLICATION_XHTML_XML_TYPE, true); renderlet = getClass().getResource("scriptmanager-script-information.xhtml"); renderletManager.registerRenderlet(SeedsnipeRenderlet.class.getName(), new UriRef(renderlet.toURI().toString()), SCRIPTMANAGER.SelectedScript,
renderletManager.registerRenderlet(ScalaServerPagesRenderlet.class.getName(), new UriRef(getClass().getResource( "user-overview-template.ssp").toURI().toString()), USERMANAGER.UserOverviewPage, "naked", MediaType.APPLICATION_XHTML_XML_TYPE, true); renderletManager.registerRenderlet(ScalaServerPagesRenderlet.class.getName(), new UriRef(getClass().getResource("add-user-template.ssp") .toURI().toString()), USERMANAGER.AddUserPage, "naked", MediaType.APPLICATION_XHTML_XML_TYPE, true); renderletManager.registerRenderlet(ScalaServerPagesRenderlet.class.getName(), new UriRef(getClass().getResource( "user-permission-template.ssp").toURI().toString()), USERMANAGER.UserPermissionPage, "naked", MediaType.APPLICATION_XHTML_XML_TYPE, true); renderletManager.registerRenderlet(ScalaServerPagesRenderlet.class.getName(), new UriRef(getClass().getResource( "update-user-template.ssp").toURI().toString()), USERMANAGER.UpdateUserPage, "naked", MediaType.APPLICATION_XHTML_XML_TYPE, true); renderletManager.registerRenderlet(ScalaServerPagesRenderlet.class.getName(), new UriRef(getClass().getResource( "custom-property-template.ssp").toURI().toString()), USERMANAGER.CustomFieldPage, "naked", MediaType.APPLICATION_XHTML_XML_TYPE, true); renderletManager.registerRenderlet(ScalaServerPagesRenderlet.class.getName(), new UriRef(getClass().getResource( "role-overview-template.ssp").toURI().toString()), USERMANAGER.RoleOverviewPage, "naked", MediaType.APPLICATION_XHTML_XML_TYPE, true); renderletManager.registerRenderlet(ScalaServerPagesRenderlet.class.getName(),