SearchTemplate

Version 1.3 - Updated on 10/20/2016

public class SearchTemplate

Helper class for searching for items using the getSearch(SearchTemplate, SortTemplate, Integer, Integer API.

1) To search for all items whose name starts with ‘file’:

SearchTemplate st = new SearchTemplate.Builder().name("file*").build()

2) To search for items by a range of modification dates:

SearchTemplate st = new SearchTemplate.Builder().versionCreated(date1, date2).build();

3) Multiple seach templates can be OR’d together:

SearchTemplate searchTemplate1 = new SearchTemplate.Builder()...build(); SearchTemplate searchTemplate2 = new SearchTemplate.Builder()...build(); SearchTemplate st = new SearchTemplate.Builder().or(searchTemplate1, searchTemplate2).build();

Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.