Class CMSPortlet

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

public class CMSPortlet extends org.exoplatform.commons.api.portlet.GenericDispatchedViewPortlet
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
    static final String
     
    static final String
     
  • 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)
     
    void
    init(javax.portlet.PortletConfig config)
     
    protected boolean
    Checks whether the setting name exists or not in internal Portlet API store
    protected void
    postSettingInit(javax.portlet.PortletPreferences preferences, String name)
     
    protected void
    preSettingInit(javax.portlet.PortletPreferences preferences, String name)
     
    protected void
     
    protected void
    saveSettingName(String name, String pageReference, long spaceId)
    Saves associated portlet setting unique identifier (name) in specific Portlet associated API store with the associated page reference
    protected void
    setViewRequestAttributes(String name, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
     

    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, processAction, processEvent, render, serveResource

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • CMSPortlet

      public CMSPortlet()
  • 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 org.exoplatform.commons.api.portlet.GenericDispatchedViewPortlet
      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 org.exoplatform.commons.api.portlet.GenericDispatchedViewPortlet
      Throws:
      javax.portlet.PortletException
      IOException
    • saveSettingName

      protected void saveSettingName(String name, String pageReference, long spaceId)
      Saves associated portlet setting unique identifier (name) in specific Portlet associated API store with the associated page reference
      Parameters:
      name - Setting Name
      pageReference - PageKey identifier of current page where the application is instantiated
      spaceId - Space where the page is displayed
    • isSettingNameExists

      protected boolean isSettingNameExists(String name)
      Checks whether the setting name exists or not in internal Portlet API store
      Parameters:
      name - Setting Name
      Returns:
      true if exists else false
    • canEdit

      protected boolean canEdit(String name, org.exoplatform.services.security.Identity userAclIdentity)
      Parameters:
      name - Setting Name
      userAclIdentity - Current User Identity
      Returns:
      true if Setting Type and Name are editable by current user, else false
    • setViewRequestAttributes

      protected void setViewRequestAttributes(String name, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
    • preSettingInit

      protected void preSettingInit(javax.portlet.PortletPreferences preferences, String name)
    • postSettingInit

      protected void postSettingInit(javax.portlet.PortletPreferences preferences, String name)
    • savePreference

      protected void savePreference(String name, String value)