|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.framework.jsf.BaseActionListener
public class BaseActionListener
Super-class for a JSF based action listener.
Constructor Summary | |
---|---|
BaseActionListener()
Default constructor. |
Method Summary | |
---|---|
protected void |
assertLoggedIn(RequestContext context)
Asserts that the active user is logged in. |
protected void |
authorizeAction(RequestContext context)
Authorizes an action. |
protected MessageBroker |
extractMessageBroker()
Extract the MessageBroker from the Faces context instance. |
RequestContext |
extractRequestContext()
Extract the request context from the Faces context instance. |
protected FacesContextBroker |
getContextBroker()
Gets the Faces context broker. |
String |
getKey()
Gets the key associated with the action listener. |
Logger |
getLogger()
Gets the logger. |
String |
getNavigationOutcome()
Gets the navigation outcome. |
String |
getPrepareView()
Provides an interface to prepare the view for a page. |
String |
getSecurityRoles()
Gets the security roles string associated with the action listener. |
protected RoleSet |
getSecurityRoleSet()
Gets the security role set associated with the action listener. |
protected void |
handleException(Throwable t)
Handles an exception. |
protected void |
onExecutionPhaseCompleted()
Fired when the execution phase has completed. |
protected RequestContext |
onExecutionPhaseStarted()
Fired when the execution phase has started. |
protected void |
onPrepareView(RequestContext context)
Fired when the getPrepareView() property is accessed. |
protected void |
onPrepareViewCompleted()
Fired when the onPrepareView() event has completed. |
protected RequestContext |
onPrepareViewStarted()
Fired when the onPrepareView()event has started. |
void |
processAction(ActionEvent event)
Processes the JSF based action. |
protected void |
processSubAction(ActionEvent event,
RequestContext context)
This is the default entry point for a sub-class of this ActionListener. |
void |
setKey(String key)
Sets the key associated with the action listener. |
protected void |
setNavigationOutcome(String outcome)
Sets the navigation outcome. |
void |
setPrepareView(String ignored)
Provides the setter for the prepareView property. |
void |
setSecurityRoles(String roles)
Gets the security roles string associated with the action listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseActionListener()
Method Detail |
---|
protected FacesContextBroker getContextBroker()
public String getKey()
public void setKey(String key)
key
- the keypublic Logger getLogger()
public String getNavigationOutcome()
protected void setNavigationOutcome(String outcome)
outcome
- the navigation outcomepublic String getPrepareView()
Some pages may require preparation during the render response phase of the JSF cycle. In such cases, the page should include a hidden variable to trigger view preparation. Example: <h:inputHidden value="#{SomeController.prepareView}"/>
Once triggered, the onPrepareView() method for the controller will be invoked. Override the onPrepareView() method to provide controller specific behavior.
public void setPrepareView(String ignored)
ignored
- always ignoredpublic String getSecurityRoles()
public void setSecurityRoles(String roles)
roles
- the security roles stringprotected RoleSet getSecurityRoleSet()
protected void assertLoggedIn(RequestContext context) throws NotAuthorizedException
context
- the request context associated with this execution thread
NotAuthorizedException
- if the user does not have a required roleprotected void authorizeAction(RequestContext context) throws NotAuthorizedException
context
- the request context associated with this execution thread
NotAuthorizedException
- if the user does not have a required roleprotected MessageBroker extractMessageBroker()
public RequestContext extractRequestContext()
protected void handleException(Throwable t)
t
- the exceptionprotected void onExecutionPhaseCompleted()
protected RequestContext onExecutionPhaseStarted()
protected void onPrepareView(RequestContext context) throws Exception
context
- the context associated with the active request
Exception
- if an exception occursprotected void onPrepareViewCompleted()
protected RequestContext onPrepareViewStarted()
public void processAction(ActionEvent event) throws AbortProcessingException
processAction
in interface ActionListener
event
- the associated JSF action event
AbortProcessingException
- if processing should be abortedprotected void processSubAction(ActionEvent event, RequestContext context) throws AbortProcessingException, Exception
event
- the associated JSF action eventcontext
- the context associated with the active request
AbortProcessingException
- if processing should be aborted
Exception
- if an exception occurs
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |