cancel
Showing results for 
Search instead for 
Did you mean: 

Questions about web script portlet

unknown-user
Champ on-the-rise
Champ on-the-rise
I have several questions about webscriptportlet:

does the webscript myspaces take into consideration the user athenticated ie does ut only display the spaces taht the user has the right to see?

Does the webscript portlet can be deployed in lifreay as a standalone portlet ? If yes does someone have indications about how to do it?

Does the portletauthenticator that is on the svn supports cas sso?

thanks in advance
12 REPLIES 12

santigt
Champ in-the-making
Champ in-the-making
Hi Everybody!

I have tried to create a simple external portlet based on WebScriptPortlet class. The problem is that I cannot use the WebScriptPortletResponse class, because the constructor is not visible. I don't know if it's a bug or not. Can anyone notice me about another way to obtain the response in the portlet, please??

Here you can see the code:

    private class WebScriptPortalRuntime extends WebScriptRuntime
    {
     …..
        protected WebScriptResponse createResponse()
        {
         return new WebScriptPortletResponse(res); <- ERROR
        }
     …..

Thanks so much!!

Regards,



Santigt

davidc
Star Contributor
Star Contributor
What are you trying to achieve?

I think a step-backwards is required here.  You shouldn't need to be messing around with these classes unless you're attempting something obscure.

santigt
Champ in-the-making
Champ in-the-making
Ok, I want to connect liferay and Alfresco (authentication problems solved) using webscript (so, using WebScriptPortlet class). I cannot use exactly your WebScriptPortlet code because I need:

+ to obtain other information from Liferay, for example, portal name, id user,…

+ to connect (using HTML hyperlinks) webscripts between them. For example, sending args (PRE or POST) from one to other. So we need to change and modify the URL from the hyperlinks. Example:

Before:
<a href="http://localhost:8080/alfresco/wcservice/test2?path=Home+company">…</a>

After:
<a href="http://localhost:8080/?urlScript=/alfresco/168s/test2&_AlfrescoTest_WAR_alfresco_path=Home+company">…</a>


That's why I have to do this portlet.

Any advice? Thanks a lot!


Santigt