class PermissivePermissionCheckProvider extends AbstractPermissionCheckProvider implements PermissionCheckProvider {

  @Override
  public PermissionCheckProviderResult isPermitted(PermissionCheckProviderRequest request) {
    ArgumentChecker.notNull(request, "request");
    Map<String, Boolean> result = new HashMap<>(request.getRequestedPermissions().size());
    for (String permission : request.getRequestedPermissions()) {
      result.put(permission, true);
    }
    return PermissionCheckProviderResult.of(result);
  }

}