Package de.valtech.aecu.core.omnisearch
Class HistorySearchItem
- java.lang.Object
-
- de.valtech.aecu.core.model.history.HistoryDataItem
-
- de.valtech.aecu.core.omnisearch.HistorySearchItem
-
@Model(adaptables=org.apache.sling.api.SlingHttpServletRequest.class) public class HistorySearchItem extends HistoryDataItem
Model class for a single history item in omni search.- Author:
- Roland Gruber
-
-
Field Summary
Fields Modifier and Type Field Description protected StringsearchTerm-
Fields inherited from class de.valtech.aecu.core.model.history.HistoryDataItem
history
-
-
Constructor Summary
Constructors Constructor Description HistorySearchItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFragment()Returns a text fragment that matches the search term.StringgetRunPath()Returns the base path of the run.StringgetSelectedScript()Returns the selected script in a run.protected de.valtech.aecu.api.service.HistoryEntryreadHistory()protected de.valtech.aecu.api.service.ExecutionResultreadSingleResult()Reads the single execution result.voidsetup()-
Methods inherited from class de.valtech.aecu.core.model.history.HistoryDataItem
getDate, getDuration, getPath, getScriptCount, getStatusColor, getStatusIcon
-
-
-
-
Field Detail
-
searchTerm
protected String searchTerm
-
-
Method Detail
-
setup
@PostConstruct public void setup()
- Overrides:
setupin classHistoryDataItem
-
readHistory
protected de.valtech.aecu.api.service.HistoryEntry readHistory()
-
readSingleResult
protected de.valtech.aecu.api.service.ExecutionResult readSingleResult()
Reads the single execution result.- Returns:
- result
-
getFragment
public String getFragment()
Returns a text fragment that matches the search term.- Returns:
- fragment
-
getSelectedScript
public String getSelectedScript()
Returns the selected script in a run.- Returns:
- script path
-
getRunPath
public String getRunPath()
Returns the base path of the run.- Returns:
- run path
-
-