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

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


    }
    return entry;
  }

  private String createLink(Content content, String feedLink) {
    SymbolicLink symbolicLink = new SymbolicLink();
    StringBuilder destination = new StringBuilder(feedLink);
    String viewPage = content.getViewPage();
    if (null == viewPage || null == this.getPageManager().getPage(viewPage)) {
      viewPage = this.getPageManager().getRoot().getCode();
    }
    destination.append(viewPage).append(".page").append("?contentId=").append(content.getId());
    symbolicLink.setDestinationToUrl(destination.toString());
    return symbolicLink.getUrlDest();
  }
View Full Code Here


    HtmlHandler htmlHandler = new HtmlHandler();
    String feedvalue = htmlHandler.getParsedText(rawFeedvalue);
    AttributeInterface attr =  (AttributeInterface) content.getAttribute(dest);
    if (attr instanceof LinkAttribute) {
      ((LinkAttribute)attr).setText(feedvalue, this.getDefaultLangCode());
      SymbolicLink link = new SymbolicLink();
      link.setDestinationToUrl(feedvalue);
      ((LinkAttribute)attr).setSymbolicLink(link);
    } else if (attr instanceof HypertextAttribute) {
      if (feedvalue.trim().length() > 0) {
        ((HypertextAttribute)attr).setText(feedvalue, this.getDefaultLangCode());
      } else {
View Full Code Here

TOP

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

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.