Package io.meeds.appcenter.portlet
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanvoiddoView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) protected StringNames 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.voidinit(javax.portlet.PortletConfig config) protected voidpostSettingInit(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.voidprocessAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response) protected voidsavePreference(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.protected voidsaveSettingName(String name, String pageReference, long spaceId) protected voidsetViewRequestAttributes(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, preSettingInitMethods 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
-
Constructor Details
-
MyApplicationsPortlet
public MyApplicationsPortlet()
-
-
Method Details
-
init
public void init(javax.portlet.PortletConfig config) throws javax.portlet.PortletException - Specified by:
initin interfacejavax.portlet.Portlet- Overrides:
initin classio.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:
doViewin classio.meeds.social.portlet.CMSPortlet- Throws:
javax.portlet.PortletExceptionIOException
-
processAction
public void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response) throws javax.portlet.PortletException, IOException - Specified by:
processActionin interfacejavax.portlet.Portlet- Overrides:
processActionin classjavax.portlet.GenericPortlet- Throws:
javax.portlet.PortletExceptionIOException
-
canEdit
- Overrides:
canEditin classio.meeds.social.portlet.CMSPortlet
-
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:
generateRandomIdin classio.meeds.social.portlet.CMSPortlet
-
saveSettingName
- Overrides:
saveSettingNamein classio.meeds.social.portlet.CMSPortlet
-
postSettingInit
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:
postSettingInitin classio.meeds.social.portlet.CMSPortlet
-
savePreference
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:
savePreferencein classio.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:
setViewRequestAttributesin classio.meeds.social.portlet.CMSPortlet
-