Examples of Notification


Examples of com.sun.xml.ws.tx.at.v11.types.Notification

*
* This is the  class for building WSAT11 Notifications.
*/
public class NotificationBuilderImpl extends NotificationBuilder<Notification> {
    public Notification build() {
        return new Notification();
    }
View Full Code Here

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

Examples of com.twilio.sdk.resource.instance.Notification

   * @see com.twilio.sdk.resource.ListResource#makeNew(com.twilio.sdk.TwilioRestClient, java.util.Map)
   */
  @Override
  protected Notification makeNew(TwilioRestClient client,
      Map<String, Object> params) {
    return new Notification(client, params);
  }
View Full Code Here

Examples of com.vaadin.ui.Notification

        // Paint notifications
        if (notifications != null) {
            target.startTag("notifications");
            for (final Iterator<Notification> it = notifications.iterator(); it
                    .hasNext();) {
                final Notification n = it.next();
                target.startTag("notification");
                if (n.getCaption() != null) {
                    target.addAttribute(
                            UIConstants.ATTRIBUTE_NOTIFICATION_CAPTION,
                            n.getCaption());
                }
                if (n.getDescription() != null) {
                    target.addAttribute(
                            UIConstants.ATTRIBUTE_NOTIFICATION_MESSAGE,
                            n.getDescription());
                }
                if (n.getIcon() != null) {
                    target.addAttribute(
                            UIConstants.ATTRIBUTE_NOTIFICATION_ICON,
                            n.getIcon());
                }
                if (!n.isHtmlContentAllowed()) {
                    target.addAttribute(
                            UIConstants.NOTIFICATION_HTML_CONTENT_NOT_ALLOWED,
                            true);
                }
                target.addAttribute(
                        UIConstants.ATTRIBUTE_NOTIFICATION_POSITION, n
                                .getPosition().ordinal());
                target.addAttribute(UIConstants.ATTRIBUTE_NOTIFICATION_DELAY,
                        n.getDelayMsec());
                if (n.getStyleName() != null) {
                    target.addAttribute(
                            UIConstants.ATTRIBUTE_NOTIFICATION_STYLE,
                            n.getStyleName());
                }
                target.endTag("notification");
            }
            target.endTag("notifications");
            notifications = null;
View Full Code Here

Examples of com.vaadin.ui.Window.Notification

                }

                m_artifactsPanel.setValue(selection);

                // Notify the user what the overall status was...
                Notification notification = createNotification(failedMsg, successMsg);
                getMainWindow().showNotification(notification);

                m_progress.setStyleName("invisible");
                m_statusLine.setStatus(notification.getCaption() + "...");
            }

            @Override
            protected void uploadStarted(UploadHandle upload) {
                m_progress.setStyleName("visible");
                m_progress.setValue(new Float(0.0f));

                m_statusLine.setStatus("Upload of '%s' started...", upload.getFilename());
            }

            private void appendFailure(StringBuilder sb, UploadHandle handle) {
                appendFailure(sb, handle, handle.getFailureReason());
            }

            private void appendFailure(StringBuilder sb, UploadHandle handle, Exception cause) {
                sb.append("<li>'").append(handle.getFile().getName()).append("': failed");
                if (cause != null) {
                    sb.append(", possible reason:<br/>").append(cause.getMessage());
                }
                sb.append("</li>");
            }

            private void appendFailureExists(StringBuilder sb, UploadHandle handle) {
                sb.append("<li>'").append(handle.getFile().getName()).append("': already exists in repository</li>");
            }

            private void appendSuccess(StringBuilder sb, UploadHandle handle) {
                sb.append("<li>'").append(handle.getFile().getName()).append("': added to repository</li>");
            }

            private Notification createNotification(StringBuilder failedMsg, StringBuilder successMsg) {
                String caption = "Upload completed";
                int delay = 500; // msec.
                StringBuilder notification = new StringBuilder();
                if (failedMsg.length() > 0) {
                    caption = "Upload completed with failures";
                    delay = -1;
                    notification.append("<ul>").append(failedMsg).append("</ul>");
                }
                if (successMsg.length() > 0) {
                    notification.append("<ul>").append(successMsg).append("</ul>");
                }
                if (delay < 0) {
                    notification.append("<p>(click to dismiss this notification).</p>");
                }

                Notification summary = new Notification(caption, notification.toString(), Notification.TYPE_TRAY_NOTIFICATION);
                summary.setDelayMsec(delay);
                return summary;
            }

            private ArtifactObject uploadToOBR(UploadHandle handle) throws IOException {
                return UploadHelper.importRemoteBundle(m_artifactRepository, handle.getFile());
View Full Code Here

Examples of com.volantis.mcs.migrate.api.notification.Notification

        // ==================================================================
        // Do the test.
        // ==================================================================

        LogDispatcherNotificationReporter reporter = new LogDispatcherNotificationReporter(loggerMock);
        Notification notification = new SimpleMessageNotification(NotificationType.ERROR, "message");
        reporter.reportNotification(notification);
    }
View Full Code Here

Examples of eu.scape_project.planning.model.Notification

            String message = notification.getMessage();
           
            try {
                ut.begin();
                for (User recipient : recipients) {
                    Notification n = new Notification(notificationID, notificationTime, "SCOUT", message, recipient);
                    em.persist(n);
                }
                ut.commit();
                return true;
            } catch (Exception e) {
View Full Code Here

Examples of eu.scape_project.watch.domain.Notification

             
            q = new Question(sparql, RequestTarget.PROPERTY_VALUE);
        }
        }
        if (q != null) {
          final Notification n = new Notification("email", Arrays.asList(new DictionaryItem("recepients",
                this.recipients)));
          final Trigger trigger = new Trigger(null, null, null, this.period, q, null,Arrays.asList(n));
          triggers.add(trigger);
        }
    }   
View Full Code Here

Examples of facebook4j.Notification

            JSONArray list = json.getJSONArray("data");
            final int size = list.length();
            ResponseList<Notification> notifications = new ResponseListImpl<Notification>(size, json);
            for (int i = 0; i < size; i++) {
                JSONObject notificationJSONObject = list.getJSONObject(i);
                Notification notification = new NotificationJSONImpl(notificationJSONObject);
                if (conf.isJSONStoreEnabled()) {
                    DataObjectFactoryUtil.registerJSONObject(notification, notificationJSONObject);
                }
                notifications.add(notification);
            }
View Full Code Here

Examples of fb4java.beans.Notification

  JSONObject root = new JSONObject(response.getResponse());
  JSONArray notificationArr = root.getJSONArray("notifications");
  for (int a = 0; a < notificationArr.length(); a++) {
      JSONObject aNotification = notificationArr.getJSONObject(a);
      rslt.add(new Notification(aNotification));
  }
  return rslt;
    }
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.