Examples of Notification


Examples of org.opensocial.models.myspace.Notification

          new OAuth2LeggedScheme(MYSPACE_KEY, MYSPACE_SECRET, MYSPACE_ID));

      MediaItem mediaItem = new MediaItem();
      mediaItem.setUrl("http://api.myspace.com/v1/users/63129100");

      Notification notification = new Notification();
      notification.setContent("Hi ${recipient}, here's a notification from " +
          "${canvasUrl}");
      notification.addRecipient("495184236");
      notification.addMediaItem(mediaItem);

      Request request = NotificationsService.createNotification(notification);
      Response response = client.send(request);

      assertTrue(response.getStatusLink() != null);
View Full Code Here

Examples of org.openstreetmap.josm.gui.Notification

        if (getCurrentDataSet() == null)
            return;

        final Collection<Way> sel = getCurrentDataSet().getSelectedWays();
        if (sel.isEmpty()) {
            new Notification(
                    tr("Please select at least one way."))
                    .setIcon(JOptionPane.INFORMATION_MESSAGE)
                    .setDuration(Notification.TIME_SHORT)
                    .show();
            return;
View Full Code Here

Examples of org.persvr.remote.EventStream.Notification

        public synchronized void onEvent()  throws IOException{
          final EventStream eventStream = (Client) request.getSession().getAttribute(clientId);

         
         
          Notification notification= eventStream.eventAvailable() ? eventStream.take(0) : null;
          if (notification != null) { // we are resuming
            try {
             
              if (sendEvent(notification, eventStream, serializer)) {
                System.err.println("connection closed by server" + request);
View Full Code Here

Examples of org.pokenet.client.ui.base.Notification

  /**
   * Adds a new notification
   * @param n
   */
  public static void addNotification(String n) {
    m_notifications.add(new Notification(n));
  }
View Full Code Here

Examples of org.puremvc.java.multicore.patterns.observer.Notification

   * @param notificationName the name of the notification to send
   * @param body the body of the notification (optional)
   * @param type the type of the notification (optional)
   */
  public void sendNotification(String notificationName, Object body, String type) {
    notifyObservers(new Notification(notificationName, body, type));
  }
View Full Code Here

Examples of org.sonar.api.notifications.Notification

    assertThat(manager.getChannels()).hasSize(0);
  }

  @Test
  public void shouldPersist() throws Exception {
    Notification notification = new Notification("test");
    manager.scheduleForSending(notification);

    verify(notificationQueueDao, only()).insert(any(List.class));
  }
View Full Code Here

Examples of org.springmodules.xt.model.notification.Notification

       
        office1.setOfficeId("aaa");
        emp1.setMatriculationCode("1");
        office1.addEmployee(emp1);
       
        Notification notification = new NotificationImpl();
       
        assertFalse(this.compositeSpecification.compose(spec1).withMessage(new MessageImpl("wrong.office.id", Message.Type.ERROR, "Wrong Office Id"), false)
                                                                       .and(spec2).withMessage(new MessageImpl("office.unavailable", Message.Type.ERROR, "Office Not Available"), false)
                                                                       .evaluate(office1, notification));
                                                   
        assertTrue(notification.hasMessages(Message.Type.ERROR));
        assertFalse(notification.hasMessages(Message.Type.WARNING));
        assertFalse(notification.hasMessages(Message.Type.INFO));
        assertTrue(notification.getMessages(Message.Type.ERROR).length == 1);
        assertEquals("wrong.office.id", notification.getMessages(Message.Type.ERROR)[0].getCode());
        assertEquals("Wrong Office Id",notification.getMessages(Message.Type.ERROR)[0].getDefaultMessage());
    }
View Full Code Here

Examples of org.wso2.carbon.discovery.messages.Notification

                xAddres[i] = new URI(epr);
            }
            targetService.setXAddresses(xAddres);
            targetService.setMetadataVersion(config.getMetadataVersion());

            Notification notification = new Notification(notificationType, targetService);
            serviceClient.fireAndForget(DiscoveryOMUtils.toOM(notification,
                    OMAbstractFactory.getOMFactory()));
            serviceClient.cleanup();

        } catch (Exception e) {
View Full Code Here

Examples of project.entities.institute.Notification

    NotificationDAO {

  @Override
  public Notification createNotification(Timestamp end, Timestamp period,
      int person, Timestamp start, String text) {
    Notification notif = new Notification(end, period, person, start, text);
    return (Notification) getHibernateTemplate().save(notif);
  }
View Full Code Here

Examples of scatours.notification.Notification

                                                       notificationContribution,
                                                       notificationWSContribution);
        node.start();

        System.out.println("Quick notification test");
        Notification notification = ((SCAClient)node).getService(Notification.class, "Notification");
        String accountID = "1234";
        String subject = "Holiday payment taken";
        String message = "Payment of £102.37 accepted...";
        notification.notify(accountID, subject, message);

        System.out.println("Node started - Press enter to shutdown.");
        System.in.read();
        node.stop();
    }
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.