com.trackstudio.action
Class GeneralAction
java.lang.Object
com.trackstudio.action.GeneralAction
public class GeneralAction
- extends java.lang.Object
|
Method Summary |
java.util.HashMap<java.lang.String,java.util.List<SecuredTaskBean>> |
getCountTaskGroup(SessionContext sc,
java.util.List<SecuredTaskBean> taskBeans)
|
java.lang.String |
getId(javax.servlet.http.HttpServletRequest request,
BaseForm base)
|
static GeneralAction |
getInstance()
|
java.lang.String |
getUserId(javax.servlet.http.HttpServletRequest request,
BaseForm base,
SessionContext sc)
|
protected SessionContext |
HTTPAuthenticate(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
This method checks the user information sent in the Authorization
header against the database of users maintained in the users Hashtable. |
SessionContext |
imports(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
SessionContext |
imports(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean noForward)
|
java.lang.String |
taskHeader(BaseForm base,
SessionContext sc,
javax.servlet.http.HttpServletRequest request)
|
java.lang.String |
taskHeader(BaseForm base,
SessionContext sc,
javax.servlet.http.HttpServletRequest request,
boolean fullHeader)
|
java.lang.String |
userHeader(BaseForm base,
SessionContext sc,
javax.servlet.http.HttpServletRequest request)
Return user id |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IMAGE_SERVLET_KEY
public static java.lang.String IMAGE_SERVLET_KEY
GeneralAction
public GeneralAction()
getInstance
public static GeneralAction getInstance()
imports
public SessionContext imports(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws GranException
- Throws:
GranException
imports
public SessionContext imports(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean noForward)
throws GranException
- Throws:
GranException
HTTPAuthenticate
protected SessionContext HTTPAuthenticate(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws java.io.IOException
- This method checks the user information sent in the Authorization
header against the database of users maintained in the users Hashtable.
- Parameters:
req - request
- Returns:
- session id
- Throws:
java.io.IOException
taskHeader
public java.lang.String taskHeader(BaseForm base,
SessionContext sc,
javax.servlet.http.HttpServletRequest request)
throws GranException
- Throws:
GranException
taskHeader
public java.lang.String taskHeader(BaseForm base,
SessionContext sc,
javax.servlet.http.HttpServletRequest request,
boolean fullHeader)
throws GranException
- Throws:
GranException
getId
public java.lang.String getId(javax.servlet.http.HttpServletRequest request,
BaseForm base)
userHeader
public java.lang.String userHeader(BaseForm base,
SessionContext sc,
javax.servlet.http.HttpServletRequest request)
throws GranException
- Return user id
- Parameters:
base - sc - request -
- Returns:
- user id
- Throws:
GranException
getUserId
public java.lang.String getUserId(javax.servlet.http.HttpServletRequest request,
BaseForm base,
SessionContext sc)
getCountTaskGroup
public java.util.HashMap<java.lang.String,java.util.List<SecuredTaskBean>> getCountTaskGroup(SessionContext sc,
java.util.List<SecuredTaskBean> taskBeans)
throws GranException
- Throws:
GranException
Copyright © 2002-2009 TrackStudio, Ltd. All Rights Reserved.