Package com.dotmarketing.portlets.contentlet.business

Examples of com.dotmarketing.portlets.contentlet.business.ContentletAPI.publish()


          if(asset instanceof Contentlet) {
          Logger.debug(PublishFactory.class, "*****I'm an HTML Page -- Publishing my Contentlet Child=" + ((Contentlet)asset).getInode());
          try {
            Contentlet c = (Contentlet)asset;
            if(!APILocator.getWorkflowAPI().findSchemeForStruct(c.getStructure()).isMandatory()){
              conAPI.publish((Contentlet)asset, user, false);
            }
          } catch (DotSecurityException e) {
            //User has no permission to publish the content in the page so we just skip it
            Logger.debug(PublishFactory.class, "publish html page: User has no permission to publish the content inode = " + ((Contentlet)asset).getInode() + " in the page, skipping it.");
          }           
View Full Code Here


   
          try {
            List<Contentlet> cons = capi.search(luceneQuery.toString(), 0, batchSize, null, expireUSer, false);
            while (cons.size() > 0) {
   
              capi.publish(cons, pubUser, false);
              Thread.sleep(500);
   
              cons = capi.search(luceneQuery.toString(), 0, batchSize, null, expireUSer, false);
            }
          } catch (Exception e) {
View Full Code Here

      }

      if(publish && contentlet!=null){
        ContentletAPI capi = APILocator.getContentletAPI();
        capi.publish(contentlet, user, true);
        capi.unlock(contentlet, user, true);
        callbackData.put("contentletLocked", contentlet.isLocked());
      }

      if (contentlet!=null && contentlet.getStructure().getVelocityVarName().equalsIgnoreCase("host")) {
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.