class PermissionCheckerImpl implements PermissionChecker {

  @Override
  public boolean hasPermission(String user, String domain, String instance, String action)
      throws ServerException, NotFoundException, ConflictException {
    return permissionsManager.exists(user, domain, instance, action)
        || permissionsManager.exists("*", domain, instance, action);
  }

  @Inject public  PermissionCheckerImpl(PermissionsManager permissionsManager);

}