placeType = null;
nameField = null;
}
public void computeEnhancements(ContentItem ci) throws EngineException {
final ReferencedSite site;
if(referencedSiteID != null) { //lookup the referenced site
site = siteManager.getReferencedSite(referencedSiteID);
//ensure that it is present
if (site == null) {
String msg = String.format(
"Unable to enhance %s because Referenced Site %s is currently not active!",
ci.getUri().getUnicodeString(), referencedSiteID);
log.warn(msg);
// TODO: throwing Exceptions is currently deactivated. We need a more clear
// policy what do to in such situations
// throw new EngineException(msg);
return;
}
//and that it supports offline mode if required
if (isOfflineMode() && !site.supportsLocalMode()) {
log.warn("Unable to enhance ci {} because OfflineMode is not supported by ReferencedSite {}.",
ci.getUri().getUnicodeString(), site.getId());
return;
}
} else { // null indicates to use the Entityhub to lookup Entities
site = null;
}