public class LittleHelpersPlugin extends PluginActivator implements LittleHelpersService
Modifier and Type | Field and Description |
---|---|
private Logger |
log |
private static String |
PROP_URI_CREATED |
private static String |
PROP_URI_MODIFIED |
(package private) TimeService |
timeService |
private HashMap<String,TopicType> |
viewConfigTypeCache |
(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 void |
enrichTopicModelAboutCreationTimestamp(Topic resource) |
private void |
enrichTopicModelAboutIconConfigURL(Topic element) |
private void |
enrichTopicModelAboutModificationTimestamp(Topic resource) |
private Collection<Topic> |
fetchAllTopicsInTimerange(String type,
long since,
long to) |
private List<Topic> |
findSearchableUnits(List<? extends Topic> topics)
Taken from the WebclientPlugin.java by Jörg Richter
|
String |
getStandardTopicsInTimeRange(String type,
long since,
long to)
Fetches standard topics by time-range and time-value (created || modified).
|
String |
getTopicIndexForTimeRange(String type,
long since,
long to)
Getting composites of all standard topics in given timerange.
|
ArrayList<Topic> |
getTopicListSortedByCreationTime(ArrayList<Topic> all) |
ArrayList<Topic> |
getTopicListSortedByModificationTime(ArrayList<Topic> all) |
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
private static final String PROP_URI_CREATED
private static final String PROP_URI_MODIFIED
private HashMap<String,TopicType> viewConfigTypeCache
WorkspacesService wsService
TimeService timeService
public LittleHelpersPlugin()
public List<SuggestionViewModel> getTopicSuggestions(String query)
getTopicSuggestions
in interface LittleHelpersService
public List<Topic> getTopicSuggestions(String query, String typeUri)
getTopicSuggestions
in interface LittleHelpersService
public String getStandardTopicsInTimeRange(String type, long since, long to)
getStandardTopicsInTimeRange
in interface LittleHelpersService
public String getTopicIndexForTimeRange(String type, long since, long to)
getTopicIndexForTimeRange
in interface LittleHelpersService
public ArrayList<Topic> getTopicListSortedByCreationTime(ArrayList<Topic> all)
getTopicListSortedByCreationTime
in interface LittleHelpersService
public ArrayList<Topic> getTopicListSortedByModificationTime(ArrayList<Topic> all)
getTopicListSortedByModificationTime
in interface LittleHelpersService
private Collection<Topic> fetchAllTopicsInTimerange(String type, long since, long to)
private void enrichTopicModelAboutIconConfigURL(Topic element)
private void enrichTopicModelAboutCreationTimestamp(Topic resource)
private void enrichTopicModelAboutModificationTimestamp(Topic resource)
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.