gran.app.session
Class SessionContext
java.lang.Object
gran.app.session.SessionContext
- All Implemented Interfaces:
- java.io.Serializable
- public class SessionContext
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
progress
public int progress
progressManager
protected ProgressManager progressManager
setSessionInCookies
public void setSessionInCookies(boolean sessionInCookies)
isSessionInCookeies
public boolean isSessionInCookeies()
getSession
public java.lang.String getSession()
getUser
public SecuredUserBean getUser()
throws GranException
- Throws:
GranException
getUserId
public java.lang.String getUserId()
getUserId
public java.lang.String getUserId(java.lang.String toUserId)
throws GranException
- Throws:
GranException
setId
protected void setId(java.lang.String id)
getId
public java.lang.String getId()
getLoggedUser
protected UserCacheItem getLoggedUser()
setTemporary
public void setTemporary(boolean t)
isTemporary
public boolean isTemporary()
canAction
public boolean canAction(TaskAction action,
java.lang.String taskid)
throws GranException
- Throws:
GranException
canAction
public boolean canAction(UserAction action,
java.lang.String userId)
throws GranException
- Throws:
GranException
allowedByACL
public boolean allowedByACL(java.lang.String taskid)
throws GranException
- Это внутренний метод, выносить его для использования извне TrackStudio не стоит.
Метод определяет права доступа на определенную задачу для определенного пользователя.
- Parameters:
taskid
- ID задачи
- Returns:
- true - есть доступ через access control, false - нет
- Throws:
GranException
- Как обычно, если отваливается сессия.
allowedByUser
public boolean allowedByUser(java.lang.String userid)
throws GranException
- test that current user can view data that own userid
- Throws:
GranException
getLocale
public java.lang.String getLocale()
throws GranException
- Throws:
GranException
getTimezone
public java.lang.String getTimezone()
throws GranException
- Throws:
GranException
taskOnSight
public boolean taskOnSight(java.lang.String taskid)
throws GranException
- Returns a collection of task IDs
Возвращает коллекцию идентификаторов задач, которые находятся в одних ветках с теми, на которые у пользователя есть доступ.
- Throws:
GranException
userOnSight
public boolean userOnSight(java.lang.String userid)
throws GranException
- Throws:
GranException
setAttribute
public void setAttribute(java.lang.String key,
java.lang.Object value)
setRequestAttribute
public void setRequestAttribute(javax.servlet.http.HttpServletRequest request,
java.lang.String key,
java.lang.Object value)
getAttribute
public java.lang.Object getAttribute(java.lang.String key)
removeAttribute
public void removeAttribute(java.lang.String key)
getPrstatusId
public java.lang.String getPrstatusId()
getCurrentSpace
public java.lang.String getCurrentSpace()
getDefaultTab
public java.lang.String getDefaultTab()
setDefaultTab
public void setDefaultTab(java.lang.String defaultTab)
setCurrentSpace
public void setCurrentSpace(java.lang.String currentSpace,
javax.servlet.http.HttpServletRequest request)
getProgressManager
public ProgressManager getProgressManager()
setProgressManager
public void setProgressManager(ProgressManager progressManager)
getProgress
public int getProgress()
setProgress
public void setProgress(int progress)
Copyright © 2002-2005 TrackStudio, Ltd. All Rights Reserved.