Package com.hlcl.rql.as

Examples of com.hlcl.rql.as.Page.deleteFromRecycleBin()


    // delete ignoring references
    currentPg = project.getPageById("4712");
    currentPg.delete(true);
   
    // remove page from recycle bin
    currentPg.deleteFromRecycleBin();
    currentPg.deleteFromRecycleBinInCurrentLanguageVariant();
   
    // remove page from recycle bin for given language variants
    java.util.List<LanguageVariant> languageVariants = new ArrayList<LanguageVariant>();
    languageVariants.add(project.getLanguageVariantByRfcLanguageId("en"));
View Full Code Here


   
    // remove page from recycle bin for given language variants
    java.util.List<LanguageVariant> languageVariants = new ArrayList<LanguageVariant>();
    languageVariants.add(project.getLanguageVariantByRfcLanguageId("en"));
    languageVariants.add(project.getLanguageVariantByRfcLanguageId("zh"));
    currentPg.deleteFromRecycleBin(languageVariants);
   
    // restore page from recycle bin
    RecycleBin recycleBin = project.getRecycleBin();
    recycleBin.restorePageById("4711");
  }
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.