Package com.dotmarketing.portlets.contentlet.business

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


        testContent.setHost( defaultHost.getIdentifier() );
        testContent.setLanguageId(1);

        contentletAPI.setContentletProperty( testContent, field, "03/05/2014" );

        testContent = contentletAPI.checkin( testContent, null, permissionAPI.getPermissions( testStructure ), user, false );
        APILocator.getVersionableAPI().setLive(testContent);

      //And add it to the index
      indexAPI.addContentToIndex( testContent );
View Full Code Here


          conAPI.setContentletProperty(newCont, field, binaryFile);
        }
      }

      newCont = conAPI.checkin(newCont, sysUser, false);

    } catch (Exception e) {
      Logger.error(this,"Contentlet failed while creating new binary content",e);
    }
View Full Code Here

   
                contRel = retrieveRelationshipsData(contentlet,systemUser,email);
   
                cats = new ArrayList<Category>();
   
                Contentlet con = conAPI.checkin(contentlet, contRel,
                    cats, perAPI.getPermissions(contentlet, false, true), systemUser, false);
               
                // When a large number of new mails with a number of replies come in.
                // To relate the content based on lucene query, the new content created must be indexed.
                conAPI.isInodeIndexed(con.getInode());
View Full Code Here

      ContentletAPI contentletAPI = APILocator.getContentletAPI();

      contentletAPI.setContentletProperty( widget, widgetTitle, "newsTestWidget" );
      contentletAPI.setContentletProperty( widget, widgetCode, "$URLMapContent.story" );

      widget = contentletAPI.checkin( widget, null, permissionAPI.getPermissions( simpleWidgetSt ), user, false );
      APILocator.getVersionableAPI().setLive(widget);

      // add the widget to the detail page
      MultiTreeFactory.saveMultiTree( new MultiTree( htmlPage.getIdentifier(), container.getIdentifier(), widget.getIdentifier() ) );
View Full Code Here

      contentletAPI.setContentletProperty( englishContent, headline, "the-gas-price" );
      contentletAPI.setContentletProperty( englishContent, story, "the-gas-price" );
      contentletAPI.setContentletProperty( englishContent, urlTitle, "the-gas-price" );

      englishContent = contentletAPI.checkin( englishContent, null, permissionAPI.getPermissions( testSt ), user, false );
      APILocator.getVersionableAPI().setLive(englishContent);

      // SPANISH CONTENT
      Contentlet spanishContent = new Contentlet();
      spanishContent.setReviewInterval("1m");
View Full Code Here

      contentletAPI.setContentletProperty( spanishContent, headline, "el-precio-del-gas" );
      contentletAPI.setContentletProperty( spanishContent, story, "el-precio-del-gas" );
      contentletAPI.setContentletProperty( spanishContent, urlTitle, "el-precio-del-gas" );

      spanishContent = contentletAPI.checkin( spanishContent, null, permissionAPI.getPermissions( testSt ), user, false );
      APILocator.getVersionableAPI().setLive(spanishContent);

      HibernateUtil.commitTransaction();

      if(!(contentletAPI.isInodeIndexed(englishContent.getInode(), 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.