use of com.vmware.vim25.HostDatastoreBrowserSearchSpec in project cloudstack by apache.
the class HostDatastoreBrowserMO method searchDatastore.
public HostDatastoreBrowserSearchResults searchDatastore(String datastorePath, String fileName, boolean caseInsensitive) throws Exception {
HostDatastoreBrowserSearchSpec spec = new HostDatastoreBrowserSearchSpec();
spec.setSearchCaseInsensitive(caseInsensitive);
spec.getMatchPattern().add(fileName);
return searchDatastore(datastorePath, spec);
}
use of com.vmware.vim25.HostDatastoreBrowserSearchSpec in project cloudstack by apache.
the class HostDatastoreBrowserMO method searchDatastoreSubFolders.
public ArrayList<HostDatastoreBrowserSearchResults> searchDatastoreSubFolders(String datastorePath, String fileName, boolean caseInsensitive) throws Exception {
HostDatastoreBrowserSearchSpec spec = new HostDatastoreBrowserSearchSpec();
spec.setSearchCaseInsensitive(caseInsensitive);
spec.getMatchPattern().add(fileName);
return searchDatastoreSubFolders(datastorePath, spec);
}
Aggregations