|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.common.invocation.Invocation org.jboss.portal.core.controller.ControllerCommand
A controller command.
Field Summary | |
protected ControllerContext |
context
The context of the command. |
private static InvocationHandler |
handler
Execute command when the end of the stack is reached. |
protected static org.jboss.logging.Logger |
log
. |
static Scope |
NAVIGATIONAL_STATE_SCOPE
. |
static Scope |
PRINCIPAL_SCOPE
. |
static Scope |
REQUEST_SCOPE
. |
static Scope |
SESSION_SCOPE
. |
Fields inherited from class org.jboss.portal.common.invocation.Invocation |
EMPTY_STACK |
Constructor Summary | |
protected |
ControllerCommand()
|
Method Summary | |
protected void |
create()
|
void |
createContext(ControllerContext context)
Contextualize the command. |
protected void |
destroy()
|
void |
destroyContext()
Destroy state after invocation. |
void |
enforceSecurity(PortalAuthorizationManager pam)
Enforce the security on this command. |
abstract java.lang.Object |
execute()
Execute the command. |
InvocationContext |
getContext()
Return the invocation context or throw IllegalStateException. |
ControllerContext |
getControllerContext()
|
abstract CommandInfo |
getInfo()
Return the meta data of this command. |
static void |
rethrow(java.lang.Exception e)
|
Methods inherited from class org.jboss.portal.common.invocation.Invocation |
getAttribute, getHandler, invoke, invokeNext, removeAttribute, setAttribute, setHandler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Scope PRINCIPAL_SCOPE
public static final Scope SESSION_SCOPE
public static final Scope REQUEST_SCOPE
public static final Scope NAVIGATIONAL_STATE_SCOPE
protected static org.jboss.logging.Logger log
protected ControllerContext context
private static final InvocationHandler handler
Constructor Detail |
protected ControllerCommand()
Method Detail |
public abstract CommandInfo getInfo()
public final InvocationContext getContext()
Invocation
getContext
in class Invocation
public final ControllerContext getControllerContext()
public void enforceSecurity(PortalAuthorizationManager pam) throws ControllerSecurityException, PortalSecurityException
public final void createContext(ControllerContext context) throws ControllerException
ControllerException
public final void destroyContext()
protected void create() throws ControllerException
ControllerException
protected void destroy()
public abstract java.lang.Object execute() throws ControllerException
ControllerException
public static void rethrow(java.lang.Exception e) throws ControllerException, InvocationException, java.lang.RuntimeException
ControllerException
InvocationException
java.lang.RuntimeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |