public class EventLogTestWhitelistPersistence extends BaseEventLogWhitelistPersistence
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TEST_RULE |
static java.lang.String |
TEST_WHITE_LIST_DATA_FILE |
FUS_WHITELIST_PATH
Constructor and Description |
---|
EventLogTestWhitelistPersistence(java.lang.String recorderId) |
Modifier and Type | Method and Description |
---|---|
static void |
addTestGroup(java.lang.String recorderId,
LocalWhitelistGroup group) |
void |
cleanup() |
static FUStatisticsWhiteListGroupsService.WLGroup |
createGroupWithCustomRules(java.lang.String groupId,
java.lang.String rules) |
static FUStatisticsWhiteListGroupsService.WLGroup |
createTestGroup(java.lang.String groupId,
java.util.Set<java.lang.String> eventData) |
java.lang.String |
getCachedWhitelist() |
java.io.File |
getWhitelistFile() |
static FUStatisticsWhiteListGroupsService.WLGroups |
loadTestWhitelist(BaseEventLogWhitelistPersistence persistence) |
static void |
saveNewGroup(FUStatisticsWhiteListGroupsService.WLGroup group,
FUStatisticsWhiteListGroupsService.WLGroups whitelist,
java.io.File file) |
void |
updateTestGroups(java.util.List<LocalWhitelistGroup> groups) |
getDefaultWhitelistFile
public static final java.lang.String TEST_RULE
public static final java.lang.String TEST_WHITE_LIST_DATA_FILE
public EventLogTestWhitelistPersistence(java.lang.String recorderId)
public java.lang.String getCachedWhitelist()
getCachedWhitelist
in class BaseEventLogWhitelistPersistence
public void cleanup()
public static FUStatisticsWhiteListGroupsService.WLGroup createGroupWithCustomRules(java.lang.String groupId, java.lang.String rules)
public static void addTestGroup(java.lang.String recorderId, LocalWhitelistGroup group) throws java.io.IOException
java.io.IOException
public static void saveNewGroup(FUStatisticsWhiteListGroupsService.WLGroup group, FUStatisticsWhiteListGroupsService.WLGroups whitelist, java.io.File file) throws java.io.IOException
java.io.IOException
public static FUStatisticsWhiteListGroupsService.WLGroups loadTestWhitelist(BaseEventLogWhitelistPersistence persistence)
public static FUStatisticsWhiteListGroupsService.WLGroup createTestGroup(java.lang.String groupId, java.util.Set<java.lang.String> eventData)
public java.io.File getWhitelistFile() throws java.io.IOException
java.io.IOException
public void updateTestGroups(java.util.List<LocalWhitelistGroup> groups) throws java.io.IOException
java.io.IOException