MediumSiteNodeVersionImpl siteNodeVersion = (MediumSiteNodeVersionImpl)object;
CacheController.clearCacheForGroup("siteNodeCacheWithLatestVersion", "siteNode_" + (Integer)getObjectIdentity(object));
CacheController.clearCacheForGroup("childSiteNodesCache", "siteNode_" + siteNodeVersion.getValueObject().getSiteNodeId());
CacheController.clearCacheForGroup("childPagesCache", "siteNode_" + siteNodeVersion.getValueObject().getSiteNodeId());
CacheController.clearCacheForGroup("latestSiteNodeVersionCache", "siteNode_" + siteNodeVersion.getValueObject().getSiteNodeId());
SiteNodeVO siteNodeVO = SiteNodeController.getController().getSiteNodeVOWithId(siteNodeVersion.getValueObject().getSiteNodeId(), true);
if(siteNodeVO.getParentSiteNodeId() != null)
{
CacheController.clearCacheForGroup("childSiteNodesCache", "siteNode_" + siteNodeVO.getParentSiteNodeId());
CacheController.clearCacheForGroup("childPagesCache", "siteNode_" + siteNodeVO.getParentSiteNodeId());
}
}
catch (Exception e)
{
logger.warn("Error in JDOCallback:" + e.getMessage(), e);
}
}
else
{
clearCache(MediumSiteNodeVersionImpl.class);
try
{
SiteNodeVersionImpl siteNodeVersion = (SiteNodeVersionImpl)object;
Integer siteNodeId = siteNodeVersion.getSiteNodeId();
if(siteNodeId == null && siteNodeVersion.getOwningSiteNode() != null)
siteNodeId = siteNodeVersion.getOwningSiteNode().getId();
CacheController.clearCacheForGroup("siteNodeCacheWithLatestVersion", "siteNode_" + siteNodeId);
CacheController.clearCacheForGroup("childSiteNodesCache", "siteNode_" + siteNodeId);
CacheController.clearCacheForGroup("childPagesCache", "siteNode_" + siteNodeId);
CacheController.clearCacheForGroup("latestSiteNodeVersionCache", "siteNode_" + siteNodeId);
SiteNodeVO siteNodeVO = SiteNodeController.getController().getSiteNodeVOWithId(siteNodeVersion.getValueObject().getSiteNodeId(), true);
if(siteNodeVO.getParentSiteNodeId() != null)
{
CacheController.clearCacheForGroup("childSiteNodesCache", "siteNode_" + siteNodeVO.getParentSiteNodeId());
CacheController.clearCacheForGroup("childPagesCache", "siteNode_" + siteNodeVO.getParentSiteNodeId());
}
}
catch (Exception e)
{
logger.warn("Error in JDOCallback:" + e.getMessage(), e);