public function getCatalogueDetail($request)
 {
     $json = json_encode($request->parameters);
     $contentDownloadHistory = new ContentDownloadHistory();
     $jsonObj = json_decode($json);
     $jsonMessage = $contentDownloadHistory->validateJsonForCatalogueDetail($jsonObj);
     if ($jsonMessage != Message::SUCCESS) {
         $response = array("status" => "ERROR", "status_code" => '400', 'msgs' => $jsonMessage);
         $this->outputError($response);
         return;
     }
     if (!$contentDownloadHistory->setValuesFromJsonObj($jsonObj)) {
         $response = array("status" => "ERROR", "status_code" => '400', 'msgs' => Message::ERROR_INVAID_REQUEST_BODY);
         $this->outputError($response);
         return;
     }
     if (trim($contentDownloadHistory->cd_cd_id) == '') {
         $response = array("status" => "ERROR", "status_code" => '400', 'msgs' => Message::ERROR_BLANK_CD_ID);
         $this->outputError($response);
         return;
     }
     $catalogueDetailObj = $contentDownloadHistory->getCatalogueDetailById($contentDownloadHistory->cd_cd_id);
     if (!empty($catalogueDetailObj)) {
         $response = array("status" => "SUCCESS-BUSINESS", "status_code" => '200', 'catalogueDetail' => $catalogueDetailObj);
         $this->outputSuccess($response);
         return;
     } else {
         $response = array("status" => "ERROR-BUSINESS", "status_code" => '404', 'msgs' => 'No catalogue detail information available !.');
         $this->outputError($response);
         return;
     }
 }