Package com.agiletec.plugins.jacms.aps.system.services.content

Examples of com.agiletec.plugins.jacms.aps.system.services.content.IContentManager.loadContent()


  public void testAddGetComment() throws Throwable{
    Comment comment = null;
    try {

      IContentManager contentManager = (IContentManager) this.getService(JacmsSystemConstants.CONTENT_MANAGER);
      Content content = contentManager.loadContent("ART1", true);
      if (content==null){
        fail();
      }
      List<String> listaIds = this._commentManager.searchCommentIds(null);
      assertEquals(0,listaIds.size());
View Full Code Here


  public void testAddUpdateDeleteComment() throws Throwable{
    Comment comment = null;
    try {
      IContentManager contentManager = (IContentManager) this.getService(JacmsSystemConstants.CONTENT_MANAGER);
      Content content = contentManager.loadContent("ART1", true);
      if (content==null){
        fail();
      }
      List<String> listaIds = this._commentManager.searchCommentIds(null);
      assertEquals(0,listaIds.size());
View Full Code Here

    }
  }
 
  public void testBuildMailBody() throws Throwable {
    IContentManager contentManager = (IContentManager) this.getService(JacmsSystemConstants.CONTENT_MANAGER);
    Content content = contentManager.loadContent("ART180", true);
    String textBody = this._newsletterManager.buildMailBody(content, false);
    assertNotNull(textBody);
    String htmlBody = this._newsletterManager.buildMailBody(content, true);
    assertNotNull(htmlBody);
  }
View Full Code Here

        double eastX = MIN_WEST;
        double northY = MIN_SOUTH;
        double southY = MAX_NORTH;
        while (iter.hasNext()) {
          String contentId = (String) iter.next();
          Content content = (Content) contentManager.loadContent(contentId, true);
          if (null != content) {
            CoordsAttribute coords = this.extractCoordAttribute(content);
            if (coords != null && coords.getX() != 0 && coords.getY() != 0) {
              GeorefInfoBean geoInfoBean = new GeorefInfoBean();
              geoInfoBean.setContentId(contentId);
View Full Code Here

      Iterator<String> iter = this.getContentIds().iterator();
      List<Content> publishedContents = new ArrayList<Content>();
      IContentManager contentManager = (IContentManager) this.getContentManager();
      while (iter.hasNext()) {
        String contentId = (String) iter.next();
        Content contentToPublish = contentManager.loadContent(contentId, false);
        String[] msgArg = new String[1];
        if (null == contentToPublish) {
          msgArg[0] = contentId;
          this.addActionError(this.getText("error.content.contentToPublishNull", msgArg));
          continue;
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.