New structure for NuxeoPortlet
------------------------------

                 Key: NXP-1920
                 URL: http://jira.nuxeo.org/browse/NXP-1920
             Project: Nuxeo Enterprise Platform 5
          Issue Type: Improvement
    Affects Versions: 5.1.2
            Reporter: Enrique Perez
            Assignee: Thierry Delprat
         Attachments: generic.tar.gz

We have modified the NuxeoPortlet structure. The class was implemented to be 
used with Jahia and we think that NuxeoPortlet class must not depend on the 
portlet container used.

The modifications are:

- The method getUIDForJahia from NuxeoPortlet class is now called getUID and 
it's empty (returns null). We need to change every reference to getUIDForJahia.
- We have created two new class that extends NuxeoPortlet: 
NuxeoPortletForJBossPortal and NuxeoPortletForJahia. These classes implement 
the method getUID in accordance with the portlet container in question. With 
this structure, it's easier to add a new portlet container.
- In JBoss Portal we need to add the following line in the methods doView, 
doEdit and doHelp:
               response.setContentType("text/html");
   So we add it in the NuxeoPortlet class.
- In the methods doRestleCall from NuxeoPortlet we add the following line:
               initializeGlobalPreferences(preferencesKeyUID);
   With this line, the portlet is initialized in accordance with the 
portlet.xml file.

Now, when we want to design a new portlet we have to extend from the 
corresponding NuxeoPortletForXXXX class. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to