public class LiferayPortlet extends GenericPortlet
Modifier and Type | Field and Description |
---|---|
protected boolean |
addProcessActionSuccessMessage |
protected boolean |
alwaysSendRedirect |
protected Set<String> |
validPaths |
AUTOMATIC_RESOURCE_DISPATCH
Constructor and Description |
---|
LiferayPortlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
addSuccessMessage(ActionRequest actionRequest,
ActionResponse actionResponse) |
protected boolean |
callActionMethod(ActionRequest actionRequest,
ActionResponse actionResponse) |
protected boolean |
callResourceMethod(ResourceRequest resourceRequest,
ResourceResponse resourceResponse) |
protected void |
checkPath(String path) |
protected void |
doAbout(RenderRequest renderRequest,
RenderResponse renderResponse) |
protected void |
doConfig(RenderRequest renderRequest,
RenderResponse renderResponse) |
protected void |
doDispatch(RenderRequest renderRequest,
RenderResponse renderResponse) |
protected void |
doEditDefaults(RenderRequest renderRequest,
RenderResponse renderResponse) |
protected void |
doEditGuest(RenderRequest renderRequest,
RenderResponse renderResponse) |
protected void |
doPreview(RenderRequest renderRequest,
RenderResponse renderResponse) |
protected void |
doPrint(RenderRequest renderRequest,
RenderResponse renderResponse) |
protected Method |
getActionMethod(String actionName) |
protected String |
getJSONContentType(PortletRequest portletRequest) |
protected Set<String> |
getPaths(String path,
String extension) |
protected String |
getRedirect(ActionRequest actionRequest,
ActionResponse actionResponse) |
protected Method |
getResourceMethod(String actionName) |
protected javax.servlet.ServletContext |
getServletContext() |
protected String |
getTitle(RenderRequest renderRequest) |
void |
init() |
protected void |
initValidPaths(String rootPath,
String extension) |
protected boolean |
isAddSuccessMessage(ActionRequest actionRequest) |
protected boolean |
isAlwaysSendRedirect() |
protected boolean |
isEmptySessionMessages(ActionRequest actionRequest) |
protected boolean |
isProcessActionRequest(ActionRequest actionRequest) |
protected boolean |
isProcessPortletRequest(PortletRequest portletRequest) |
protected boolean |
isProcessRenderRequest(RenderRequest renderRequest) |
protected boolean |
isProcessResourceRequest(ResourceRequest resourceRequest) |
protected boolean |
isSessionErrorException(Throwable cause) |
protected boolean |
isValidPath(String path) |
void |
processAction(ActionRequest actionRequest,
ActionResponse actionResponse) |
protected void |
sendRedirect(ActionRequest actionRequest,
ActionResponse actionResponse) |
void |
serveResource(ResourceRequest resourceRequest,
ResourceResponse resourceResponse) |
protected String |
translate(PortletRequest portletRequest,
String key) |
protected String |
translate(PortletRequest portletRequest,
String key,
Object... arguments) |
protected void |
writeJSON(PortletRequest portletRequest,
ActionResponse actionResponse,
Object jsonObj) |
protected void |
writeJSON(PortletRequest portletRequest,
MimeResponse mimeResponse,
Object jsonObj) |
destroy, dispatchAnnotatedActionMethod, dispatchAnnotatedEventMethod, dispatchAnnotatedRenderMethod, doEdit, doHeaders, doHelp, doView, getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletModes, getPortletName, getProcessingEventQNames, getPublicRenderParameterDefinitions, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getWindowStates, init, processEvent, render, renderHeaders
protected boolean addProcessActionSuccessMessage
protected boolean alwaysSendRedirect
protected Set<String> validPaths
public void init() throws PortletException
init
in class GenericPortlet
PortletException
public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws IOException, PortletException
processAction
in interface Portlet
processAction
in class GenericPortlet
IOException
PortletException
public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException, PortletException
serveResource
in interface ResourceServingPortlet
serveResource
in class GenericPortlet
IOException
PortletException
protected void addSuccessMessage(ActionRequest actionRequest, ActionResponse actionResponse)
protected boolean callActionMethod(ActionRequest actionRequest, ActionResponse actionResponse) throws PortletException
PortletException
protected boolean callResourceMethod(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws PortletException
PortletException
protected void checkPath(String path) throws PortletException
PortletException
protected void doAbout(RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException
IOException
PortletException
protected void doConfig(RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException
IOException
PortletException
protected void doDispatch(RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException
doDispatch
in class GenericPortlet
IOException
PortletException
protected void doEditDefaults(RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException
IOException
PortletException
protected void doEditGuest(RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException
IOException
PortletException
protected void doPreview(RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException
IOException
PortletException
protected void doPrint(RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException
IOException
PortletException
protected Method getActionMethod(String actionName) throws NoSuchMethodException
NoSuchMethodException
protected String getJSONContentType(PortletRequest portletRequest)
protected Set<String> getPaths(String path, String extension)
protected String getRedirect(ActionRequest actionRequest, ActionResponse actionResponse)
protected Method getResourceMethod(String actionName) throws NoSuchMethodException
NoSuchMethodException
protected javax.servlet.ServletContext getServletContext()
protected String getTitle(RenderRequest renderRequest)
getTitle
in class GenericPortlet
protected void initValidPaths(String rootPath, String extension)
protected boolean isAddSuccessMessage(ActionRequest actionRequest)
protected boolean isAlwaysSendRedirect()
protected boolean isEmptySessionMessages(ActionRequest actionRequest)
protected boolean isProcessActionRequest(ActionRequest actionRequest)
protected boolean isProcessPortletRequest(PortletRequest portletRequest)
protected boolean isProcessRenderRequest(RenderRequest renderRequest)
protected boolean isProcessResourceRequest(ResourceRequest resourceRequest)
protected boolean isSessionErrorException(Throwable cause)
protected boolean isValidPath(String path)
protected void sendRedirect(ActionRequest actionRequest, ActionResponse actionResponse) throws IOException
IOException
protected String translate(PortletRequest portletRequest, String key)
protected String translate(PortletRequest portletRequest, String key, Object... arguments)
protected void writeJSON(PortletRequest portletRequest, ActionResponse actionResponse, Object jsonObj) throws IOException
IOException
protected void writeJSON(PortletRequest portletRequest, MimeResponse mimeResponse, Object jsonObj) throws IOException
IOException