Gets a request that inform the server that a file was previewed.
This makes the file to be included on the recents list.

@param  fileId
@return request to inform the server that a file was previewed
515262
public BoxRequestsFile.FilePreviewed getFilePreviewedRequest(String fileId) {
        return new BoxRequestsFile.FilePreviewed(fileId, getPreviewFileUrl(), mSession);
    }
824671
private List<Object> getFilePreviews(final String[] fileList, final String locationFull,
      final IStreamProvider streamProvider, final boolean renderResultsAsHtml) {
    final List<Object> files = new ArrayList<>();
    InputStream csvInputStream = null;

    try {
      for (final String fileName : fileList) {
        final Map<String, Object> file = new HashMap<>();
        file.put("name", fileName);

        final String filePath = locationFull + "/" + fileName;
        csvInputStream = streamProvider.getFileInputStream(filePath);
        final Scanner rowScanner = new Scanner(csvInputStream, StandardCharsets.UTF_8.toString());

        final List<Object> lines = new ArrayList<>();
        int lineNumber = 0;
        while (rowScanner.hasNextLine()
            && lineNumber < ReportalMailCreator.NUM_PREVIEW_ROWS) {
          final String csvLine = rowScanner.nextLine();
          final String[] data = csvLine.split("\",\"");
          final List<String> line = new ArrayList<>();
          for (final String item : data) {
            String column = item.replace("\"", "");
            if (!renderResultsAsHtml) {
              column = StringEscapeUtils.escapeHtml(column);
            }
            line.add(column);
          }
          lines.add(line);
          lineNumber++;
        }

        file.put("content", lines);

        if (rowScanner.hasNextLine()) {
          file.put("hasMore", true);
        }

        files.add(file);
        rowScanner.close();
      }
    } catch (final Exception e) {
      logger.debug("Error encountered while processing files in "
          + locationFull, e);
    } finally {
      IOUtils.closeQuietly(csvInputStream);
    }

    return files;
  }
824371
public BoxRequestsFile.UpdateFile getUpdateRequest(String id) {
        BoxRequestsFile.UpdateFile request = new BoxRequestsFile.UpdateFile(id, getFileInfoUrl(id), mSession);
        return request;
    }
392452
public static String getWebViewLink(Drive drive, String fileId) {
    try {
      return getWebViewLink(getFile(drive, fileId));
    } catch (IOException e) {
      logger.log(Level.SEVERE, String.format( "Failed to build Google Drive URL for file %s",  fileId), e);
    }
    
    return null;
  }
624163
public static Request forFile(File file) {
        String url = Uri.fromFile(file).toString();
        return new Request(url).addFlag(Flag.SKIP_DISK_CACHE);
    }
110078
public BoxRequestsFile.UpdateFile getRenameRequest(String id, String newName) {
        BoxRequestsFile.UpdateFile request = new BoxRequestsFile.UpdateFile(id, getFileInfoUrl(id), mSession);
        request.setName(newName);
        return request;
    }
1272350
public BoxRequestsFile.AddCommentToFile getAddCommentRequest(String fileId, String message) {
        BoxRequestsFile.AddCommentToFile request = new BoxRequestsFile.AddCommentToFile(fileId, message, getCommentUrl(), mSession);
        return request;
    }
1247696
public BoxRequestsBookmark.GetBookmarkInfo getInfoRequest(final String id) {
        BoxRequestsBookmark.GetBookmarkInfo request = new BoxRequestsBookmark.GetBookmarkInfo(id, getBookmarkInfoUrl(id), mSession);
        return request;
    }
902126
RequestQueue<ReadRequest> getReadRequestQueue(FileIOChannel.ID channelID) {
		return this.readers[channelID.getThreadNum()].requestQueue;
	}
991132
public BoxRequestsFolder.GetFolderInfo getInfoRequest(String id) {
        BoxRequestsFolder.GetFolderInfo request = new BoxRequestsFolder.GetFolderInfo(id, getFolderInfoUrl(id), mSession);
        return request;
    }
184038
public static File retrieve(String id, Map<String, Object> params, RequestOptions options)
      throws StripeException {
    return request(RequestMethod.GET, instanceUrl(File.class, id), params, File.class, options);
  }
1272531
public BoxRequestsFile.DeleteFile getDeleteRequest(String id) {
        BoxRequestsFile.DeleteFile request = new BoxRequestsFile.DeleteFile(id, getFileInfoUrl(id), mSession);
        return request;
    }
1131003
static public FileId getInstance(String id) throws DaoManagerException {
		if (id!=null && FileConnector.exists(id)){
			return new FileId(id,null);
		} else {
			return null;
		}
	}
438940
def get_preview(path)
      resp, body = content_request('/files/get_preview', path: path)
      return FileMetadata.new(resp), body
    end
500564
public BoxRequestsFolder.UpdateSharedFolder getCreateSharedLinkRequest(String id) {
        BoxRequestsFolder.UpdateSharedFolder request = new BoxRequestsFolder.UpdateSharedFolder(id, getFolderInfoUrl(id), mSession)
                .setAccess(null);
        return request;
    }
23691
public UploadFile getUploadFile(HttpServletRequest request, String id) {
    UploadFile uploadFile = null;
    Debug.logVerbose("[JdonFramework]--> getUploadFile session filter id=" + id, module);
    try {
      uploadFile = getUploadFileFromSession(request, id);
      if (uploadFile == null) {
        uploadFile = imageFilter.getUploadFile(request, id);
      }
    } catch (Exception ex) {
      Debug.logWarning(" getUploadFile error" + ex, module);

    }
    return uploadFile;
  }
104155
public function get_file_by_id($fileid) {
        global $DB;

        $sql = "SELECT ".self::instance_sql_fields('f', 'r')."
                  FROM {files} f
             LEFT JOIN {files_reference} r
                       ON f.referencefileid = r.id
                 WHERE f.id = ?";
        if ($filerecord = $DB->get_record_sql($sql, array($fileid))) {
            return $this->get_file_instance($filerecord);
        } else {
            return false;
        }
    }