/** Resources * */ public boolean checkResource(String id) { if (id == null || id.trim().length() == 0) { return false; } ContentResource cr = (ContentResource) resourceCache.get(id); if (cr != null) { return true; } boolean goin = in(); try { if (resolver != null && goin) { return resolver.checkResource(id); } else { return m_resourceStore.checkResource(id); } } finally { out(); } }
/** Collections * */ public boolean checkCollection(String id) { if (id == null || id.trim().length() == 0) { return false; } ContentCollection cc = (ContentCollection) collectionCache.get(id); if (cc != null) { return true; } boolean goin = in(); try { if (resolver != null && goin) { return resolver.checkCollection(id); } else { return m_collectionStore.checkResource(id); } } finally { out(); } }