Package com.tmm.enterprise.microblog.domain

Examples of com.tmm.enterprise.microblog.domain.Notification


    getActivityService().getEntityManager().persist(todo);
    Account acc = getAccount();

    // TODO persist activity here..

    Notification notification = new Notification();
    notification.setActivity(todo);

    getNotificationService().createNotification(notification);
  }
View Full Code Here


    p.addStatus(s);
    s.setId(99l);
    now = new Date();
    s.setCreationDate(now);

    n = new Notification();
    n.setActivity(s);
    n.setId(100l);

  }
View Full Code Here

    this.entityManager = manager;
  }

  @Transactional
  public void markAsRead(Person user, long activityId) {
    Notification n = notificationDao.findNotification(user, activityId);
    if (n != null) {
      n.setRead(true);
    }
  }
View Full Code Here

TOP

Related Classes of com.tmm.enterprise.microblog.domain.Notification

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.