Examples of countAdd()


Examples of org.osforce.connect.entity.commons.Statistic.countAdd()

    Question question = questionService.getQuestion(questionId);
    Statistic statistic = statisticService.getStatistic(Statistic.TYPE_VIEW, questionId, Question.NAME);
    if(statistic==null) {
      statistic = new Statistic(Statistic.TYPE_VIEW, questionId, Question.NAME);
    }
    Long views = statistic.countAdd();
    statistic.setProjectId(question.getProjectId());
    statisticService.createStatistic(statistic);
    //
    question.setViews(views);
    questionService.updateQuestion(question);
View Full Code Here

Examples of org.osforce.connect.entity.commons.Statistic.countAdd()

    Post post = postService.getPost(postId);
    Statistic statistic = statisticService.getStatistic(Statistic.TYPE_VIEW, postId, Post.NAME);
    if(statistic==null) {
      statistic = new Statistic(Statistic.TYPE_VIEW, postId, Post.NAME);
    }
    statistic.countAdd();
    statistic.setProjectId(post.getProjectId());
    statisticService.createStatistic(statistic);
  }
}
View Full Code Here

Examples of org.osforce.connect.entity.commons.Statistic.countAdd()

    Topic topic = topicService.getTopic(topicId);
    Statistic statistic = statisticService.getStatistic(Statistic.TYPE_VIEW, topicId, Topic.NAME);
    if(statistic==null) {
      statistic = new Statistic(Statistic.TYPE_VIEW, topicId, Topic.NAME);
    }
    statistic.countAdd();
    statistic.setProjectId(topic.getForum().getProject().getId());
    statisticService.createStatistic(statistic);
  }
}
View Full Code Here

Examples of org.osforce.connect.entity.commons.Statistic.countAdd()

      Statistic statistic = statisticService.getStatistic(
          Statistic.TYPE_VIEW, project.getProfile().getId(), Profile.NAME);
      if(statistic==null) {
        statistic = new Statistic(Statistic.TYPE_VIEW, project.getProfile().getId(), Profile.NAME);
      }
      statistic.countAdd();
      statistic.setProjectId(project.getId());
      statisticService.createStatistic(statistic);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.