List of usage examples for com.liferay.portal.kernel.search DDMStructureIndexer reindexDDMStructures
public void reindexDDMStructures(List<Long> ddmStructureIds) throws SearchException;
From source file:com.liferay.dynamic.data.mapping.background.task.DDMStructureIndexerBackgroundTaskExecutor.java
License:Open Source License
@Override public BackgroundTaskResult execute(BackgroundTask backgroundTask) throws Exception { Map<String, Serializable> taskContextMap = backgroundTask.getTaskContextMap(); Number structureIdNumber = (Number) taskContextMap.get("structureId"); long structureId = structureIdNumber.longValue(); DDMStructureIndexer structureIndexer = getDDMStructureIndexer(structureId); List<Long> ddmStructureIds = getChildrenStructureIds(structureId); structureIndexer.reindexDDMStructures(ddmStructureIds); return BackgroundTaskResult.SUCCESS; }