Examples of ApplicationConfiguration


Examples of org.apache.cocoon.webapps.authentication.configuration.ApplicationConfiguration

                                LayoutFactory layoutFactory,
                                ServiceSelector adapterSelector)
    throws Exception {
        final RequestState state = this.getRequestState();
        final UserHandler handler = state.getHandler();
        final ApplicationConfiguration ac = state.getApplicationConfiguration();       
        if ( ac == null ) {
            throw new ProcessingException("Configuration for portal not found in application configuration.");
        }
        final Configuration appConf = ac.getConfiguration("portal");
        if ( appConf == null ) {
            throw new ProcessingException("Configuration for portal not found in application configuration.");
        }
        final Configuration config = appConf.getChild("profiles");
View Full Code Here

Examples of org.apache.cocoon.webapps.authentication.configuration.ApplicationConfiguration

                                LayoutFactory layoutFactory,
                                ServiceSelector adapterSelector)
    throws Exception {
        final RequestState state = this.getRequestState();
        final UserHandler handler = state.getHandler();
        final ApplicationConfiguration ac = state.getApplicationConfiguration();       
        if ( ac == null ) {
            throw new ProcessingException("Configuration for portal not found in application configuration.");
        }
        final Configuration appConf = ac.getConfiguration("portal");
        if ( appConf == null ) {
            throw new ProcessingException("Configuration for portal not found in application configuration.");
        }
        final Configuration config = appConf.getChild("profiles");
View Full Code Here

Examples of org.atmosphere.config.ApplicationConfiguration

                        }

                    }

                    if (param != null) {
                        atmoHandler.getApplicationConfig().add(new ApplicationConfiguration(param, value));
                    }

                } else if (n.getNodeName().equals("frameworkConfig")) {
                    String param = null;
                    String value = null;
View Full Code Here

Examples of org.quickserver.util.xmlreader.ApplicationConfiguration

      handler.getServer().getStoreObjects()[0];

    if(command.toLowerCase().startsWith("set ftproot ")) {
      String temp = "";
      temp = command.substring("set ftproot ".length());
      ApplicationConfiguration appConfig = ftpqs.getConfig().getApplicationConfiguration();
      File root = new File(temp);
      if(root.canRead() && root.isDirectory()) {
        if(appConfig==null)
          appConfig = new ApplicationConfiguration();
        appConfig.put("FTP_ROOT", temp);
        ftpqs.getConfig().setApplicationConfiguration(appConfig);
        handler.sendClientMsg("+OK root changed");
      } else {
        handler.sendClientMsg("-ERR not a directory or can't read : "+temp);
      }
      return true;
    } else if(command.toLowerCase().equals("get ftproot")) {
      HashMap appConfig = ftpqs.getConfig().getApplicationConfiguration();
      String temp = null;
      if(appConfig!=null)
        temp = (String)appConfig.get("FTP_ROOT");
      else
        temp = System.getProperty("user.home");
      handler.sendClientMsg("+OK " + temp);
      return true;
    } else if(command.toLowerCase().equals("help")) {
View Full Code Here

Examples of org.sonatype.nexus.configuration.application.ApplicationConfiguration

{

  private File getRepoRoot(final String id)
      throws Exception
  {
    final ApplicationConfiguration applicationConfiguration = lookup(ApplicationConfiguration.class);
    final File repoRoot = applicationConfiguration.getWorkingDirectory("storage/" + id);
    return repoRoot;
  }
View Full Code Here

Examples of org.sonatype.nexus.configuration.application.ApplicationConfiguration

  }

  private File addRepository(String id)
      throws Exception
  {
    final ApplicationConfiguration applicationConfiguration = lookup(ApplicationConfiguration.class);
    final File repoRoot = getRepoRoot(id);
    final File repoContent = new File("src/test/resources/" + id);
    if (repoContent.isDirectory()) {
      FileUtils.copyDirectory(repoContent, repoRoot);
    }

    // ading one hosted only
    M2Repository repo = (M2Repository) lookup(Repository.class, "maven2");

    CRepository repoConf = new DefaultCRepository();

    repoConf.setProviderRole(Repository.class.getName());
    repoConf.setProviderHint("maven2");
    repoConf.setId(id);

    repoConf.setLocalStorage(new CLocalStorage());
    repoConf.getLocalStorage().setProvider("file");

    repoConf.getLocalStorage().setUrl(repoRoot.toURI().toURL().toString());

    Xpp3Dom exRepo = new Xpp3Dom("externalConfiguration");
    repoConf.setExternalConfiguration(exRepo);
    M2RepositoryConfiguration exRepoConf = new M2RepositoryConfiguration(exRepo);
    exRepoConf.setRepositoryPolicy(RepositoryPolicy.RELEASE);
    exRepoConf.setChecksumPolicy(ChecksumPolicy.STRICT_IF_EXISTS);

    repo.configure(repoConf);

    applicationConfiguration.getConfigurationModel().addRepository(repoConf);

    lookup(RepositoryRegistry.class).addRepository(repo);

    return repoRoot;
  }
View Full Code Here

Examples of org.sonatype.nexus.configuration.application.ApplicationConfiguration

  {

    this.addRepository("out-of-service-repo");
    final File activeRepoRoot = this.addRepository("active-repo");

    ApplicationConfiguration applicationConfiguration = lookup(ApplicationConfiguration.class);
    File basketDir =
        applicationConfiguration.getWorkingDirectory(AbstractRepositoryFolderCleaner.GLOBAL_TRASH_KEY);

    // fill legacy trash from activeRepo trash
    basketDir.mkdirs();
    File trashContent = new File(activeRepoRoot, ".nexus/trash");
    FileUtils.copyDirectory(trashContent, basketDir);
View Full Code Here

Examples of org.sonatype.nexus.configuration.application.ApplicationConfiguration

{

  @Test
  public void sameMemberMultipleTime() {
    final Xpp3Dom xpp3Dom = mock(Xpp3Dom.class);
    final ApplicationConfiguration applicationConfiguration = mock(ApplicationConfiguration.class);
    final Configuration configuration = mock(Configuration.class);
    final CRepository repo1 = new CRepository();
    repo1.setId("1");
    final CRepository repo2 = new CRepository();
    repo2.setId("2");

    when(applicationConfiguration.getConfigurationModel()).thenReturn(configuration);
    when(configuration.getRepositories()).thenReturn(Lists.newArrayList(repo1, repo2));

    final AbstractGroupRepositoryConfiguration underTest = new AbstractGroupRepositoryConfiguration(
        xpp3Dom
    )
View Full Code Here

Examples of org.wso2.carbon.application.deployer.config.ApplicationConfiguration

        CarbonApplication currentApp = new CarbonApplication();
        currentApp.setAppFilePath(archPath);
        String extractedPath = AppDeployerUtils.extractCarbonApp(archPath);

        // Build the app configuration by providing the artifacts.xml path
        ApplicationConfiguration appConfig = new ApplicationConfiguration(capm, extractedPath +
                ApplicationConfiguration.ARTIFACTS_XML);

        // If we don't have features (artifacts) for this server, ignore
        if (appConfig.getApplicationArtifact().getDependencies().size() == 0) {
            log.warn("No artifacts found to be deployed in this server. " +
                    "Ignoring Carbon Application : " + fileName);
            return;
        }

        currentApp.setExtractedPath(extractedPath);
        currentApp.setAppConfig(appConfig);

        String appName = appConfig.getAppName();
        if (appName == null) {
            log.warn("No application name found in Carbon Application : " + fileName + ". Using " +
                    "the file name as the application name");
            appName = fileName.substring(0, fileName.lastIndexOf("."));
        }
View Full Code Here

Examples of org.wso2.carbon.application.deployer.config.ApplicationConfiguration

     * Deploy the artifacts which can be deployed through this deployer.
     * @param carbonApp - store info in this object after deploying
     * @param axisConfig - AxisConfiguration of the current tenant
     */
    public void deployArtifacts(CarbonApplication carbonApp, AxisConfiguration axisConfig) {
        ApplicationConfiguration appConfig = carbonApp.getAppConfig();
        List<Artifact.Dependency> deps = appConfig.getApplicationArtifact().getDependencies();

        List<Artifact> artifacts = new ArrayList<Artifact>();
        for (Artifact.Dependency dep : deps) {
            if (dep.getArtifact() != null) {
                artifacts.add(dep.getArtifact());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.