@Override public QuotaDirectoryBulkRep queryBulkResourceReps(List<URI> ids) { Iterator<QuotaDirectory> _dbIterator = _dbClient.queryIterativeObjects(getResourceClass(), ids); return new QuotaDirectoryBulkRep( BulkList.wrapping(_dbIterator, MapQuotaDirectory.getInstance())); }
@Override public ApprovalBulkRep queryBulkResourceReps(List<URI> ids) { Iterator<ApprovalRequest> _dbIterator = _dbClient.queryIterativeObjects(getResourceClass(), ids); return new ApprovalBulkRep(BulkList.wrapping(_dbIterator, ApprovalMapper.getInstance())); }
@Override protected BucketBulkRep queryFilteredBulkResourceReps(List<URI> ids) { Iterator<Bucket> _dbIterator = _dbClient.queryIterativeObjects(getResourceClass(), ids); BulkList.ResourceFilter<Bucket> filter = new BulkList.ProjectResourceFilter<Bucket>(getUserFromContext(), _permissionsHelper); return new BucketBulkRep(BulkList.wrapping(_dbIterator, MapBucket.getInstance(), filter)); }
@Override public StorageProviderBulkRep queryBulkResourceReps(List<URI> ids) { Iterator<StorageProvider> _dbIterator = _dbClient.queryIterativeObjects(getResourceClass(), ids); return new StorageProviderBulkRep( BulkList.wrapping(_dbIterator, MapStorageProvider.getInstance())); }
@Override public VcenterBulkRep queryFilteredBulkResourceReps(List<URI> ids) { Iterator<Vcenter> _dbIterator = _dbClient.queryIterativeObjects(getResourceClass(), ids); BulkList.ResourceFilter filter = new BulkList.VcenterFilter(getUserFromContext(), _permissionsHelper); return new VcenterBulkRep(BulkList.wrapping(_dbIterator, MapVcenter.getInstance(), filter)); }
@Override public BucketBulkRep queryBulkResourceReps(List<URI> ids) { Iterator<Bucket> _dbIterator = _dbClient.queryIterativeObjects(getResourceClass(), ids); return new BucketBulkRep(BulkList.wrapping(_dbIterator, MapBucket.getInstance())); }