Package com.dotmarketing.portlets.htmlpages.model

Examples of com.dotmarketing.portlets.htmlpages.model.HTMLPage.copy()


        }

        //gets the new information for the template from the request object
        HTMLPage newHTMLPage = new HTMLPage();
        //Copy the current page
        newHTMLPage.copy( currentHTMLPage );

        //gets page url before extension
        String pageURL = com.dotmarketing.util.UtilMethods.getFileName( currentHTMLPage.getPageUrl() );
        //gets file extension
        String fileExtension = com.dotmarketing.util.UtilMethods.getFileExtension( currentHTMLPage.getPageUrl() );
View Full Code Here


      // removing both old and new parent
      CacheLocator.getNavToolCache().removeNavByPath(ident.getHostId(), ident.getParentPath());
      CacheLocator.getNavToolCache().removeNav(folder.getHostId(), folder.getInode());

      HTMLPage tempPage = new HTMLPage();
      tempPage.copy(page);
      // sets filename for this new file
     
      String newNamePage = newName + "." + Config.getStringProperty("VELOCITY_PAGE_EXTENSION");
     
      tempPage.setPageUrl(newNamePage);
View Full Code Here

    } else {
      isNew = true;
    }

    newHTMLPage = new HTMLPage();
    newHTMLPage.copy(source);

    // gets page url before extension
    String pageURL = UtilMethods.getFileName(source.getPageUrl());

    // gets file extension
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.