Examples of WGAConfiguration


Examples of de.innovationgate.wga.config.WGAConfiguration

      if (runtime != null) {
          // determine designcontainer of selected tml warning
          IContainer designContainer = null;
          if (_warning.getDb() != null) {
              if (!_warning.getDb().startsWith("plugin-")) {
                  WGAConfiguration wgaConfiguration = runtime.retrieveWGAConfig(false);
                  ContentStore cs = wgaConfiguration.getContentStore(_warning.getDb());
                  if (cs != null && cs.getDesign() != null && cs.getDesign().getSource() != null && cs.getDesign().getSource().equals("fs-designs")) {
                      IFolder[] designFolders = runtime.getDesignsAsFolder(true);
                      for (IFolder designFolder : designFolders) {
                          if (designFolder.getName().equals(cs.getDesign().getName())) {
                              designContainer = designFolder;
View Full Code Here

Examples of de.innovationgate.wga.config.WGAConfiguration

  private static Change createRenameDesignReferenceChange(ContentStoreRefactoringInfo info) throws Exception {
   
 
    TextFileChange change = new TextFileChange("", info.getRuntime().getWGAConfigFile());   
    WGAConfiguration config = info.getRuntime().retrieveWGAConfig(false);
    ContentStore currentContentStore = (ContentStore)config.getByUid(info.getContentStoreUID());
   
   
    boolean configChanged = false;
    if(info.getArguments() instanceof RenameArguments){         
      currentContentStore.getDesign().setName(computeNewDesignReference(info));     
      configChanged=true;
    }else if(info.getArguments() instanceof MoveArguments){
      currentContentStore.setEnabled(false)
      configChanged=true;
    }else if(info.getArguments() instanceof DeleteArguments) {
      // check if wgaconfig will still exists after deletion is performed - otherwise we can skip any change here
      if (!info.getElement().getFullPath().isPrefixOf(info.getRuntime().getWGAConfigFile().getFullPath())) {
        currentContentStore.setEnabled(false);     
        configChanged=true;
     
    }   
   
   
   
    if(configChanged){
      List<ValidationError> errors =  config.validate();
      if(errors.isEmpty()) {
       
     
      ByteArrayOutputStream configContent = new ByteArrayOutputStream();   
      WGAConfiguration.write(config, configContent);
View Full Code Here

Examples of de.innovationgate.wga.config.WGAConfiguration

    // web app section
        _webAppSection = toolkit.createSection(form.getBody(), Section.DESCRIPTION|Section.TITLE_BAR|Section.TWISTIE|Section.EXPANDED);
        _webAppSection.setText("Web Applications");

    List<WebApplication> apps = retrieveWebApplications();
    WGAConfiguration config = null;
    try {
      config = _model.getWgaRuntime().retrieveWGAConfig(false);
    } catch (Exception e2) {
      WGADesignerPlugin.getDefault().logError("Unable to read wga configuration." , e2);
    }
View Full Code Here

Examples of de.innovationgate.wga.config.WGAConfiguration

      bind(form, SWTBinder.BINDING_STRATEGY_AS_YOU_TYPE);
  }

  private List<WebApplication> retrieveWebApplications() {
    List<WebApplication> apps = new ArrayList<WebApplication>();
    WGAConfiguration config;
    try {
      config = _model.getWgaRuntime().retrieveWGAConfig(false);     
      if (config != null) {
        for (ContentStore cs : config.getContentStores()) {
          WebApplication webApplication = new WebApplication();
          webApplication.setRuntime(_model.getWgaRuntime());
          webApplication.setContentStore(cs);
          apps.add(webApplication);         
        }
View Full Code Here

Examples of de.innovationgate.wga.config.WGAConfiguration

        if (!_mimeType.startsWith("image/")) {
            return;
        }
       
        // Find out about the max size threshold
        WGAConfiguration wgaConfig = _dispatcher.getCore().getWgaConfiguration();
        //wgaConfig.getOptionReader(wgaConfig.getServerOptions(), new Var)
       
        // Try to allocate a scaler
        try {
             _scaler = ImageScalerFactory.createMimeTypeSpecificImageScaler(_dispatcher.getCore(), _mimeType);
View Full Code Here

Examples of de.innovationgate.wga.config.WGAConfiguration

    _contextProvider = contextProvider;
  }


  public RemoteSession login(String domain, String user, String pwd) throws WGAServiceException {
    WGAConfiguration config = _core.getWgaConfiguration();

        DomainConfiguration domainConfig = _core.getDomainConfig(domain);
        if (domainConfig == null) {
            throw new WGAServiceException("Unknown domain '" + domain + "'");
        }
View Full Code Here

Examples of de.innovationgate.wga.config.WGAConfiguration

        if (!isAdminSession(session)) {
            throw new WGAServiceException("You need an administrative login to access this service.");
        }
       
        try {
            WGAConfiguration configBean = WGAConfiguration.read(wgaConfiguration.getInputStream());
            _core.saveWgaConfiguration(configBean);
        }
        catch (Exception e) {
            throw new WGAServiceException("Update of wga configuration failed.", e);
        }
View Full Code Here

Examples of de.innovationgate.wga.config.WGAConfiguration

        public PageContext getPageContext() {
            return null;
        }
       
        public String getPublisherURL() {
            WGAConfiguration config = _core.getWgaConfiguration();
            return config.getRootURL();
        }
View Full Code Here

Examples of de.innovationgate.wga.config.WGAConfiguration

       
    }

    private void createDefaultWGAConfiguration(File file) throws Exception {
      log.info("Creating default wga configuration in file '" + file.getAbsolutePath() + "'.");
      WGAConfiguration defaultConfig = WGAConfiguration.createDefaultConfig();
      WGAConfiguration.write(defaultConfig, new FileOutputStream(file));   
  }
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.