-
1. Re: integrate alfresco and jboss portal
piergiorgiolucidi Feb 20, 2009 2:29 PM (in response to kocoubb)To expose Alfresco Webscripts as portlets you must declare each Webscript as a portlet in the Alfresco portlet.xml.
You must add in Alfresco a portlet.xml file in alfresco.war/WEB-INF/.
Here the snippet to expose your Alfresco WebScript as a portlet.
You need to use WebScriptPorlet class to do this integration.
You can see how you can use Alfresco authentication, if your webscript need to authenticate users. In this way the user session is taken from portal session.
Hope this helps.
portlet.xml:<portlet> <description>Your Alfresco Webscript</description> <portlet-name>Your Alfresco Webscript</portlet-name> <portlet-class>org.alfresco.web.scripts.portlet.WebScriptPortlet</portlet-class> <init-param> <name>authenticator</name> <value>webscripts.authenticator.jsr168.webclient</value> </init-param> <init-param> <name>scriptUrl</name> <value>/alfresco/168s/yourWebscriptUrl</value> </init-param> <expiration-cache>0</expiration-cache> <supports> <mime-type>text/html</mime-type> <portlet-mode>VIEW</portlet-mode> </supports> <portlet-info> <title>Your Alfresco Webscript Portlet</title> <short-title>Your Alfresco Webscript Portlet</short-title> </portlet-info> </portlet>
-
2. Re: integrate alfresco and jboss portal
rivetlogic May 9, 2009 10:32 AM (in response to kocoubb)Hi,
You could also try Rivet Logic's latest rivet AWPr (Alfresco Web script Portlet rivet). It's a light weight JSR-168 portlet that can be used to expose remote Alfresco Web scripts including ones that require authentication.
You can learn more about it on our forge: http://forge.rivetlogic.com/Forge/Rivets/Alfresco-Web-script-Portlet
Hope this helps,
--Alaaeldin -
3. Re: integrate alfresco and jboss portal
ariel_red Jun 9, 2009 11:25 PM (in response to kocoubb)Hi,
I have already used Rivet Logic's latest rivet AWPr (Alfresco Web script Portlet rivet). I am willing to share it.Please refer to the following link,http://wiki.rivetlogic.com/display/AWPr/Documentation.
When I have done the work, I can access to the content of Alfresco when the web scripts is invoked by the JBoss Portal. For example , I get the following interface :AWPr Portlet Folder: /Company Home > Data Dictionary > Guest Home > User Homes > Sites > Web Projects
But when I click the link of 'Data Dictionary' above ,I can't access to the alfresco.So I check the url to find that the port of the url is 8088 which is the port of my JBoss Portal rather than 8080 which is the port of Alfresco.
Now I haven't known whether the AWPr can implement it.
Hope it helps.
--ariel_red -
4. Re: integrate alfresco and jboss portal
rivetlogic Jun 18, 2009 4:25 PM (in response to kocoubb)Hi,
You might find the new FAQ wiki page we create for AWPr useful.
Here's the URL:
http://wiki.rivetlogic.com/display/AWPr/FAQ
Hope this helps
--Alaaeldin