コード例 #1
0
  @Override
  public ApprovalBulkRep queryBulkResourceReps(List<URI> ids) {

    Iterator<ApprovalRequest> _dbIterator =
        _dbClient.queryIterativeObjects(getResourceClass(), ids);
    return new ApprovalBulkRep(BulkList.wrapping(_dbIterator, ApprovalMapper.getInstance()));
  }
コード例 #2
0
  @Override
  public ApprovalBulkRep queryFilteredBulkResourceReps(List<URI> ids) {

    Iterator<ApprovalRequest> _dbIterator =
        _dbClient.queryIterativeObjects(getResourceClass(), ids);
    BulkList.ResourceFilter filter = new ApprovalFilter(getUserFromContext(), _permissionsHelper);
    return new ApprovalBulkRep(
        BulkList.wrapping(_dbIterator, ApprovalMapper.getInstance(), filter));
  }