10-18-2011 09:35 AM
10-21-2011 03:37 AM
<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());
}
should be correct !10-21-2011 04:22 AM
10-25-2011 04:20 AM
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");
}
}
10-26-2011 11:36 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.