com.trackstudio.kernel.cache
Class ActionCacheManager

java.lang.Object
  extended bycom.trackstudio.kernel.cache.CacheManager
      extended bycom.trackstudio.kernel.cache.ActionCacheManager
All Implemented Interfaces:
NotificationReceiver

public class ActionCacheManager
extends CacheManager


Field Summary
 
Fields inherited from class com.trackstudio.kernel.cache.CacheManager
hu
 
Method Summary
 OrderedTree buildTree(java.util.List roles)
          Строит дерево по внутреннему шаблону из заданных элементов.
 OrderedTree getActions(java.lang.String prstatus)
           
static ActionCacheManager getInstance()
           
 OrderedTree getRootActions()
           
 void invalidate()
           
 void receive(CacheNotification nf)
           
 
Methods inherited from class com.trackstudio.kernel.cache.CacheManager
notify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRootActions

public OrderedTree getRootActions()

buildTree

public OrderedTree buildTree(java.util.List roles)
                      throws GranException
Строит дерево по внутреннему шаблону из заданных элементов. Набор элементов может быть с пропусками, недостающие элементы будут взяты из шаблона. Вероятно, жутко тормозное место. Чем меньше набор, тем быстрее. Хотя это на скорость влияет несильно.

Parameters:
roles -
Returns:
Дерево ролей
Throws:
GranException

getActions

public OrderedTree getActions(java.lang.String prstatus)
                       throws GranException
Throws:
GranException

getInstance

public static ActionCacheManager getInstance()
                                      throws GranException
Throws:
GranException

invalidate

public void invalidate()
                throws GranException
Throws:
GranException

receive

public void receive(CacheNotification nf)
             throws GranException
Throws:
GranException


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