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