Package com.madgnome.jira.plugins.jirachievements.data.ao

Examples of com.madgnome.jira.plugins.jirachievements.data.ao.UserWrapper


      kvp.getValue().forEachEntry(new TObjectIntProcedure<String>()
      {
        @Override
        public boolean execute(String userName, int count)
        {
          UserWrapper userWrapper = userManager.get(userName);
          if (userWrapper != null)
          {
            ProjectVersionKey version = kvp.getKey();
            statisticManager.createOrUpdateVersionStatistic(userWrapper, version.getProject(), version.getVersion(), getStatisticRef(), count);
          }
View Full Code Here


    return get(user);
  }

  public UserWrapper get(String username)
  {
    UserWrapper userWrapper = userWrapperDaoService.get(username);
    if (userWrapper == null)
    {
      logger.info("Create userWrapper for user <{}>", username);
      userWrapper = userWrapperDaoService.getOrCreate(username, new Action<UserWrapper>()
      {
View Full Code Here

      calendar.add(Calendar.YEAR, 1);

      Timestamp resolutionDate = issue.getResolutionDate();
      if (resolutionDate != null && resolutionDate.after(calendar.getTime()))
      {
        UserWrapper userWrapper = getResolver(issue);
        if (userWrapper != null)
        {
          Achievement achievement = achievementDaoService.get(getAchievementRef());
          if (userAchievementDaoService.get(achievement, userWrapper) == null)
          {
View Full Code Here

      calendar.add(Calendar.YEAR, 1);

      Timestamp resolutionDate = issue.getResolutionDate();
      if (resolutionDate != null && resolutionDate.after(calendar.getTime()))
      {
        UserWrapper userWrapper = getResolver(issue);
        if (userWrapper != null)
        {
          Achievement achievement = achievementDaoService.get(getAchievementRef());
          if (userAchievementDaoService.get(achievement, userWrapper) == null)
          {
View Full Code Here

    int resolutionHour = calendar.get(Calendar.HOUR_OF_DAY);
    TimeRange timeRange = timeRangeForAchievement.get(achievementRefEnum);
    if (timeRange.isBetween(resolutionHour))
    {
      UserWrapper userWrapper = userWrapperDaoService.get(username);
      if (userWrapper != null)
      {
        Achievement achievement = achievementDaoService.get(achievementRefEnum);
        if (userAchievementDaoService.get(achievement, userWrapper) == null)
        {
View Full Code Here

TOP

Related Classes of com.madgnome.jira.plugins.jirachievements.data.ao.UserWrapper

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.