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

Examples of com.agiletec.plugins.jacms.aps.system.services.content.model.Content


  }
 
  public List<SelectItem> getAllowedDateAttributes() throws ApsSystemException {
    List<SelectItem> attributes = new ArrayList<SelectItem>();
    try {
      Content prototype = this.getContentManager().createContentType(this.getContentType());
      if (null == prototype) {
        return attributes;
      }
      List<AttributeInterface> contentAttributes = prototype.getAttributeList();
      for (int i=0; i<contentAttributes.size(); i++) {
        AttributeInterface attribute = contentAttributes.get(i);
        if ((attribute instanceof DateAttribute) && attribute.isSearcheable()) {
          attributes.add(new SelectItem(attribute.getName(), this.getText("label.attribute", new String[]{attribute.getName()})));
        }
View Full Code Here


 
  private void init() throws Exception {
    try {
      this._rssManager = (IRssManager) this.getService(JpRssSystemConstants.RSS_MANAGER);
      IContentManager contentManager = (IContentManager) this.getService(JacmsSystemConstants.CONTENT_MANAGER);
      Content contentType = contentManager.createContentType("ART");
      AttributeInterface titolo = (AttributeInterface) contentType.getAttribute("Titolo");
      String[] roles = {JpRssSystemConstants.ATTRIBUTE_ROLE_RSS_CONTENT_TITLE};
      titolo.setRoles(roles);
      ((IEntityTypesConfigurer) contentManager).updateEntityPrototype(contentType);
      this.waitNotifyingThread();
    } catch (Throwable t) {
View Full Code Here

        }
      }
      channels = this.getRssManager().getChannels(Channel.STATUS_ALL);
      assertTrue(channels.isEmpty());
      IContentManager contentManager = (IContentManager) this.getService(JacmsSystemConstants.CONTENT_MANAGER);
      Content contentType = contentManager.createContentType("ART");
      AttributeInterface titolo = (AttributeInterface) contentType.getAttribute("Titolo");
      String[] roles = {JpRssSystemConstants.ATTRIBUTE_ROLE_RSS_CONTENT_TITLE};
      titolo.setRoles(roles);
      ((IEntityTypesConfigurer) contentManager).updateEntityPrototype(contentType);
      this.waitNotifyingThread();
    } catch (Throwable t) {
View Full Code Here

      }
    }
  }

  private void addFakeContents() throws ApsSystemException {
    Content masterContent = this._contentManager.loadContent("EVN193", true);

    Content content1 = this._contentManager.loadContent("RAH101", true);
    content1.setId("RAH101b");
    for (Category category : masterContent.getCategories()) {
      content1.addCategory(category);
    }
    this._contentDao.addEntity(content1);
    this._contentDao.insertOnLineContent(content1);

    Content content2 = this._contentManager.loadContent("ART120", true);
    content2.setId("ART120b");
    for (int i = 0; i < masterContent.getCategories().size(); i++) {
      Category category = masterContent.getCategories().get(i);
      content2.addCategory(category);
    }
    this._contentDao.addEntity(content2);
    this._contentDao.insertOnLineContent(content2);
  }
View Full Code Here

  public synchronized void updateSource(ApsAggregatorItem item) throws ApsSystemException {
    try {
      List<Content> contents = this.getRssConverterManager().getContents(item);
      Iterator<Content> contentListIterator = contents.iterator();
      while (contentListIterator.hasNext()) {
        Content content = contentListIterator.next();
        content.setLastEditor("rss_aggregator");
        this.getContentManager().saveContent(content);
        if (this.getRssConverterManager().getAggregatorConfig(content.getTypeCode()).isInsertOnline()) {
          this.getContentManager().insertOnLineContent(content);
        }
      }
      item.setLastUpdate(new Date());
      this.update(item);
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jacms.aps.system.services.content.model.Content

Copyright © 2018 www.massapicom. 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.