Package org.osforce.connect.entity.commons

Examples of org.osforce.connect.entity.commons.Statistic


    Long projectId = (Long) context.get("projectId");
    User user = (User) context.get("user");
    Project project = projectService.getProject(projectId);
    if(user==null || NumberUtils
        .compare(project.getEnteredBy().getId(), user.getId())!=0) {
      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

Related Classes of org.osforce.connect.entity.commons.Statistic

Copyright © 2018 www.massapicom. 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.