Class MyApplicationsPortlet

java.lang.Object
javax.portlet.GenericPortlet
org.exoplatform.commons.api.portlet.GenericDispatchedViewPortlet
io.meeds.social.portlet.CMSPortlet
io.meeds.appcenter.portlet.MyApplicationsPortlet
All Implemented Interfaces:
javax.portlet.EventPortlet, javax.portlet.Portlet, javax.portlet.PortletConfig, javax.portlet.ResourceServingPortlet

public class MyApplicationsPortlet extends io.meeds.social.portlet.CMSPortlet
  • Field Summary

    Fields inherited from class io.meeds.social.portlet.CMSPortlet

    contentType, DATA_INIT_PREFERENCE_NAME, NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    canEdit(String name, org.exoplatform.services.security.Identity userAclIdentity)
     
    void
    doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
     
    protected String
    Names a window rendered with no name, a new window or a copy: the name another render stored meanwhile is adopted, so that two first renders of a copy initialize it once, under one name.
    void
    init(javax.portlet.PortletConfig config)
     
    protected void
    postSettingInit(javax.portlet.PortletPreferences preferences, String name)
    Deletes, for a window of a section-template draft page named by this render, what the template's earlier editing sessions left.
    void
    processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
     
    protected void
    Writes a preference of the rendered window over its committed preferences: the render's own view of them, read when it started, would restore what another render changed since.
    protected void
    saveSettingName(String name, String pageReference, long spaceId)
     
    protected void
    setViewRequestAttributes(String name, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
    Moves a legacy header title to the window's setting name, then consumes what a copy of a window carries, at the first render that finds it, and at each render until it is consumed: the applications it carries are created in the copy's own context, its list names them, and data.init is blanked.

    Methods inherited from class io.meeds.social.portlet.CMSPortlet

    isSettingNameExists, preSettingInit

    Methods inherited from class javax.portlet.GenericPortlet

    destroy, doDispatch, doEdit, doHeaders, doHelp, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, processEvent, render, serveResource

    Methods inherited from class java.lang.Object

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

    • MyApplicationsPortlet

      public MyApplicationsPortlet()
  • Method Details

    • init

      public void init(javax.portlet.PortletConfig config) throws javax.portlet.PortletException
      Specified by:
      init in interface javax.portlet.Portlet
      Overrides:
      init in class io.meeds.social.portlet.CMSPortlet
      Throws:
      javax.portlet.PortletException
    • doView

      public void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
      Overrides:
      doView in class io.meeds.social.portlet.CMSPortlet
      Throws:
      javax.portlet.PortletException
      IOException
    • processAction

      public void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response) throws javax.portlet.PortletException, IOException
      Specified by:
      processAction in interface javax.portlet.Portlet
      Overrides:
      processAction in class javax.portlet.GenericPortlet
      Throws:
      javax.portlet.PortletException
      IOException
    • canEdit

      protected boolean canEdit(String name, org.exoplatform.services.security.Identity userAclIdentity)
      Overrides:
      canEdit in class io.meeds.social.portlet.CMSPortlet
    • generateRandomId

      protected String generateRandomId()
      Names a window rendered with no name, a new window or a copy: the name another render stored meanwhile is adopted, so that two first renders of a copy initialize it once, under one name.
      Overrides:
      generateRandomId in class io.meeds.social.portlet.CMSPortlet
    • saveSettingName

      protected void saveSettingName(String name, String pageReference, long spaceId)
      Overrides:
      saveSettingName in class io.meeds.social.portlet.CMSPortlet
    • postSettingInit

      protected void postSettingInit(javax.portlet.PortletPreferences preferences, String name)
      Deletes, for a window of a section-template draft page named by this render, what the template's earlier editing sessions left. A failure leaves them, and does not fail the render.
      Overrides:
      postSettingInit in class io.meeds.social.portlet.CMSPortlet
    • savePreference

      protected void savePreference(String name, String value)
      Writes a preference of the rendered window over its committed preferences: the render's own view of them, read when it started, would restore what another render changed since.
      Overrides:
      savePreference in class io.meeds.social.portlet.CMSPortlet
    • setViewRequestAttributes

      protected void setViewRequestAttributes(String name, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
      Moves a legacy header title to the window's setting name, then consumes what a copy of a window carries, at the first render that finds it, and at each render until it is consumed: the applications it carries are created in the copy's own context, its list names them, and data.init is blanked. Nothing is created on a draft site, whose windows keep their own setting. A failure is logged and the render goes on with the window's list as it is.
      Overrides:
      setViewRequestAttributes in class io.meeds.social.portlet.CMSPortlet