com.dotmarketing.portlets.structure.factories
Class RelationshipCacheImpl

java.lang.Object
  extended by com.dotmarketing.portlets.structure.factories.RelationshipCache
      extended by com.dotmarketing.portlets.structure.factories.RelationshipCacheImpl
All Implemented Interfaces:
Cachable

public class RelationshipCacheImpl
extends RelationshipCache


Constructor Summary
RelationshipCacheImpl()
           
 
Method Summary
 void clearCache()
           
 java.lang.String[] getGroups()
          Use to get all groups the concrete cache belongs to
 java.lang.String getPrimaryGroup()
          Use to get the primary group/region for the concrete cache
 Relationship getRelationshipByInode(java.lang.String inode)
           
 Relationship getRelationshipByName(java.lang.String name)
           
 java.util.List<Relationship> getRelationshipsByStruct(Structure struct)
           
 void putRelationshipByInode(Relationship rel)
           
 void putRelationshipsByStruct(Structure struct, java.util.List<Relationship> rels)
           
 void removeRelationshipByInode(Relationship rel)
           
 void removeRelationshipsByStruct(Structure struct)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationshipCacheImpl

public RelationshipCacheImpl()
Method Detail

getRelationshipByInode

public Relationship getRelationshipByInode(java.lang.String inode)
                                    throws DotCacheException
Specified by:
getRelationshipByInode in class RelationshipCache
Throws:
DotCacheException

getRelationshipByName

public Relationship getRelationshipByName(java.lang.String name)
                                   throws DotCacheException
Specified by:
getRelationshipByName in class RelationshipCache
Throws:
DotCacheException

putRelationshipByInode

public void putRelationshipByInode(Relationship rel)
Specified by:
putRelationshipByInode in class RelationshipCache

removeRelationshipByInode

public void removeRelationshipByInode(Relationship rel)
Specified by:
removeRelationshipByInode in class RelationshipCache

getRelationshipsByStruct

public java.util.List<Relationship> getRelationshipsByStruct(Structure struct)
                                                      throws DotCacheException
Overrides:
getRelationshipsByStruct in class RelationshipCache
Throws:
DotCacheException

putRelationshipsByStruct

public void putRelationshipsByStruct(Structure struct,
                                     java.util.List<Relationship> rels)
Overrides:
putRelationshipsByStruct in class RelationshipCache

removeRelationshipsByStruct

public void removeRelationshipsByStruct(Structure struct)
Overrides:
removeRelationshipsByStruct in class RelationshipCache

clearCache

public void clearCache()
Specified by:
clearCache in interface Cachable
Specified by:
clearCache in class RelationshipCache

getGroups

public java.lang.String[] getGroups()
Description copied from interface: Cachable
Use to get all groups the concrete cache belongs to

Returns:

getPrimaryGroup

public java.lang.String getPrimaryGroup()
Description copied from interface: Cachable
Use to get the primary group/region for the concrete cache

Returns:


Copyright © 2013 dotCMS Inc. All Rights Reserved.