|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.fr.design.mainframe.alphafine.search.manager.impl; |
|
|
|
package com.fr.design.mainframe.alphafine.search.manager.impl; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fr.design.actions.UpdateAction; |
|
|
|
import com.fr.design.mainframe.alphafine.CellType; |
|
|
|
import com.fr.design.mainframe.alphafine.CellType; |
|
|
|
import com.fr.design.mainframe.alphafine.cell.CellModelHelper; |
|
|
|
import com.fr.design.mainframe.alphafine.cell.CellModelHelper; |
|
|
|
import com.fr.design.mainframe.alphafine.cell.model.ActionModel; |
|
|
|
import com.fr.design.mainframe.alphafine.cell.model.ActionModel; |
|
|
@ -181,12 +182,17 @@ public class RecentSearchManager implements AlphaFineSearchProvider { |
|
|
|
for (ScoreDoc scoreDoc : scores) { |
|
|
|
for (ScoreDoc scoreDoc : scores) { |
|
|
|
Document document = searcher.doc(scoreDoc.doc); |
|
|
|
Document document = searcher.doc(scoreDoc.doc); |
|
|
|
AlphaCellModel model = CellModelHelper.getModelFromJson(new JSONObject(document.get("cellModel"))); |
|
|
|
AlphaCellModel model = CellModelHelper.getModelFromJson(new JSONObject(document.get("cellModel"))); |
|
|
|
if (model.getType() == CellType.ACTION && !UpdateActionManager.getUpdateActionManager().isEnable(((ActionModel) model).getAction())) { |
|
|
|
if (model.getType() == CellType.ACTION) { |
|
|
|
continue; |
|
|
|
UpdateAction action = UpdateActionManager.getUpdateActionManager().getActionByName(model.getName()); |
|
|
|
|
|
|
|
if (action != null) { |
|
|
|
|
|
|
|
((ActionModel) model).setAction(action); |
|
|
|
|
|
|
|
recentModelList.add(model); |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
recentModelList.add(model); |
|
|
|
recentModelList.add(model); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
FRLoggerFactory.getLogger().error("local search error: " + e.getMessage()); |
|
|
|
FRLoggerFactory.getLogger().error("local search error: " + e.getMessage()); |
|
|
|