com.stratelia.webactiv.beans.admin.cache
Class TreeCache

java.lang.Object
  extended by com.stratelia.webactiv.beans.admin.cache.TreeCache

public class TreeCache
extends Object


Constructor Summary
TreeCache()
           
 
Method Summary
static void addComponent(String componentId, ComponentInstLight component, String spaceId)
           
static void addSpace(String spaceId, Space space)
           
static void addSubSpace(String spaceId, SpaceInstLight subSpace)
           
static void clearCache()
           
static ComponentInstLight getComponent(String componentId)
           
static List<String> getComponentIds(String spaceId)
           
static List<SpaceInstLight> getComponentPath(String componentId)
           
static List<ComponentInstLight> getComponents(String spaceId)
           
static List<ComponentInstLight> getComponentsInSpaceAndSubspaces(String spaceId)
           
static SpaceInstLight getSpaceContainingComponent(String componentId)
           
static SpaceInstLight getSpaceInstLight(String spaceId)
           
static int getSpaceLevel(String spaceId)
           
static List<SpaceInstLight> getSpacePath(String spaceId)
           
static List<SpaceInstLight> getSubSpaces(String spaceId)
           
static boolean isSpaceContainsComponent(String spaceId, String componentId)
           
static void removeComponent(String spaceId, String componentId)
           
static void removeSpace(String spaceId)
           
static void setComponents(String spaceId, List<ComponentInstLight> components)
           
static void setSubspaces(String spaceId, List<SpaceInstLight> subspaces)
           
static void updateSpace(SpaceInstLight spaceLight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeCache

public TreeCache()
Method Detail

clearCache

public static void clearCache()

getSpaceInstLight

public static SpaceInstLight getSpaceInstLight(String spaceId)

addSpace

public static void addSpace(String spaceId,
                            Space space)

removeSpace

public static void removeSpace(String spaceId)

setSubspaces

public static void setSubspaces(String spaceId,
                                List<SpaceInstLight> subspaces)

getComponents

public static List<ComponentInstLight> getComponents(String spaceId)

getComponentIds

public static List<String> getComponentIds(String spaceId)

getSubSpaces

public static List<SpaceInstLight> getSubSpaces(String spaceId)

isSpaceContainsComponent

public static boolean isSpaceContainsComponent(String spaceId,
                                               String componentId)

addComponent

public static void addComponent(String componentId,
                                ComponentInstLight component,
                                String spaceId)

removeComponent

public static void removeComponent(String spaceId,
                                   String componentId)

setComponents

public static void setComponents(String spaceId,
                                 List<ComponentInstLight> components)

getComponentsInSpaceAndSubspaces

public static List<ComponentInstLight> getComponentsInSpaceAndSubspaces(String spaceId)

getSpacePath

public static List<SpaceInstLight> getSpacePath(String spaceId)

getComponent

public static ComponentInstLight getComponent(String componentId)

getSpaceContainingComponent

public static SpaceInstLight getSpaceContainingComponent(String componentId)

getComponentPath

public static List<SpaceInstLight> getComponentPath(String componentId)

updateSpace

public static void updateSpace(SpaceInstLight spaceLight)

getSpaceLevel

public static int getSpaceLevel(String spaceId)

addSubSpace

public static void addSubSpace(String spaceId,
                               SpaceInstLight subSpace)


Copyright © 2016 Silverpeas. All Rights Reserved.