/**
  * Eliminar un Tarea Dado el $tareaId
  * 
  * @param $tareaId
  */
 public function removeTarea($tareaId)
 {
     $tarea = new Tarea();
     $tarea->setId($tareaId);
     # Validamos los campos
     if (!EntityValidator::validateId($tareaId)) {
         throw new Exception(SALAS_COMP_ALERT_E_VALIDATION_FAIL, $this->ID + 150);
     }
     # Verificamos que la entidad exista.
     if (!$this->tareaBean->getTarea($tarea)) {
         throw new Exception(SALAS_COMP_ALERT_E_ENTITY_NOT_FOUND_FAIL, $this->ID + 151);
     }
     # Verificamos que la entidad no esté siendo utilziada en alguna otra.
     # Eliminamos la entidad
     if (!$this->tareaBean->removeTarea($tarea)) {
         throw new Exception(SALAS_COMP_ALERT_E_PERSISTENCE_REMOVE_FAIL, $this->ID + 152);
     }
 }
 public static function toEntity(TareaDTO $tareaDTO)
 {
     $tarea = new Tarea();
     $tarea->setId($tareaDTO->getId());
     $tarea->setTareaDescripcion($tareaDTO->getTareaDescripcion());
     $tarea->setTareaComentarios($tareaDTO->getTareaComentarios());
     $tarea->setTareaFechaInicio($tareaDTO->getTareaFechaInicio());
     $tarea->setTareaFechaFin($tareaDTO->getTareaFechaFin());
     $tarea->setTareaMonitor($tareaDTO->getTareaMonitor());
     return $tarea;
 }