Package io.meeds.social.portlet
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvoiddoView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) voidinit(javax.portlet.PortletConfig config) protected booleanisSettingNameExists(String name) Checks whether the setting name exists or not in internal Portlet API storeprotected voidpostSettingInit(javax.portlet.PortletPreferences preferences, String name) protected voidpreSettingInit(javax.portlet.PortletPreferences preferences, String name) protected voidsavePreference(String name, String value) protected voidsaveSettingName(String name, String pageReference, long spaceId) Saves associated portlet setting unique identifier (name) in specific Portlet associated API store with the associated page referenceprotected voidsetViewRequestAttributes(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
-
Field Details
-
DATA_INIT_PREFERENCE_NAME
- See Also:
-
NAME
- See Also:
-
contentType
-
-
Constructor Details
-
CMSPortlet
public CMSPortlet()
-
-
Method Details
-
init
public void init(javax.portlet.PortletConfig config) throws javax.portlet.PortletException - Specified by:
initin interfacejavax.portlet.Portlet- Overrides:
initin classorg.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:
doViewin classorg.exoplatform.commons.api.portlet.GenericDispatchedViewPortlet- Throws:
javax.portlet.PortletExceptionIOException
-
saveSettingName
Saves associated portlet setting unique identifier (name) in specific Portlet associated API store with the associated page reference- Parameters:
name- Setting NamepageReference-PageKeyidentifier of current page where the application is instantiatedspaceId- Space where the page is displayed
-
isSettingNameExists
Checks whether the setting name exists or not in internal Portlet API store- Parameters:
name- Setting Name- Returns:
- true if exists else false
-
canEdit
- Parameters:
name- Setting NameuserAclIdentity- Current UserIdentity- 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
-
postSettingInit
-
savePreference
-