public String getChannelTitle(String instanceId) { OrganizationController orga = new OrganizationController(); ComponentInstLight instance = orga.getComponentInstLight(instanceId); if (instance != null) { return instance.getLabel(); } return ""; }
public void indexComponent(String spaceId, ComponentInstLight compoInst) { SilverTrace.info( silvertraceModule, "ApplicationIndexer.indexComponent()", "applicationIndexer.MSG_START_INDEXING_COMPONENT", "component = " + compoInst.getLabel()); // index component info admin.indexComponent(compoInst.getId()); // index component content ComponentIndexerInterface componentIndexer = getIndexer(compoInst); if (componentIndexer != null) { try { ComponentContext componentContext = mainSessionController.createComponentContext(spaceId, compoInst.getId()); componentIndexer.index(mainSessionController, componentContext); } catch (Exception e) { SilverTrace.error( silvertraceModule, "ApplicationIndexer.indexComponent()", "applicationIndexer.EX_INDEXING_COMPONENT_FAILED", "component = " + compoInst.getLabel(), e); } SilverTrace.info( silvertraceModule, "ApplicationIndexer.indexComponent()", "applicationIndexer.MSG_END_INDEXING_COMPONENT", "component = " + compoInst.getLabel()); } else { SilverTrace.info( silvertraceModule, "ApplicationIndexer.indexComponent()", "applicationIndexer.MSG_COMPONENT_INDEXER_NOT_FOUND", "component = " + compoInst.getLabel()); } }