OCA\Richdocuments\Controller\DocumentController::serve PHP Method

serve() public method

public serve ( $esId )
    public function serve($esId)
    {
        $session = new Db\Session();
        $session->load($esId);
        $filename = $session->getGenesisUrl() ? $session->getGenesisUrl() : '';
        return new DownloadResponse($this->request, $session->getOwner(), $filename);
    }