As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
entry.setLink(urlUtils.getWebsiteDomain(webSite)+urlUtils.getUrl(asset));
public String getWebsiteDomain(WebSite webSite) { return "http://'+webSite.getHostName()+(webSite.getHostPort() == 80 ? "" : ":"+webSite.getHostPort()+"/"+webSite.getContext()); }
<item> <title>${link.title?html}</title> <link>${absurl(url.context)}/page/site/${site}/links-view?linkId=${link.name}</link> <description>URL:${link.url?html}</description> </item>
<link>${absurl(url.context)}/page/site/${site}/links-view?linkId=${link.name}</link>
public String getWebsiteDomain(WebSite webSite) { return "http://'+webSite.getHostName()+(webSite.getHostPort() == 80 ? "" : ":"+webSite.getHostPort()+"/"+webSite.getContext()); }
package org.alfresco.wcm.client.util; import org.alfresco.wcm.client.Asset; import org.alfresco.wcm.client.Section; import org.alfresco.wcm.client.WebSite; public interface UrlUtils { public String getUrl(Asset asset); public String getUrl(Section sctn); public String getShortUrl(Asset asset); public String getLongUrl(Asset asset); public String getAssetIdFromShortUrl(String string); public String decodeResourceName(String string); public String getWebsiteDomain(WebSite ws); }
package org.alfresco.wcm.client.webscript; import java.io.IOException; public class RssWebScript extends org.springframework.extensions.webscripts.AbstractWebScript { private static final String FEED_TYPE = "rss_2.0"; private static final org.apache.commons.logging.Log log; private org.alfresco.wcm.client.util.UrlUtils urlUtils; private org.alfresco.wcm.client.CollectionFactory collectionFactory; public RssWebScript() { //compiled code throw new RuntimeException("Compiled Code"); } public void execute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) throws IOException { //compiled code throw new RuntimeException("Compiled Code"); } public void setUrlUtils(org.alfresco.wcm.client.util.UrlUtils urlUtils) { //compiled code throw new RuntimeException("Compiled Code"); } public void setCollectionFactory(org.alfresco.wcm.client.CollectionFactory collectionFactory) { //compiled code throw new RuntimeException("Compiled Code"); } }