code: @Override
    public boolean moveToTrashAsUser(Path path, final String user) throws IOException {
      return getUserTrash(user).moveToTrash(path);
    }
docs: Move the path to trash as specified user.
  @param path {@link org.apache.hadoop.fs.Path} to move.
  @param user User to move the path as.
  @return true if the move succeeded.
  @throws IOException