com.trackstudio.kernel.cache
Class UserRelatedManager

java.lang.Object
  extended bycom.trackstudio.kernel.cache.UserRelatedManager

public class UserRelatedManager
extends java.lang.Object


Method Summary
protected  void add(java.lang.String id, com.trackstudio.kernel.cache.UserRelatedInfo o)
           
static void addAcl(java.util.Map acl, InternalACL iacl)
           
protected  com.trackstudio.kernel.cache.UserRelatedInfo find(java.lang.String id)
           
 java.util.ArrayList getAclList(java.lang.String userId)
           
protected  java.util.List getActiveDescendents(java.lang.String id)
           
 java.util.TreeSet getAllowedAcl(java.lang.String toUserId, java.lang.String userid)
           
protected  java.lang.Integer getAllowedChildren(java.lang.String id)
           
 java.util.TreeSet getAllowedPrstatuses(java.lang.String toUserId, java.lang.String userid)
           
 java.util.TreeSet getAllowedUsers(java.lang.String userId)
           
protected  java.util.List getAncestors(java.lang.String id)
           
protected  OrderedTree getCache()
           
 java.util.ArrayList getChildren(java.lang.String id)
           
protected  int getChildrenCount(java.lang.String id)
           
 java.util.ArrayList getDescendents(java.lang.String id)
           
protected  java.util.Calendar getExpireDate(java.lang.String id)
           
static UserRelatedManager getInstance()
           
 java.util.ArrayList getManagerChildren(java.lang.String id)
           
 java.util.List getParents(java.util.Collection users)
           
 java.util.LinkedList getUserIdChain(java.lang.String fromid, java.lang.String toId)
           
 boolean hasAccess(java.lang.String toUserId, java.lang.String userid, java.lang.String prstatusId)
          Более быстрый метод узнать, имеет ли доступ юзер к юзеру
 void invalidateAcl(java.lang.String id, java.lang.String userId, java.lang.String groupId)
           
protected  boolean isActive(java.lang.String id)
           
 boolean isUserExists(java.lang.String userid)
           
protected  void move(com.trackstudio.kernel.cache.UserRelatedInfo object, java.lang.String from, java.lang.String to)
           
protected  void move(com.trackstudio.kernel.cache.UserRelatedInfo object, com.trackstudio.kernel.cache.UserRelatedInfo to)
           
 boolean onSight(java.lang.String toUserId, java.lang.String userid, java.lang.String prstatusId)
           
protected  void remove(java.lang.String s)
           
protected  void update(com.trackstudio.kernel.cache.UserRelatedInfo n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static UserRelatedManager getInstance()
                                      throws GranException
Throws:
GranException

getCache

protected OrderedTree getCache()

add

protected void add(java.lang.String id,
                   com.trackstudio.kernel.cache.UserRelatedInfo o)

remove

protected void remove(java.lang.String s)

update

protected void update(com.trackstudio.kernel.cache.UserRelatedInfo n)

find

protected com.trackstudio.kernel.cache.UserRelatedInfo find(java.lang.String id)
                                                     throws GranException
Throws:
GranException

move

protected void move(com.trackstudio.kernel.cache.UserRelatedInfo object,
                    java.lang.String from,
                    java.lang.String to)

move

protected void move(com.trackstudio.kernel.cache.UserRelatedInfo object,
                    com.trackstudio.kernel.cache.UserRelatedInfo to)

isActive

protected boolean isActive(java.lang.String id)
                    throws GranException
Throws:
GranException

getAllowedChildren

protected java.lang.Integer getAllowedChildren(java.lang.String id)
                                        throws GranException
Throws:
GranException

getExpireDate

protected java.util.Calendar getExpireDate(java.lang.String id)
                                    throws GranException
Throws:
GranException

getAncestors

protected java.util.List getAncestors(java.lang.String id)

getChildrenCount

protected int getChildrenCount(java.lang.String id)

getActiveDescendents

protected java.util.List getActiveDescendents(java.lang.String id)
                                       throws GranException
Throws:
GranException

invalidateAcl

public void invalidateAcl(java.lang.String id,
                          java.lang.String userId,
                          java.lang.String groupId)
                   throws GranException
Throws:
GranException

addAcl

public static void addAcl(java.util.Map acl,
                          InternalACL iacl)

getDescendents

public java.util.ArrayList getDescendents(java.lang.String id)
                                   throws GranException
Throws:
GranException

getChildren

public java.util.ArrayList getChildren(java.lang.String id)
                                throws GranException
Throws:
GranException

getManagerChildren

public java.util.ArrayList getManagerChildren(java.lang.String id)
                                       throws GranException
Throws:
GranException

isUserExists

public boolean isUserExists(java.lang.String userid)
                     throws GranException
Throws:
GranException

getParents

public java.util.List getParents(java.util.Collection users)
                          throws GranException
Throws:
GranException

getUserIdChain

public java.util.LinkedList getUserIdChain(java.lang.String fromid,
                                           java.lang.String toId)
                                    throws GranException
Throws:
GranException

hasAccess

public boolean hasAccess(java.lang.String toUserId,
                         java.lang.String userid,
                         java.lang.String prstatusId)
                  throws GranException
Более быстрый метод узнать, имеет ли доступ юзер к юзеру

Parameters:
userid -
Throws:
GranException

getAllowedPrstatuses

public java.util.TreeSet getAllowedPrstatuses(java.lang.String toUserId,
                                              java.lang.String userid)
                                       throws GranException
Throws:
GranException

getAllowedAcl

public java.util.TreeSet getAllowedAcl(java.lang.String toUserId,
                                       java.lang.String userid)
                                throws GranException
Throws:
GranException

onSight

public boolean onSight(java.lang.String toUserId,
                       java.lang.String userid,
                       java.lang.String prstatusId)
                throws GranException
Throws:
GranException

getAllowedUsers

public java.util.TreeSet getAllowedUsers(java.lang.String userId)
                                  throws GranException
Throws:
GranException

getAclList

public java.util.ArrayList getAclList(java.lang.String userId)
                               throws GranException
Throws:
GranException


Copyright © 2002-2005 TrackStudio, Ltd. All Rights Reserved.