Package com.dotmarketing.portlets.htmlpages.business.HTMLPageAPI.TemplateContainersReMap

Examples of com.dotmarketing.portlets.htmlpages.business.HTMLPageAPI.TemplateContainersReMap.ContainerRemapTuple


    if (copySourceContainers) {
      List<Container> sourceContainers = getContainersInTemplate(sourceTemplate, user, respectFrontendRoles);
      Container newContainer;
      for (Container container : sourceContainers) {
        newContainer = containerAPI.copy(container, destination, user, respectFrontendRoles);
        remap.add(new ContainerRemapTuple(container, newContainer));
      }
    }

    return copy(sourceTemplate, destination, forceOverwrite, remap, user, respectFrontendRoles);
  }
View Full Code Here


        List<ContainerRemapTuple> containersRemap = new LinkedList<ContainerRemapTuple>();
        for (int i = 0; i < sourceContainers.size(); i++) {
      Container sourceContainer = sourceContainers.get(i);
      Container destinationContainer = copyContainers.get(i);
          containersRemap.add(new ContainerRemapTuple(sourceContainer, destinationContainer));
        }
        TemplateContainersReMap remap = new TemplateContainersReMap(sourceTemplate, template, containersRemap);

    return copy(source, destination, forceOverwrite, copyMode, remap, user, respectFrontendRoles);
  }
View Full Code Here

    if (copyMode != HTMLPageAPI.CopyMode.BLANK_HTMLPAGE) {
      for (MultiTree multiTree : associatedSourceContentlets) {
        String sourceContainerId = multiTree.getParent2();
        String destinationContainerId = null;
        for (int i = 0; i < reMapping.getContainersRemap().size(); i++) {
          ContainerRemapTuple tuple = reMapping.getContainersRemap().get(i);
          if(tuple.getSourceContainer().getIdentifier().equals(sourceContainerId)) {
            destinationContainerId = tuple.getDestinationContainer().getIdentifier();
          }
        }
        if(destinationContainerId != null) {
          newContentletAssociation.add(new MultiTree("", destinationContainerId, multiTree.getChild()));
        }
View Full Code Here

TOP

Related Classes of com.dotmarketing.portlets.htmlpages.business.HTMLPageAPI.TemplateContainersReMap.ContainerRemapTuple

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.