|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.action.Action
org.itracker.web.actions.base.ItrackerBaseAction
public abstract class ItrackerBaseAction
This seems to be an action that is called always, checking for Permissions, Authentication and other stuff
| Field Summary |
|---|
| Fields inherited from class org.apache.struts.action.Action |
|---|
defaultLocale, servlet |
| Constructor Summary | |
|---|---|
ItrackerBaseAction()
|
|
| Method Summary | |
|---|---|
String |
getBaseURL(javax.servlet.http.HttpServletRequest request)
|
protected ITrackerServices |
getITrackerServices()
TODO: Deprecate and move to new static method in a ITrackerServicesFactory-class |
Locale |
getLocale(javax.servlet.http.HttpServletRequest request)
|
String |
getName()
Deprecated. no state information is allowed in actions. use a correct pattern like request-attributes. |
String |
getPage()
Deprecated. no state information is allowed in actions. use a correct pattern like request-attributes. |
int |
getPermission()
Deprecated. no state information is allowed in actions. use a correct pattern like request-attributes. |
protected Map<Integer,Set<PermissionType>> |
getUserPermissions(javax.servlet.http.HttpSession session)
|
protected void |
handleException(Throwable t,
org.apache.struts.action.ActionMessages messages,
javax.servlet.http.HttpServletRequest httpServletRequest)
|
protected boolean |
hasPermission(int[] permissionsNeeded,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
TODO: Deprecate and move to LoginUtilities |
protected boolean |
hasPermission(int permissionNeeded,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
TODO: Deprecate and move to LoginUtilities |
protected boolean |
isLoggedIn(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated. move to LoginUtilities - no need for actions to check for user being logged in. |
org.apache.struts.action.ActionForward |
loginRouter(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.ActionForward thisactionforward)
former checkLogin Tag(lib) Code.. |
protected static void |
logTimeMillies(String message,
Date startTime,
org.apache.log4j.Logger log,
org.apache.log4j.Level level)
Log time passed since timestamp startTime was set. |
void |
setName(String value)
Deprecated. no state information is allowed in actions. use a correct pattern like request-attributes. |
void |
setPage(String value)
Deprecated. no state information is allowed in actions. use a correct pattern like request-attributes. |
void |
setPermission(int value)
Deprecated. no state information is allowed in actions. use a correct pattern like request-attributes. |
| Methods inherited from class org.apache.struts.action.Action |
|---|
addErrors, addMessages, execute, execute, generateToken, getDataSource, getDataSource, getErrors, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, 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 ItrackerBaseAction()
| Method Detail |
|---|
protected Map<Integer,Set<PermissionType>> getUserPermissions(javax.servlet.http.HttpSession session)
protected boolean hasPermission(int[] permissionsNeeded,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
LoginUtilities
permissionsNeeded - request - response -
IOException
javax.servlet.ServletException
protected boolean hasPermission(int permissionNeeded,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
LoginUtilities
permissionNeeded - request - response -
IOException
javax.servlet.ServletException
protected boolean isLoggedIn(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException
LoginUtilities - no need for actions to check for user being logged in.
request - response -
IOException
javax.servlet.ServletExceptionpublic String getBaseURL(javax.servlet.http.HttpServletRequest request)
request - - request for base-url
protected ITrackerServices getITrackerServices()
public String getName()
public void setName(String value)
public String getPage()
public void setPage(String value)
public int getPermission()
public void setPermission(int value)
public org.apache.struts.action.ActionForward loginRouter(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.apache.struts.action.ActionForward thisactionforward)
LoginUtilities
TODO: Clean and split this code up, so it is understandable what it does.
public Locale getLocale(javax.servlet.http.HttpServletRequest request)
getLocale in class org.apache.struts.action.Action
protected static void logTimeMillies(String message,
Date startTime,
org.apache.log4j.Logger log,
org.apache.log4j.Level level)
System.currentTimeMillis(). This helps on actions performance issues.
message - startTime - log - priority -
protected void handleException(Throwable t,
org.apache.struts.action.ActionMessages messages,
javax.servlet.http.HttpServletRequest httpServletRequest)
t - messages - httpServletRequest -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||