|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.portal.struts.plugins.CommandManagerFactory
public abstract class CommandManagerFactory
The CommandManager class is a factory class for creating
classes that control the storage and retrieval of IViewCommands. The
subclass must implement the methods to get, set and remove commands.
| Constructor Summary | |
|---|---|
CommandManagerFactory()
Construct the factory object. |
|
| Method Summary | |
|---|---|
abstract IViewCommand |
getCommand(PortletRequest request,
PortletResponse response)
Get the IViewCommand. |
abstract IViewCommand |
getCommand(PortletRequest request,
PortletResponse response,
java.lang.String prefix)
Get the IViewCommand. |
java.lang.String |
getCommandPrefix(PortletRequest request)
Returns the command prefix determined from the request object. |
static CommandManagerFactory |
getFactory(ServletContext servletContext)
Get the CommandManagerFactory object for this context. |
abstract void |
removeCommand(PortletRequest request,
PortletResponse response,
java.lang.String prefix)
Remove the IViewCommand. |
abstract void |
setCommand(PortletRequest request,
PortletResponse response,
IViewCommand command)
Set the IViewCommand. |
abstract void |
setCommand(PortletRequest request,
PortletResponse response,
IViewCommand command,
java.lang.String prefix)
Set the IViewCommand. |
static void |
setFactory(ServletContext servletContext,
CommandManagerFactory factory)
Set a new CommandManagerFactory object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandManagerFactory()
| Method Detail |
|---|
public java.lang.String getCommandPrefix(PortletRequest request)
request - the portlet request object
public static void setFactory(ServletContext servletContext,
CommandManagerFactory factory)
servletContext - the servlet contextfactory - the factory objectpublic static CommandManagerFactory getFactory(ServletContext servletContext)
servletContext - the servlet context
public abstract IViewCommand getCommand(PortletRequest request,
PortletResponse response)
throws PortletException
request - the request objectresponse - the response object
null
PortletException - if the request cannot be fulfilled
public abstract IViewCommand getCommand(PortletRequest request,
PortletResponse response,
java.lang.String prefix)
throws PortletException
request - the portlet request objectrequest - the portlet response objectprefix - the prefix
null
PortletException - if the request cannot be fulfilled
public abstract void setCommand(PortletRequest request,
PortletResponse response,
IViewCommand command)
throws PortletException
request - the portlet request objectresponse - the portlet response objectcommand - the IViewCommand command.
PortletException - if the request cannot be fulfilled
public abstract void setCommand(PortletRequest request,
PortletResponse response,
IViewCommand command,
java.lang.String prefix)
throws PortletException
request - the portlet request objectresponse - the portlet response objectcommand - the IViewCommandprefix - the prefix to store the command under
PortletException - if the request cannot be fulfilled
public abstract void removeCommand(PortletRequest request,
PortletResponse response,
java.lang.String prefix)
throws PortletException
request - the portlet request objectprefix - the prefix for the command
PortletException - if the request cannot be fulfilled
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||