Examples of convertFatContentletToContentlet()


Examples of com.dotcms.content.elasticsearch.business.ESContentFactoryImpl.convertFatContentletToContentlet()

            List<com.dotmarketing.portlets.contentlet.business.Contentlet> l = dh.list();
            List<Contentlet> conResult = new ArrayList<Contentlet>();
            ESContentFactoryImpl conFac = new ESContentFactoryImpl();
            for (com.dotmarketing.portlets.contentlet.business.Contentlet fatty : l) {
              conResult.add(conFac.convertFatContentletToContentlet(fatty));
      }
            return conResult;
        } catch (Exception e) {
            Logger.error(RelationshipFactory.class, "getChildrenClass failed:" + e, e);
            throw new DotRuntimeException(e.toString());
View Full Code Here

Examples of com.dotcms.content.elasticsearch.business.ESContentFactoryImpl.convertFatContentletToContentlet()

            List<com.dotmarketing.portlets.contentlet.business.Contentlet> l = dh.list();
            List<Contentlet> conResult = new ArrayList<Contentlet>();
            ESContentFactoryImpl conFac = new ESContentFactoryImpl();
            for (com.dotmarketing.portlets.contentlet.business.Contentlet fatty : l) {
              conResult.add(conFac.convertFatContentletToContentlet(fatty));
      }
            return conResult;
        } catch (Exception e) {
            Logger.error(RelationshipFactory.class, "getChildrenClass failed:" + e, e);
            throw new DotRuntimeException(e.toString());
View Full Code Here

Examples of com.dotcms.content.elasticsearch.business.ESContentFactoryImpl.convertFatContentletToContentlet()

            List<com.dotmarketing.portlets.contentlet.business.Contentlet> l = dh.list();
            List<Contentlet> conResult = new ArrayList<Contentlet>();
            ESContentFactoryImpl conFac = new ESContentFactoryImpl();
            for (com.dotmarketing.portlets.contentlet.business.Contentlet fatty : l) {
              conResult.add(conFac.convertFatContentletToContentlet(fatty));
      }

            return new ArrayList<Contentlet> (new LinkedHashSet<Contentlet>(conResult));

        } catch (Exception e) {
View Full Code Here

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

      while (it.hasNext()) {
        com.dotmarketing.portlets.contentlet.business.Contentlet cont = (com.dotmarketing.portlets.contentlet.business.Contentlet) it.next();
          if (cont.isLive()) {
            try {
              com.dotmarketing.portlets.contentlet.model.Contentlet newFormatContentlet =
              conAPI.convertFatContentletToContentlet(cont);
            ContentletServices.invalidate(newFormatContentlet,  false);
              ContentletMapServices.invalidate(newFormatContentlet, false);
          } catch (DotDataException e) {
            throw new WebAssetException(e.getMessage(), e);
          }
View Full Code Here

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

    ContentletAPI conAPI = APILocator.getContentletAPI();

    for( Contentlet cont : contentlets ) {
      if (cont.isWorking()) {
        com.dotmarketing.portlets.contentlet.model.Contentlet newFormatContentlet =
          conAPI.convertFatContentletToContentlet(cont);
        ContentletServices.invalidate(newFormatContentlet, true);
        //writes the contentlet object to a file
        ContentletMapServices.invalidate(newFormatContentlet, true);
      }
    }
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.