public class LittleHelpersPlugin extends PluginActivator implements LittleHelpersService
Modifier and Type | Field and Description |
---|---|
private Logger |
log |
(package private) WorkspacesService |
wsService
private final static String CHILD_URI = "dm4.core.child";
private final static String PARENT_URI = "dm4.core.parent";
private final static String AGGREGATION = "dm4.core.aggregation";
|
bundle, dms
Constructor and Description |
---|
LittleHelpersPlugin() |
Modifier and Type | Method and Description |
---|---|
private List<Topic> |
findSearchableUnits(List<? extends Topic> topics) |
List<SuggestionViewModel> |
getTopicSuggestions(String query) |
List<Topic> |
getTopicSuggestions(String query,
String typeUri) |
private Object |
getViewConfig(TopicType topicType,
String setting)
Read out a view configuration setting.
|
private boolean |
searchableAsUnit(Topic topic) |
getBundleContext, getPluginName, getStaticResource, getUri, init, preInstall, publishFileSystem, serviceArrived, serviceGone, setCoreService, shutdown, start, stop, toString
WorkspacesService wsService
public LittleHelpersPlugin()
public List<SuggestionViewModel> getTopicSuggestions(String query)
getTopicSuggestions
in interface LittleHelpersService
public List<Topic> getTopicSuggestions(String query, String typeUri)
getTopicSuggestions
in interface LittleHelpersService
private List<Topic> findSearchableUnits(List<? extends Topic> topics)
private boolean searchableAsUnit(Topic topic)
private Object getViewConfig(TopicType topicType, String setting)
Compare to client-side counterpart: function get_view_config() in webclient.js
topicType
- The topic type whose view configuration is read out.setting
- Last component of the setting URI, e.g. "icon".null
if there is no such settingCopyright © 2016. All Rights Reserved.