@Test public void testFindQuery() throws Exception { fedora.cleanUp(); fedora.ingest( getClass().getResource("tree1.xml") ); SearchView instance = new SearchView(storage); List<Item> result = instance.findQuery("tree", "tree", "u", "u", NdkPlugin.MODEL_PERIODICAL, Collections.<String>emptyList()); assertFalse(result.isEmpty()); }
public List<Item> findQuery(String title, String label, String identifier, String owner, String model, Collection<String> hasOwners) throws FedoraClientException, IOException { return findQuery(new Query().setTitle(title).setLabel(label) .setIdentifier(identifier).setOwner(owner).setModel(model) .setHasOwners(hasOwners), "active"); }
SearchView { public List<Item> findQuery(String title, String label, String identifier, String owner, String model, Collection<String> hasOwners) throws FedoraClientException, IOException { return findQuery(new Query().setTitle(title).setLabel(label) .setIdentifier(identifier).setOwner(owner).setModel(model) .setHasOwners(hasOwners), "active"); } }
SearchView { public List<Item> findQuery(String title, String label, String identifier, String owner, String model, Collection<String> hasOwners) throws FedoraClientException, IOException { return findQuery(new Query().setTitle(title).setLabel(label) .setIdentifier(identifier).setOwner(owner).setModel(model) .setHasOwners(hasOwners), "active"); } SearchView(RemoteStorage storage);   SearchView(RemoteStorage storage, int maxLimit); }
SearchView { public List<Item> findQuery(String title, String label, String identifier, String owner, String model, Collection<String> hasOwners) throws FedoraClientException, IOException { return findQuery(new Query().setTitle(title).setLabel(label) .setIdentifier(identifier).setOwner(owner).setModel(model) .setHasOwners(hasOwners), "active"); } SearchView(RemoteStorage storage);   SearchView(RemoteStorage storage, int maxLimit); void setLocale(Locale locale); List<Item> findQuery(String title, String label, String identifier, String owner, String model, Collection<String> hasOwners); List<Item> findQuery(Query q, String status); List<Item> findPhrase(String phrase); List<Item> find(String... pids); List<Item> find(boolean onlyActive, String... pids); List<Item> findDeleted(String... pids); List<Item> find(List<String> pids); List<Item> find(List<String> pids, boolean onlyActive); List<Item> findSortedChildren(String parentPid); List<Item> findChildren(String pid); List<Item> findChildrenHierarchy(String pid); List<Item> findLastCreated(int offset, String model, String user, String sort); List<Item> findLastCreated(int offset, String model, String user, String organization, String username, int limit, String sort); List<Item> findAlphabetical(int offset, String model, String user, String organization, String userName, int limit, String sort); List<Item> findLastModified(int offset, String model, String user, String organization, String username, int limit, String sort); List<Item> countModels(String model, String user, String organization, String username); List<Item> findAllObjects(); List<Item> findReferrers(String pid); List<Item> findByModel(String modelId); List<Item> findByModel(int offset, String modelId); List<Item> findByModel(int offset, String modelId, String orderBy); List<Item> findByModels(String modelId1, String modelId2); List<Item> findByModels(int offset, String modelId1, String modelId2); List<Item> findByModels(int offset, String modelId1, String modelId2, String orderBy); boolean isDeviceInUse(String deviceId); }
SearchView { public List<Item> findQuery(String title, String label, String identifier, String owner, String model, Collection<String> hasOwners) throws FedoraClientException, IOException { return findQuery(new Query().setTitle(title).setLabel(label) .setIdentifier(identifier).setOwner(owner).setModel(model) .setHasOwners(hasOwners), "active"); } SearchView(RemoteStorage storage);   SearchView(RemoteStorage storage, int maxLimit); void setLocale(Locale locale); List<Item> findQuery(String title, String label, String identifier, String owner, String model, Collection<String> hasOwners); List<Item> findQuery(Query q, String status); List<Item> findPhrase(String phrase); List<Item> find(String... pids); List<Item> find(boolean onlyActive, String... pids); List<Item> findDeleted(String... pids); List<Item> find(List<String> pids); List<Item> find(List<String> pids, boolean onlyActive); List<Item> findSortedChildren(String parentPid); List<Item> findChildren(String pid); List<Item> findChildrenHierarchy(String pid); List<Item> findLastCreated(int offset, String model, String user, String sort); List<Item> findLastCreated(int offset, String model, String user, String organization, String username, int limit, String sort); List<Item> findAlphabetical(int offset, String model, String user, String organization, String userName, int limit, String sort); List<Item> findLastModified(int offset, String model, String user, String organization, String username, int limit, String sort); List<Item> countModels(String model, String user, String organization, String username); List<Item> findAllObjects(); List<Item> findReferrers(String pid); List<Item> findByModel(String modelId); List<Item> findByModel(int offset, String modelId); List<Item> findByModel(int offset, String modelId, String orderBy); List<Item> findByModels(String modelId1, String modelId2); List<Item> findByModels(int offset, String modelId1, String modelId2); List<Item> findByModels(int offset, String modelId1, String modelId2, String orderBy); boolean isDeviceInUse(String deviceId);  }