Exemplo n.º 1
0
 public void reset() {
   this.tabs = null;
   for (NodeCache current : this.children.values()) {
     current.reset();
   }
   this.children.clear();
 }
Exemplo n.º 2
0
  /**
   * Clear the detail tab cache for a given node.
   *
   * @param node INode to remove from cache.
   */
  public static void clearCacheForNode(INode node) {

    if (_logger.isDebugEnabled()) {
      _logger.debug("Clearing tab cache for: " + node.getUniqueIdentifier());
    }

    NodeCache nodeCache = _sessionTabCache.get(node.getSession());
    if (nodeCache != null) {
      nodeCache = findNodeCache(node, nodeCache);
      nodeCache.reset();
    }
  }