|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dotmarketing.portlets.categories.business.CategoryCache
com.dotmarketing.portlets.categories.business.CategoryCacheImpl
public class CategoryCacheImpl
| Constructor Summary | |
|---|---|
CategoryCacheImpl()
|
|
| Method Summary | |
|---|---|
protected void |
addChild(Categorizable parent,
Category child,
java.util.List<Category> children)
Sets the list of children based on the given parent id/inode |
protected void |
addParent(Categorizable child,
Category parent,
java.util.List<Category> parents)
Sets the list of parent categories of the given child id/inode |
protected void |
clearCache()
Removes all entries from cache |
protected void |
clearChildrenCache()
Removes all the child entries from the cache |
protected Category |
get(java.lang.String id)
This method get a category object from the cache based on the passed inode, if the object does not exist in cache a null value is returned |
protected Category |
getByKey(java.lang.String catKey)
This method get a category object from the cache based on the passed inode, if the object does not exist in cache a null value is returned |
java.lang.String |
getCategoryByKeyGroup()
use to get the group name used in the cache |
java.lang.String |
getCategoryChildrenGroup()
use to get the group name used in the cache |
java.lang.String |
getCategoryParentsGroup()
use to get the group name used in the cache |
protected java.util.List<java.lang.String> |
getChildren(Categorizable parent)
Retrieves children categories of the given id(inode or identifier) this method can be used to associate not only children of categories but also children of other type of entities |
java.lang.String[] |
getGroups()
Use to get all groups the concrete cache belongs to |
protected java.util.List<java.lang.String> |
getParents(Categorizable child)
Retrieves the list of parents categories associated to the given id/inode |
java.lang.String |
getPrimaryGroup()
Use to get the primary group/region for the concrete cache |
protected void |
put(Category object)
This method puts a category object in cache using the category inode as key this method also triggers the removal of children and parents from the cache |
void |
putChildren(Categorizable parent,
java.util.List<Category> children)
Sets the list of children based on the given parent id/inode |
protected void |
putParents(Categorizable child,
java.util.List<Category> parents)
Sets the list of parent categories of the given child id/inode |
protected void |
remove(Category object)
This method removes the category entry from the cache based on the category inode |
protected void |
removeChild(Categorizable parent,
Category child)
Removes the list of children categories based using the given parent id/inode |
protected void |
removeChildren(Categorizable parent)
Removes the list of children categories based using the given parent id/inode |
protected void |
removeParent(Categorizable child,
Category parent)
Sets the list of parent categories of the given child id/inode |
protected void |
removeParents(Categorizable child)
Removes the parents associated to the given children category |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CategoryCacheImpl()
| Method Detail |
|---|
protected Category get(java.lang.String id)
throws DotDataException
CategoryCache
get in class CategoryCacheDotDataException
protected java.util.List<java.lang.String> getChildren(Categorizable parent)
throws DotDataException
CategoryCache
getChildren in class CategoryCacheDotDataException
protected java.util.List<java.lang.String> getParents(Categorizable child)
throws DotDataException
CategoryCache
getParents in class CategoryCacheDotDataException
protected void put(Category object)
throws DotDataException,
DotCacheException
CategoryCache
put in class CategoryCacheDotDataException
DotCacheException
public void putChildren(Categorizable parent,
java.util.List<Category> children)
throws DotDataException,
DotCacheException
CategoryCache
putChildren in class CategoryCacheDotDataException
DotCacheException
protected void putParents(Categorizable child,
java.util.List<Category> parents)
throws DotDataException,
DotCacheException
CategoryCache
putParents in class CategoryCacheDotDataException
DotCacheException
protected void remove(Category object)
throws DotDataException,
DotCacheException
CategoryCache
remove in class CategoryCacheDotDataException
DotCacheException
protected void removeChildren(Categorizable parent)
throws DotDataException,
DotCacheException
CategoryCache
removeChildren in class CategoryCacheDotDataException
DotCacheException
protected void removeParents(Categorizable child)
throws DotDataException,
DotCacheException
CategoryCache
removeParents in class CategoryCacheDotDataException
DotCacheException
protected void addChild(Categorizable parent,
Category child,
java.util.List<Category> children)
throws DotDataException,
DotCacheException
CategoryCache
addChild in class CategoryCacheDotDataException
DotCacheException
protected void addParent(Categorizable child,
Category parent,
java.util.List<Category> parents)
throws DotDataException,
DotCacheException
CategoryCache
addParent in class CategoryCacheDotDataException
DotCacheException
protected void removeChild(Categorizable parent,
Category child)
throws DotDataException,
DotCacheException
CategoryCache
removeChild in class CategoryCacheDotDataException
DotCacheException
protected void removeParent(Categorizable child,
Category parent)
throws DotDataException,
DotCacheException
CategoryCache
removeParent in class CategoryCacheDotDataException
DotCacheException
protected Category getByKey(java.lang.String catKey)
throws DotDataException
CategoryCache
getByKey in class CategoryCacheDotDataExceptionprotected void clearCache()
CategoryCache
clearCache in class CategoryCacheprotected void clearChildrenCache()
CategoryCache
clearChildrenCache in class CategoryCachepublic java.lang.String[] getGroups()
Cachable
public java.lang.String getPrimaryGroup()
Cachable
public java.lang.String getCategoryByKeyGroup()
CategoryCache
getCategoryByKeyGroup in class CategoryCachepublic java.lang.String getCategoryChildrenGroup()
CategoryCache
getCategoryChildrenGroup in class CategoryCachepublic java.lang.String getCategoryParentsGroup()
CategoryCache
getCategoryParentsGroup in class CategoryCache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||