DynamicDAO.save(bin1);
DynamicDAO.save(bin2);
/* Filter "Title is Title": Mark Read, Sticky, Label, Copy */
{
ISearch search = createTitleSearch("Title");
ISearchFilter filter = fFactory.createSearchFilter(null, search, "Title is Title");
filter.setEnabled(true);
filter.setOrder(0);
filter.addAction(fFactory.createFilterAction(MARK_READ_ID));
filter.addAction(fFactory.createFilterAction(MARK_STICKY_ID));
IFilterAction labelAction = fFactory.createFilterAction(LABEL_NEWS_ID);
labelAction.setData(label.getId());
filter.addAction(labelAction);
IFilterAction copyAction = fFactory.createFilterAction(COPY_NEWS_ID);
copyAction.setData(new Long[] { bin1.getId(), bin2.getId() });
filter.addAction(copyAction);
DynamicDAO.save(filter);
}
/* Filter "Title is Other": Move */
{
ISearch search = createTitleSearch("Other");
ISearchFilter filter = fFactory.createSearchFilter(null, search, "Title is Other");
filter.setEnabled(true);
filter.setOrder(1);