com.trackstudio.kernel.cache
Class TaskRelatedManager
java.lang.Object
com.trackstudio.kernel.cache.TaskRelatedManager
- public class TaskRelatedManager
- extends java.lang.Object
Method Summary |
protected void |
add(java.lang.String id,
com.trackstudio.kernel.cache.TaskRelatedInfo o)
|
protected static void |
addAcl(java.util.Map acl,
InternalACL iacl)
|
protected com.trackstudio.kernel.cache.TaskRelatedInfo |
find(java.lang.String id)
|
java.util.ArrayList |
getAclList(java.lang.String taskId)
|
java.util.Map |
getAllowedChildrenMap(java.lang.String userId,
java.lang.String prstatusId,
java.lang.String taskId)
|
java.util.Map |
getAllowedChildrenWithSubtasksMap(java.lang.String userId,
java.lang.String prstatusId,
java.lang.String taskId)
|
java.util.TreeSet |
getAllowedGroups(java.lang.String taskId)
|
java.util.TreeSet |
getAllowedPrstatuses(java.lang.String userid,
java.lang.String taskId)
|
java.util.TreeSet |
getAllowedPrstatuses(java.lang.String userid,
java.lang.String taskId,
java.lang.String userPrstatusId)
|
java.util.TreeSet |
getAllowedUsers(java.lang.String taskId)
Возвращает коллекцию userid, которым есть доступ на эту задачу (иерархический) |
java.util.TreeSet |
getAllowedUsersStatuses(java.lang.String taskId)
|
java.util.Collection |
getAllTasksIdCollection()
|
java.util.Set |
getAllUsedCategory(java.lang.String userId,
java.lang.String prstatusId,
java.lang.String taskId)
|
protected Tree |
getCache()
|
protected java.util.ArrayList |
getChildren(java.lang.String id)
|
java.util.List |
getChildrenRecursive(java.lang.String id)
|
static TaskRelatedManager |
getInstance()
|
java.util.List |
getParents(java.util.Collection tasks)
|
java.util.ArrayList |
getProjectChildren(java.lang.String id)
|
java.lang.String |
getTaskCategoryId(java.lang.String taskId)
|
java.util.List |
getTaskChain(java.lang.String fromid,
java.lang.String id)
|
java.lang.String |
getTaskHandlerId(java.lang.String taskId)
|
protected java.util.List |
getTaskRelatedInfoChain(java.lang.String fromid,
java.lang.String id)
|
java.lang.String |
getTaskSubmitterId(java.lang.String taskId)
|
java.util.List |
getUsedStatusesIdList(java.lang.String taskId)
|
java.util.List |
getUsedUsersIdList(java.lang.String taskId)
returns a list of user IDs, who has any access to any of this task descendents |
boolean |
hasAccess(java.lang.String userid,
java.lang.String taskId,
java.lang.String prstatusId)
|
protected void |
invalidateAcl(java.lang.String id,
java.lang.String userId,
java.lang.String groupId)
|
protected void |
invalidateAclWhenChangeStatus(java.lang.String userId)
|
protected void |
invalidateAclWhenMove(java.lang.String id)
|
boolean |
isAclOverrided(java.lang.String taskId,
java.lang.String userId)
|
boolean |
isTaskExists(java.lang.String taskid)
|
protected void |
move(com.trackstudio.kernel.cache.TaskRelatedInfo object,
java.lang.String from,
java.lang.String to)
|
protected void |
move(com.trackstudio.kernel.cache.TaskRelatedInfo object,
com.trackstudio.kernel.cache.TaskRelatedInfo to)
|
boolean |
onSight(java.lang.String userid,
java.lang.String taskId,
java.lang.String prstatusId,
boolean checkAccess)
|
protected void |
remove(java.lang.String s)
|
protected void |
update(com.trackstudio.kernel.cache.TaskRelatedInfo n)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static TaskRelatedManager getInstance()
throws GranException
- Throws:
GranException
getCache
protected Tree getCache()
add
protected void add(java.lang.String id,
com.trackstudio.kernel.cache.TaskRelatedInfo o)
remove
protected void remove(java.lang.String s)
update
protected void update(com.trackstudio.kernel.cache.TaskRelatedInfo n)
find
protected com.trackstudio.kernel.cache.TaskRelatedInfo find(java.lang.String id)
move
protected void move(com.trackstudio.kernel.cache.TaskRelatedInfo object,
java.lang.String from,
java.lang.String to)
move
protected void move(com.trackstudio.kernel.cache.TaskRelatedInfo object,
com.trackstudio.kernel.cache.TaskRelatedInfo to)
invalidateAcl
protected void invalidateAcl(java.lang.String id,
java.lang.String userId,
java.lang.String groupId)
throws GranException
- Throws:
GranException
invalidateAclWhenMove
protected void invalidateAclWhenMove(java.lang.String id)
throws GranException
- Throws:
GranException
invalidateAclWhenChangeStatus
protected void invalidateAclWhenChangeStatus(java.lang.String userId)
throws GranException
- Throws:
GranException
getChildren
protected java.util.ArrayList getChildren(java.lang.String id)
addAcl
protected static void addAcl(java.util.Map acl,
InternalACL iacl)
getTaskRelatedInfoChain
protected java.util.List getTaskRelatedInfoChain(java.lang.String fromid,
java.lang.String id)
throws GranException
- Throws:
GranException
getTaskChain
public java.util.List getTaskChain(java.lang.String fromid,
java.lang.String id)
throws GranException
- Throws:
GranException
getAllowedPrstatuses
public java.util.TreeSet getAllowedPrstatuses(java.lang.String userid,
java.lang.String taskId,
java.lang.String userPrstatusId)
throws GranException
- Throws:
GranException
hasAccess
public boolean hasAccess(java.lang.String userid,
java.lang.String taskId,
java.lang.String prstatusId)
throws GranException
- Throws:
GranException
onSight
public boolean onSight(java.lang.String userid,
java.lang.String taskId,
java.lang.String prstatusId,
boolean checkAccess)
throws GranException
- Throws:
GranException
getAllowedPrstatuses
public java.util.TreeSet getAllowedPrstatuses(java.lang.String userid,
java.lang.String taskId)
throws GranException
- Throws:
GranException
getTaskHandlerId
public java.lang.String getTaskHandlerId(java.lang.String taskId)
throws GranException
- Throws:
GranException
getTaskCategoryId
public java.lang.String getTaskCategoryId(java.lang.String taskId)
throws GranException
- Throws:
GranException
getTaskSubmitterId
public java.lang.String getTaskSubmitterId(java.lang.String taskId)
throws GranException
- Throws:
GranException
isAclOverrided
public boolean isAclOverrided(java.lang.String taskId,
java.lang.String userId)
throws GranException
- Throws:
GranException
getAllowedUsers
public java.util.TreeSet getAllowedUsers(java.lang.String taskId)
throws GranException
- Возвращает коллекцию userid, которым есть доступ на эту задачу (иерархический)
- Throws:
GranException
getAllowedUsersStatuses
public java.util.TreeSet getAllowedUsersStatuses(java.lang.String taskId)
throws GranException
- Throws:
GranException
getAllowedGroups
public java.util.TreeSet getAllowedGroups(java.lang.String taskId)
throws GranException
- Throws:
GranException
getAclList
public java.util.ArrayList getAclList(java.lang.String taskId)
throws GranException
- Throws:
GranException
getUsedUsersIdList
public java.util.List getUsedUsersIdList(java.lang.String taskId)
throws GranException
- returns a list of user IDs, who has any access to any of this task descendents
- Throws:
GranException
getUsedStatusesIdList
public java.util.List getUsedStatusesIdList(java.lang.String taskId)
throws GranException
- Throws:
GranException
isTaskExists
public boolean isTaskExists(java.lang.String taskid)
throws GranException
- Throws:
GranException
getChildrenRecursive
public java.util.List getChildrenRecursive(java.lang.String id)
throws GranException
- Throws:
GranException
getAllTasksIdCollection
public java.util.Collection getAllTasksIdCollection()
throws GranException
- Throws:
GranException
getParents
public java.util.List getParents(java.util.Collection tasks)
throws GranException
- Throws:
GranException
getProjectChildren
public java.util.ArrayList getProjectChildren(java.lang.String id)
throws GranException
- Throws:
GranException
getAllUsedCategory
public java.util.Set getAllUsedCategory(java.lang.String userId,
java.lang.String prstatusId,
java.lang.String taskId)
throws GranException
- Throws:
GranException
getAllowedChildrenWithSubtasksMap
public java.util.Map getAllowedChildrenWithSubtasksMap(java.lang.String userId,
java.lang.String prstatusId,
java.lang.String taskId)
throws GranException
- Throws:
GranException
getAllowedChildrenMap
public java.util.Map getAllowedChildrenMap(java.lang.String userId,
java.lang.String prstatusId,
java.lang.String taskId)
throws GranException
- Throws:
GranException
Copyright © 2002-2005 TrackStudio, Ltd. All Rights Reserved.