getObjectWithId(AvailableServiceBindingImpl.class, new Integer(objectId), db);
getObjectWithId(SmallAvailableServiceBindingImpl.class, new Integer(objectId), db);
}
else if(Class.forName(className).getName().equals(SiteNodeImpl.class.getName()))
{
SiteNodeImpl siteNode = (SiteNodeImpl)getObjectWithId(SiteNodeImpl.class, new Integer(objectId), db);
getObjectWithId(SmallSiteNodeImpl.class, new Integer(objectId), db);
/*
NodeDeliveryController ndc = NodeDeliveryController.getNodeDeliveryController(new Integer(objectId), new Integer(-1), new Integer(-1));
Repository repository = siteNode.getRepository();
if(repository != null)
{
Collection languages = repository.getRepositoryLanguages();
Iterator languageIterator = languages.iterator();
while(languageIterator.hasNext())
{
RepositoryLanguage repositoryLanguage = (RepositoryLanguage)languageIterator.next();
Language currentLanguage = repositoryLanguage.getLanguage();
LanguageDeliveryController.getLanguageDeliveryController().getLanguageIfSiteNodeSupportsIt(db, currentLanguage.getId(), siteNode.getId());
}
}
*/
}
else if(Class.forName(className).getName().equals(SiteNodeVersionImpl.class.getName()))
{
getObjectWithId(SiteNodeVersionImpl.class, new Integer(objectId), db);
getObjectWithId(SmallSiteNodeVersionImpl.class, new Integer(objectId), db);
}
else if(Class.forName(className).getName().equals(DigitalAssetImpl.class.getName()))
{
getObjectWithId(SmallDigitalAssetImpl.class, new Integer(objectId), db);
getObjectWithId(MediumDigitalAssetImpl.class, new Integer(objectId), db);
}
else if(Class.forName(className).getName().equals(MediumDigitalAssetImpl.class.getName()))
{
getObjectWithId(SmallDigitalAssetImpl.class, new Integer(objectId), db);
getObjectWithId(DigitalAssetImpl.class, new Integer(objectId), db);
}
else if(Class.forName(className).getName().equals(PublicationImpl.class.getName()))
{
List publicationDetailVOList = PublicationController.getController().getPublicationDetailVOList(new Integer(objectId));
Iterator publicationDetailVOListIterator = publicationDetailVOList.iterator();
while(publicationDetailVOListIterator.hasNext())
{
PublicationDetailVO publicationDetailVO = (PublicationDetailVO)publicationDetailVOListIterator.next();
logger.info("publicationDetailVO.getEntityClass():" + publicationDetailVO.getEntityClass());
logger.info("publicationDetailVO.getEntityId():" + publicationDetailVO.getEntityId());
if(Class.forName(publicationDetailVO.getEntityClass()).getName().equals(ContentVersion.class.getName()))
{
logger.info("We cache all content having references to contentVersion: " + publicationDetailVO.getEntityId());
Integer contentId = ContentVersionController.getContentVersionController().getContentIdForContentVersion(publicationDetailVO.getEntityId());
getObjectWithId(ContentVersionImpl.class, new Integer(publicationDetailVO.getEntityId()), db);
getObjectWithId(SmallContentVersionImpl.class, new Integer(publicationDetailVO.getEntityId()), db);
getObjectWithId(SmallestContentVersionImpl.class, new Integer(publicationDetailVO.getEntityId()), db);
getObjectWithId(ContentImpl.class, new Integer(contentId), db);
getObjectWithId(SmallContentImpl.class, new Integer(contentId), db);
getObjectWithId(SmallishContentImpl.class, new Integer(contentId), db);
getObjectWithId(MediumContentImpl.class, new Integer(contentId), db);
}
else if(Class.forName(publicationDetailVO.getEntityClass()).getName().equals(SiteNodeImpl.class.getName()))
{
SiteNodeImpl siteNode = (SiteNodeImpl)getObjectWithId(SiteNodeImpl.class, new Integer(objectId), db);
getObjectWithId(SmallSiteNodeImpl.class, new Integer(objectId), db);
/*
NodeDeliveryController ndc = NodeDeliveryController.getNodeDeliveryController(new Integer(objectId), new Integer(-1), new Integer(-1));
Repository repository = siteNode.getRepository();
if(repository != null)
{
Collection languages = repository.getRepositoryLanguages();
Iterator languageIterator = languages.iterator();
while(languageIterator.hasNext())
{
RepositoryLanguage repositoryLanguage = (RepositoryLanguage)languageIterator.next();
Language currentLanguage = repositoryLanguage.getLanguage();
LanguageDeliveryController.getLanguageDeliveryController().getLanguageIfSiteNodeSupportsIt(db, currentLanguage.getId(), siteNode.getId());
}
}
*/
}
else if(Class.forName(publicationDetailVO.getEntityClass()).getName().equals(SiteNodeVersion.class.getName()))
{
Integer siteNodeId = SiteNodeVersionController.getController().getSiteNodeVersionVOWithId(publicationDetailVO.getEntityId()).getSiteNodeId();
getObjectWithId(SiteNodeVersionImpl.class, new Integer(publicationDetailVO.getEntityId()), db);
getObjectWithId(SmallSiteNodeVersionImpl.class, new Integer(publicationDetailVO.getEntityId()), db);
SiteNodeImpl siteNode = (SiteNodeImpl)getObjectWithId(SiteNodeImpl.class, new Integer(siteNodeId), db);
getObjectWithId(SmallSiteNodeImpl.class, new Integer(siteNodeId), db);
/*
NodeDeliveryController ndc = NodeDeliveryController.getNodeDeliveryController(new Integer(objectId), new Integer(-1), new Integer(-1));
Repository repository = siteNode.getRepository();