public class EventUtil extends Object
| Constructor and Description |
|---|
EventUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<org.sakaiproject.sitestats.api.event.ToolInfo> |
addMissingAdditionalToolIds(List<org.sakaiproject.sitestats.api.event.ToolInfo> eventRegistrySubset,
List<org.sakaiproject.sitestats.api.event.ToolInfo> fullEventRegistry)
Add missing events not in list (eg, list from Preferences) but present on the full Event Registry.
|
static List<org.sakaiproject.sitestats.api.event.ToolInfo> |
addToEventRegistry(List<org.sakaiproject.sitestats.api.event.ToolInfo> additions,
boolean replaceEventsForTool,
List<org.sakaiproject.sitestats.api.event.ToolInfo> eventRegistry)
Add custom additions to Event Registry.
|
static List<org.sakaiproject.sitestats.api.event.ToolInfo> |
getIntersectionWithAvailableToolsInSakaiInstallation(org.sakaiproject.tool.api.ToolManager M_tm,
List<org.sakaiproject.sitestats.api.event.ToolInfo> eventRegistrySubset)
Intersect an event registry with tools available in (whole) Sakai installation.
|
static List<org.sakaiproject.sitestats.api.event.ToolInfo> |
getIntersectionWithAvailableToolsInSite(org.sakaiproject.site.api.SiteService M_ss,
List<org.sakaiproject.sitestats.api.event.ToolInfo> eventRegistrySubset,
String siteId)
Intersect an event registry subset with tools available in site.
|
static List<org.sakaiproject.sitestats.api.event.ToolInfo> |
getUnionWithAllDefaultToolEvents(List<org.sakaiproject.sitestats.api.event.ToolInfo> eventRegistrySubset,
List<org.sakaiproject.sitestats.api.event.ToolInfo> fullEventRegistry)
Union between a given event registry with the full Event Registry.
|
static List<org.sakaiproject.sitestats.api.event.ToolInfo> |
removeFromEventRegistry(List<org.sakaiproject.sitestats.api.event.ToolInfo> removals,
List<org.sakaiproject.sitestats.api.event.ToolInfo> eventRegistry)
Remove specified custom additions from Event Registry.
|
public static List<org.sakaiproject.sitestats.api.event.ToolInfo> addMissingAdditionalToolIds(List<org.sakaiproject.sitestats.api.event.ToolInfo> eventRegistrySubset, List<org.sakaiproject.sitestats.api.event.ToolInfo> fullEventRegistry)
list - n Event Registry subsetpublic static List<org.sakaiproject.sitestats.api.event.ToolInfo> getIntersectionWithAvailableToolsInSite(org.sakaiproject.site.api.SiteService M_ss, List<org.sakaiproject.sitestats.api.event.ToolInfo> eventRegistrySubset, String siteId)
eventRegistrySubset - An Event Registry subset to intersect with.siteId - The id of the site.public static List<org.sakaiproject.sitestats.api.event.ToolInfo> getIntersectionWithAvailableToolsInSakaiInstallation(org.sakaiproject.tool.api.ToolManager M_tm, List<org.sakaiproject.sitestats.api.event.ToolInfo> eventRegistrySubset)
eventRegistrySubset - The Event Registry to intersect with.siteId - The id of the site.public static List<org.sakaiproject.sitestats.api.event.ToolInfo> getUnionWithAllDefaultToolEvents(List<org.sakaiproject.sitestats.api.event.ToolInfo> eventRegistrySubset, List<org.sakaiproject.sitestats.api.event.ToolInfo> fullEventRegistry)
eventRegistrySubset - The Event Registry to union with.fullEventRegistry - The full Event Registry.siteId - The id of the site.public static List<org.sakaiproject.sitestats.api.event.ToolInfo> addToEventRegistry(List<org.sakaiproject.sitestats.api.event.ToolInfo> additions, boolean replaceEventsForTool, List<org.sakaiproject.sitestats.api.event.ToolInfo> eventRegistry)
additions - Custom Event Registry additions.replaceEventsForTool - If tool exists in full Event Registry, replace its events with the ones in additions.eventRegistry - The full Event Registry.public static List<org.sakaiproject.sitestats.api.event.ToolInfo> removeFromEventRegistry(List<org.sakaiproject.sitestats.api.event.ToolInfo> removals, List<org.sakaiproject.sitestats.api.event.ToolInfo> eventRegistry)
additions - Custom Event Registry removals.eventRegistry - The full Event Registry.Copyright © 2006-2014 Universidade Fernando Pessoa. All Rights Reserved.