Package fr.openwide.maven.artifact.notifier.core.business.artifact.model

Examples of fr.openwide.maven.artifact.notifier.core.business.artifact.model.ArtifactVersionNotification


      // Rules check
      if (!artifactNotificationRuleService.checkRulesForVersion(version.getVersion(), rules)) {
        continue;
      }
     
      ArtifactVersionNotification notification = new ArtifactVersionNotification(version);
      artifactVersionNotificationService.create(notification);
     
      follower.addNotification(notification);
      notifications.add(notification);
      if (followedArtifact.getLastNotifiedVersionDate().before(version.getLastUpdateDate())) {
View Full Code Here


    int limit = configurer.getLastNotificationsLimit();
    int dayCount = configurer.getLastNotificationsDayCount();
   
    List<ArtifactVersionNotification> notificationList = userDao.listLastNotifications(user, limit);
   
    ArtifactVersionNotification oldestNotification = Iterables.getLast(notificationList, null);
   
    if (oldestNotification != null) {
      Calendar calendar = GregorianCalendar.getInstance();
      calendar.add(Calendar.DAY_OF_MONTH, -dayCount);
     
      if (oldestNotification.getCreationDate().after(calendar.getTime())) {
        notificationList = userDao.listNotificationsAfterDate(user, calendar.getTime());
      }
    }
    return notificationList;
  }
View Full Code Here

TOP

Related Classes of fr.openwide.maven.artifact.notifier.core.business.artifact.model.ArtifactVersionNotification

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.