<?php
import("com.laurus.core.coreent.AbstractMergerBeanCollection");
import("com.laurus.core.coreent.AbstractMergerBean");
import("com.laurus.core.image.ent.*");
import("com.laurus.erp.ent.*");
import("com.laurus.main.auth.ent.*");
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of MarkCampMerged
 *
 * @author Shripad
 */
class MarkCampMerged extends AbstractMergerBean{
    /**
     * @columnName CU_CAT_ID
     * @type int
     * @primary 
     */
    private $cuCatId;
    /**
     * @columnName CU_CAT_NAME
     * @type string
     * 
     */
    private $cuCatName;
    /**
     * @columnName CU_CAT_DESC
     * @type string 
     */
    private $cuCatDesc;
    /**
     * @columnName CU_CREATED_DATE
     * @type string 
     * @jsonDate
     */
    private $cuCatCreatedDate;
    
    /**
     * @columnName CU_IS_USER_GENERATED
     * @type int 
     * @searchable
     */
    private $isUserGenerated;
    
    /**
     * @compositeEntity CU_IMAGE_ID
     * @compositeType ExtendedImage
     */
    private $image;
    
     /**
     * @columnName CU_IS_VISIBLE
     * @type int 
     * @searchable
     */
    private $isVisible;
    /**
     * @columnName CU_TYPE
     * @type int 
     * @searchable
     */
    private $cuType;
    /**
     * @columnName IMAGE_ID
     * @type int
     * @primary 
     */
    private $imageId;
    /**
     * @columnName IMAGE_PATH
     * @type int 
     */
    private $imagePath;
    /**
     * @columnName IMAGE_NAME
     * @type string 
     */
    private $imageName;
    /**
     * @columnName IMAGE_DESC
     * @type string 
     */
    private $imageDesc;
    /**
     * @columnName IMAGE_CREATED_DATE
     * @type string
     * @jsonDate
     */
    private $imageCreatedDate;
    public function getImagePath() {
        return $this->imagePath;
    }

    public function getImageName() {
        return $this->imageName;
    }

    public function getImageDesc() {
        return $this->imageDesc;
    }

    public function getImageCreatedDate() {
        return $this->imageCreatedDate;
    }

        
    public function getCuType() {
        return $this->cuType;
    }

    public function setCuType($cuType) {
        $this->cuType = $cuType;
    }

    public function getIsVisible() {
        return $this->isVisible;
    }

    public function setIsVisible($isVisible) {
        $this->isVisible = $isVisible;
    }
    
    public function getIsUserGenerated() {
        return $this->isUserGenerated;
    }

    public function setIsUserGenerated($isUserGenerated) {
        $this->isUserGenerated = $isUserGenerated;
    }

        
    public function getImage() {
        return $this->image;
    }

    public function setImage($image) {
        $this->image = $image;
    }

        
    public function getCuCatId() {
        return $this->cuCatId;
    }

    public function getCuCatName() {
        return $this->cuCatName;
    }

    public function getCuCatDesc() {
        return $this->cuCatDesc;
    }

    public function getCuCatCreatedDate() {
        return $this->cuCatCreatedDate;
    }

    public function getImageId() {
        return $this->imageId;
    }

    public function setCuCatId($cuCatId) {
        $this->cuCatId = $cuCatId;
    }

    public function setCuCatName($cuCatName) {
        $this->cuCatName = $cuCatName;
    }

    public function setCuCatDesc($cuCatDesc) {
        $this->cuCatDesc = $cuCatDesc;
    }

    public function setCuCatCreatedDate($cuCatCreatedDate) {
        $this->cuCatCreatedDate = $cuCatCreatedDate;
    }

    public function setImageId($imageId) {
        $this->imageId = $imageId;
    }
    
    public function getActualResponseBean() {
        $cuCat=new CuratedCategory();
        $cuCat->setCuCatId($this->cuCatId);
        $cuCat->setCuCatName($this->cuCatName);
        $cuCat->setCuCatCreatedDate($this->cuCatCreatedDate);
        $cuCat->setIsUserGenerated($this->isUserGenerated);
        $cuCat->setIsVisible($this->isVisible);
        $image=new Image();
        $image->setId($this->imageId);
        $image->setImageName($this->imageName);
        $image->setCreatedDate($this->imageCreatedDate);
        $image->setImagePath($_SERVER['V_PATH'] . "content/" . base64_encode($this->imageId));
        $cuCat->setImage($image);
        return $cuCat;
    }
    //put your code here
}

?>
