|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trackstudio.app.session.SessionContext
public class SessionContext
Field Summary | |
---|---|
int |
progress
|
protected ProgressManager |
progressManager
|
Method Summary | |
---|---|
boolean |
allowedByACL(java.lang.String taskid)
Это внутренний метод, выносить его для использования извне TrackStudio не стоит. |
boolean |
allowedByUser(java.lang.String userid)
test that current user can view data that own userid |
boolean |
canAction(TaskAction action,
java.lang.String taskid)
|
boolean |
canAction(TaskAction action,
java.lang.String taskid,
java.util.TreeSet list)
|
boolean |
canAction(UserAction action,
java.lang.String userId)
|
boolean |
canAction(UserAction action,
java.lang.String userId,
java.util.TreeSet list)
|
java.util.TreeSet |
getAllowedPrstatusesForTask(java.lang.String taskId)
Для заданного пользователя и статуса, начиная с заданной задачи и вверх достаем наборы ACL, привязанные к задаче (assigned ACL) через этого пользователя, т.е. |
java.util.TreeSet |
getAllowedPrstatusesForUser(java.lang.String toUserId)
|
java.lang.Object |
getAttribute(java.lang.String key)
|
static java.lang.String |
getCookies(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
java.lang.String |
getCurrentSpace()
|
java.lang.String |
getDefaultTab()
|
java.lang.String |
getId()
|
java.lang.String |
getLocale()
|
protected UserCacheItem |
getLoggedUser()
|
int |
getProgress()
|
ProgressManager |
getProgressManager()
|
java.lang.String |
getPrstatusId()
|
static javax.servlet.ServletConfig |
getServletConfig()
|
java.lang.String |
getSession()
|
java.lang.String |
getTimezone()
|
SecuredUserBean |
getUser()
|
SecuredUserBean |
getUser(java.lang.String id)
|
java.lang.String |
getUserId()
|
java.lang.String |
getUserId(java.lang.String toUserId)
|
boolean |
isSessionInCookeies()
|
boolean |
isTemporary()
|
void |
removeAttribute(java.lang.String key)
|
static void |
resetCookies(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
void |
setAttribute(java.lang.String key,
java.lang.Object value)
|
void |
setCookies(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
|
void |
setCurrentSpace(java.lang.String currentSpace,
javax.servlet.http.HttpServletRequest request)
|
void |
setDefaultTab(java.lang.String defaultTab)
|
protected void |
setId(java.lang.String id)
|
void |
setProgress(int progress)
|
void |
setProgressManager(ProgressManager progressManager)
|
void |
setRequestAttribute(javax.servlet.http.HttpServletRequest request,
java.lang.String key,
java.lang.Object value)
|
static void |
setServletConfig(javax.servlet.ServletConfig servletConfig1)
|
void |
setSessionInCookies(boolean sessionInCookies)
|
boolean |
taskOnSight(java.lang.String taskid)
Returns a collection of task IDs Возвращает коллекцию идентификаторов задач, которые находятся в одних ветках с теми, на которые у пользователя есть доступ. |
boolean |
userOnSight(java.lang.String userid)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int progress
protected ProgressManager progressManager
Method Detail |
---|
public static javax.servlet.ServletConfig getServletConfig()
public static void setServletConfig(javax.servlet.ServletConfig servletConfig1)
public void setSessionInCookies(boolean sessionInCookies)
public boolean isSessionInCookeies()
public java.lang.String getSession()
getSession
in interface SessionContextInterface
public SecuredUserBean getUser() throws GranException
getUser
in interface SessionContextInterface
GranException
public SecuredUserBean getUser(java.lang.String id) throws GranException
GranException
public java.lang.String getUserId()
getUserId
in interface SessionContextInterface
public java.lang.String getUserId(java.lang.String toUserId) throws GranException
getUserId
in interface SessionContextInterface
GranException
protected void setId(java.lang.String id)
public java.lang.String getId()
getId
in interface SessionContextInterface
protected UserCacheItem getLoggedUser()
public boolean isTemporary()
isTemporary
in interface SessionContextInterface
public java.util.TreeSet getAllowedPrstatusesForTask(java.lang.String taskId) throws GranException
taskId
-
GranException
public java.util.TreeSet getAllowedPrstatusesForUser(java.lang.String toUserId) throws GranException
GranException
public boolean canAction(TaskAction action, java.lang.String taskid, java.util.TreeSet list) throws GranException
GranException
public boolean canAction(TaskAction action, java.lang.String taskid) throws GranException
GranException
public boolean canAction(UserAction action, java.lang.String userId, java.util.TreeSet list) throws GranException
GranException
public boolean canAction(UserAction action, java.lang.String userId) throws GranException
GranException
public boolean allowedByACL(java.lang.String taskid) throws GranException
allowedByACL
in interface SessionContextInterface
taskid
- ID задачи
GranException
- Как обычно, если отваливается сессия.public boolean allowedByUser(java.lang.String userid) throws GranException
allowedByUser
in interface SessionContextInterface
GranException
public java.lang.String getLocale() throws GranException
getLocale
in interface SessionContextInterface
GranException
public java.lang.String getTimezone() throws GranException
getTimezone
in interface SessionContextInterface
GranException
public boolean taskOnSight(java.lang.String taskid) throws GranException
taskOnSight
in interface SessionContextInterface
GranException
public boolean userOnSight(java.lang.String userid) throws GranException
userOnSight
in interface SessionContextInterface
GranException
public void setAttribute(java.lang.String key, java.lang.Object value)
public void setRequestAttribute(javax.servlet.http.HttpServletRequest request, java.lang.String key, java.lang.Object value)
public java.lang.Object getAttribute(java.lang.String key)
getAttribute
in interface SessionContextInterface
public void removeAttribute(java.lang.String key)
public java.lang.String getPrstatusId()
public java.lang.String getCurrentSpace()
public java.lang.String getDefaultTab()
public void setDefaultTab(java.lang.String defaultTab)
public void setCurrentSpace(java.lang.String currentSpace, javax.servlet.http.HttpServletRequest request)
public ProgressManager getProgressManager()
public void setProgressManager(ProgressManager progressManager)
public int getProgress()
public void setProgress(int progress)
public void setCookies(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
public static java.lang.String getCookies(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws GranException
GranException
public static void resetCookies(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |