/* 6) Match All News - Enabled - Label News */
filter = fFactory.createSearchFilter(null, null, "Filter 6");
filter.setMatchAllNews(true);
filter.setOrder(5);
IFilterAction action = fFactory.createFilterAction(LabelNewsAction.ID);
action.setData(fImportantLabel.getId());
filter.addAction(action);
DynamicDAO.save(filter);
/* 7) Match All News - Enabled - Label News + Move News + Play Sound */
filter = fFactory.createSearchFilter(null, null, "Filter 7");
filter.setMatchAllNews(true);
filter.setOrder(5);
action = fFactory.createFilterAction(LabelNewsAction.ID);
action.setData(fImportantLabel.getId());
filter.addAction(action);
action = fFactory.createFilterAction(MoveNewsAction.ID);
action.setData(new Long[] { fNewsBin.getId() });
filter.addAction(action);
action = fFactory.createFilterAction("org.rssowl.ui.PlaySoundAction");
action.setData("C:\\ProgramData\\Microsoft\\Windows & Help\\Start Menu");
filter.addAction(action);
DynamicDAO.save(filter);
/* 8) Filter with Properties as Data */
filter = fFactory.createSearchFilter(null, null, "Filter 8");
filter.setMatchAllNews(true);
filter.setOrder(5);
action = fFactory.createFilterAction("org.rssowl.ui.PlaySoundAction");
Properties props = new Properties();
props.setProperty("foo", "bar");
props.setProperty("hello world", " world hello ");
props.setProperty("<some xml>tags</a>", "foo & bar");
action.setData(props);
filter.addAction(action);
DynamicDAO.save(filter);
/* 9) Location is DELETED - Enabled - Mark Read */