Package de.innovationgate.wga.config

Examples of de.innovationgate.wga.config.Design


  public Map<String, IContainer> getConnectedDesignContainers() throws IncompatibleWGAConfigVersion, IOException {
    Map<String, IContainer> contentDesign = new HashMap<String, IContainer>();
    Iterator<ContentStore> itCS = retrieveWGAConfig(false).getContentStores().iterator();
    while (itCS.hasNext()) {
      ContentStore currentContentStore = itCS.next();
      Design currentDesign = currentContentStore.getDesign();
      if (currentDesign != null && currentDesign.getSource() != null && currentContentStore.isEnabled() && currentDesign.getSource().equals(Constants.DESIGNCOL_FILESYSTEM)) {
        IFolder designFolder = getDesignRoot().getFolder(new Path(currentDesign.getName()));
        if (WGADesignStructureHelper.isDirlinkFolder(designFolder)) {
          contentDesign.put(currentContentStore.getKey(), (WGADesignStructureHelper.dirLinkFolderToContainer(designFolder)));
        } else {
          contentDesign.put(currentContentStore.getKey(), designFolder);
        }
View Full Code Here


     
      // iterate over contentstores and check design references
      Iterator<ContentStore> itCS = currentRuntime.retrieveWGAConfig(false).getContentStores().iterator();
      while (itCS.hasNext()) {
        ContentStore currentContentStore = itCS.next();
        Design currentDesign = currentContentStore.getDesign();

        if (currentDesign != null && currentDesign.getSource() != null && currentDesign.getSource().equals(Constants.DESIGNCOL_FILESYSTEM)) {
          //IPath designPath = currentRuntime.getDesignRoot().getFullPath().append(currentDesign.getName());       

          if (container.getParent() != null && container.getParent().equals(currentRuntime.getDesignRoot()) && container.getName().equals(currentDesign.getName())) {
            ContentStoreRefactoringInfo info = new ContentStoreRefactoringInfo(container, arguments);
            info.setRuntime(currentRuntime);
            info.setContentStoreUID(currentContentStore.getUid());
            links.add(info);
          }
View Full Code Here

    }
   
    public void applyDesign(WGDatabase db, ContentStore cs) {
       
        try {
            Design designConfig = cs.getDesign();
            DesignReference ref = new DesignReference(designConfig.getSource(), designConfig.getName());
            WGADesign design = resolveDesignReference(ref);
            if (design == null) {
                _core.getLog().error("Unknown design: " + new DesignReference(designConfig).toString());
                return;
            }
               
            // Look if we have an overlay: If so use special overlay design provider
            Design overlayConfig = cs.getOverlay();
            if (overlayConfig != null) {
                ref = new DesignReference(overlayConfig.getSource(), overlayConfig.getName());
                WGADesign overlay = resolveDesignReference(ref);
                if (overlay != null) {
                    OverlayDesignProvider.applyOverlayDesign(_core, db, design, designConfig.getOptions(), overlay, overlayConfig.getOptions());
                    return;
                }
                else {
                    _core.getLog().error("Cannot resolve design overlay: " + new DesignReference(overlayConfig).toString());
                }
View Full Code Here

        getSource().applyDesign(this, db, options);
    }
   
    public Design createDesignConfiguration() {
       
        Design design = new Design(getSource().getName(), getName());
        return design;
       
    }
View Full Code Here

TOP

Related Classes of de.innovationgate.wga.config.Design

Copyright © 2018 www.massapicom. 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.