|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.portlet.GenericPortlet
org.apache.pluto.driver.portlets.GenericPlutoPortlet
org.apache.pluto.driver.portlets.PageAdminPortlet
public class PageAdminPortlet
Nested Class Summary | |
---|---|
class |
PageAdminPortlet.Page
|
class |
PageAdminPortlet.Placement
|
Constructor Summary | |
---|---|
PageAdminPortlet()
|
Method Summary | |
---|---|
void |
doAddPage(ActionRequest request)
Adds a page to the portal via the RenderConfigService . |
void |
doAddPortlet(ActionRequest request)
|
void |
doRemovePage(ActionRequest request)
Removes a page from the portal ignoring any requests to remove the default page or the Pluto Admin page. |
void |
doRemovePortlet(ActionRequest request)
|
void |
doView(RenderRequest request,
RenderResponse response)
Helper method to serve up the mandatory view mode. |
Collection |
getAvailablePages()
|
protected static String |
getContentBeforeRenderConfig(String contents)
Gets the content of the config page before the render-config element (also including the default attribute of render-config - see RENDER_CONFIG_SEARCH_TOKEN above). |
String |
getEditPage()
|
String |
getHelpPage(RenderRequest request)
|
String |
getViewPage()
|
protected static String |
parseDefaultPage(String configFileContents)
Parse out default attribute value of render-config element in pluto-portal-driver-config.xml. |
void |
processAction(ActionRequest request,
ActionResponse response)
Called by the portlet container to allow the portlet to process an action request. |
Methods inherited from class org.apache.pluto.driver.portlets.GenericPlutoPortlet |
---|
doEdit, doHelp |
Methods inherited from class javax.portlet.GenericPortlet |
---|
destroy, doDispatch, doHeaders, getDefaultNamespace, getInitParameter, getInitParameterNames, getNextPossiblePortletModes, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, getTitle, init, init, processEvent, render, serveResource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageAdminPortlet()
Method Detail |
---|
public void processAction(ActionRequest request, ActionResponse response)
GenericPortlet
RenderResponse.createActionURL()
method.
The default implementation throws an exception.
processAction
in interface Portlet
processAction
in class GenericPortlet
request
- the action requestresponse
- the action responsepublic void doAddPortlet(ActionRequest request)
public void doAddPage(ActionRequest request)
RenderConfigService
.
This does not add portlets to the new page. Do that when the page is created
using the Add Portlet button.
request
- The action request.public void doRemovePage(ActionRequest request) throws IOException
request
- The action request.
IOException
- If a problem occurs accessing the config file.public void doRemovePortlet(ActionRequest request)
public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException
GenericPortlet
view
mode.
The default implementation throws an exception.
doView
in class GenericPlutoPortlet
request
- the portlet requestresponse
- the render response
PortletException
- if the portlet cannot fulfilling the request
UnavailableException
- if the portlet is unavailable to perform render at this
time
PortletSecurityException
- if the portlet cannot fullfill this request because of
security reasons
IOException
- if the streaming causes an I/O problempublic String getViewPage()
getViewPage
in class GenericPlutoPortlet
public String getEditPage()
getEditPage
in class GenericPlutoPortlet
public String getHelpPage(RenderRequest request)
getHelpPage
in class GenericPlutoPortlet
public Collection getAvailablePages()
protected static String getContentBeforeRenderConfig(String contents)
contents
- pluto-portal-driver-config.xml file contents.
protected static String parseDefaultPage(String configFileContents)
PageAdminPortletTest.testParseDefaultPage()
.)
configFileContents
- Contents of pluto-portal-driver-config.xml file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |