Class VREAppIntegrationPortlet

java.lang.Object
javax.portlet.GenericPortlet
com.liferay.portal.kernel.portlet.LiferayPortlet
com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet
org.gcube.portlets.user.vreappintegration.portlet.VREAppIntegrationPortlet
All Implemented Interfaces:
javax.portlet.EventPortlet, javax.portlet.HeaderPortlet, javax.portlet.Portlet, javax.portlet.PortletConfig, javax.portlet.ResourceServingPortlet

public class VREAppIntegrationPortlet extends com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet
VRE App Integration Portlet for Liferay 7.4 📌 6.2 Code Analysis: Original portlet extended GenericPortlet and used static utility methods for user/token handling 🔄 Differences in Liferay 7.4: - Extends MVCPortlet for better MVC pattern support - Uses OSGi @Component annotation for service registration - Implements dependency injection with @Reference annotations - Uses ThemeDisplay for user information instead of PortalUtil - Enhanced logging and error handling ✅ Proposed Solution: Migrated to OSGi architecture while preserving gCube token generation logic
Author:
netfarm-m2
  • Field Summary

    Fields inherited from class com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet

    aboutTemplate, clearRequestParameters, configTemplate, copyRequestParameters, editDefaultsTemplate, editGuestTemplate, editTemplate, helpTemplate, previewTemplate, printTemplate, templatePath, viewTemplate

    Fields inherited from class com.liferay.portal.kernel.portlet.LiferayPortlet

    addProcessActionSuccessMessage, alwaysSendRedirect

    Fields inherited from class javax.portlet.GenericPortlet

    AUTOMATIC_RESOURCE_DISPATCH
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doView(javax.portlet.RenderRequest renderRequest, javax.portlet.RenderResponse renderResponse)
     

    Methods inherited from class com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet

    callActionMethod, callResourceMethod, checkPermissions, destroy, doAbout, doConfig, doDispatch, doEdit, doEditDefaults, doEditGuest, doHelp, doPreview, doPrint, getActionMVCCommandCache, getHeaderMVCCommandCache, getMVCPathAttributeName, getPath, getRenderMVCCommandCache, getResourceMVCCommandCache, hideDefaultErrorMessage, hideDefaultSuccessMessage, include, include, include, include, include, init, invokeHideDefaultSuccessMessage, processAction, render, renderHeaders, serveResource

    Methods inherited from class com.liferay.portal.kernel.portlet.LiferayPortlet

    addSuccessMessage, getActionMethod, getRedirect, getResourceMethod, getServletContext, getTitle, isAddSuccessMessage, isAlwaysSendRedirect, isEmptySessionMessages, isSessionErrorException, sendRedirect, translate, translate, writeJSON, writeJSON

    Methods inherited from class javax.portlet.GenericPortlet

    dispatchAnnotatedActionMethod, dispatchAnnotatedEventMethod, dispatchAnnotatedRenderMethod, doHeaders, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletModes, getPortletName, getProcessingEventQNames, getPublicRenderParameterDefinitions, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getWindowStates, init, processEvent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VREAppIntegrationPortlet

      public VREAppIntegrationPortlet()
  • Method Details

    • doView

      public void doView(javax.portlet.RenderRequest renderRequest, javax.portlet.RenderResponse renderResponse) throws IOException, javax.portlet.PortletException
      Overrides:
      doView in class com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet
      Throws:
      IOException
      javax.portlet.PortletException