use of com.emc.storageos.api.service.impl.response.SearchedResRepList in project coprhd-controller by CoprHD.
the class TaggedResource method getTagSearchResults.
/**
* Get search results by tag in zone (default) or in a specific tenant level
*
* @return SearchedResRepList
*/
protected SearchedResRepList getTagSearchResults(String tag, URI tenant) {
SearchedResRepList resRepList = new SearchedResRepList(getResourceType());
_dbClient.queryByConstraint(PrefixConstraint.Factory.getTagsPrefixConstraint(getResourceClass(), tag, tenant), resRepList);
return resRepList;
}
use of com.emc.storageos.api.service.impl.response.SearchedResRepList in project coprhd-controller by CoprHD.
the class VirtualPoolService method filterResultsList.
/**
* Filters the SearchedResRepList by VirtualPoolType (e.g., block or file)
*
* @param user the current user
* @param list a list of resource matching the search
* @return a list filtered by virtual pool type
*/
protected SearchedResRepList filterResultsList(StorageOSUser user, SearchedResRepList list) {
SearchedResRepList filteredResRepList = new SearchedResRepList();
Iterator<SearchResultResourceRep> _queryResultIterator = list.iterator();
ResRepFilter<SearchResultResourceRep> resrepFilter = new VirtualPoolTypeFilter<SearchResultResourceRep>(user, _permissionsHelper, this.getVirtualPoolType());
filteredResRepList.setResult(new FilterIterator<SearchResultResourceRep>(_queryResultIterator, resrepFilter));
return filteredResRepList;
}
use of com.emc.storageos.api.service.impl.response.SearchedResRepList in project coprhd-controller by CoprHD.
the class ExportGroupService method getProjectSearchResults.
/**
* Get search results by project alone.
*
* @return SearchedResRepList
*/
@Override
protected SearchedResRepList getProjectSearchResults(URI projectId) {
SearchedResRepList resRepList = new SearchedResRepList(getResourceType());
_dbClient.queryByConstraint(ContainmentConstraint.Factory.getProjectExportGroupConstraint(projectId), resRepList);
return resRepList;
}
use of com.emc.storageos.api.service.impl.response.SearchedResRepList in project coprhd-controller by CoprHD.
the class FileQuotaDirectoryService method getProjectSearchResults.
/**
* Get search results by project alone.
*
* @return SearchedResRepList
*/
@Override
protected SearchedResRepList getProjectSearchResults(URI projectId) {
SearchedResRepList resRepList = new SearchedResRepList(getResourceType());
_dbClient.queryByConstraint(ContainmentConstraint.Factory.getProjectFileshareConstraint(projectId), resRepList);
return resRepList;
}
use of com.emc.storageos.api.service.impl.response.SearchedResRepList in project coprhd-controller by CoprHD.
the class BucketService method getProjectSearchResults.
/**
* Get search results by project alone.
*
* @return SearchedResRepList
*/
@Override
protected SearchedResRepList getProjectSearchResults(URI projectId) {
SearchedResRepList resRepList = new SearchedResRepList(getResourceType());
_dbClient.queryByConstraint(ContainmentConstraint.Factory.getProjectBucketConstraint(projectId), resRepList);
return resRepList;
}
Aggregations