|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.action.Action
com.jfw.web.struts.JFWAction
com.jfw.examples.PrototypeProjectAction
public abstract class PrototypeProjectAction
| Field Summary |
|---|
| Fields inherited from class com.jfw.web.struts.JFWAction |
|---|
className, LOCALE_KEY |
| Fields inherited from class org.apache.struts.action.Action |
|---|
servlet |
| Constructor Summary | |
|---|---|
PrototypeProjectAction()
|
|
| Method Summary | |
|---|---|
protected boolean |
isAuthenticated(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.util.HashMap outputData)
Implements the authentication process. |
protected int |
isAuthorized(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
UserData userData)
Implements the authorization process. |
| Methods inherited from class com.jfw.web.struts.JFWAction |
|---|
afterMyExecute, beforeMyExecute, execute, getLocale, getLocaleLanguage, getUser, initLocale, isSimulateAuthentication, isSimulateAuthorization, myExecute, myInit, security, setLocale, setLocale, setUserDataInOutputData, update |
| Methods inherited from class org.apache.struts.action.Action |
|---|
addErrors, addMessages, execute, generateToken, getErrors, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrototypeProjectAction()
| Method Detail |
|---|
protected boolean isAuthenticated(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.util.HashMap outputData)
JFWAction
isAuthenticated in class JFWActionrequest - an HttpServletRequest object.response - an HttpServletResponse object.outputData - the HashMap container of data to view in jsp.
protected int isAuthorized(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
UserData userData)
JFWAction
isAuthorized in class JFWActionrequest - an HttpServletRequest object.response - an HttpServletResponse object.userData - a UserData object.
Authorization.AUTHORIZED_NO: user can
not execute the service.
Authorization.AUTHORIZED_YES: user can
execute the service.
Authorization.AUTHORIZE_ALL: all users
can execute the service.
Authorization.AUTHORIZE_AUTHENTICATED:
all authenticated users can execute the service.
Authorization.SERVICE_NOT_FOUND: service
name not exist in database.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||