Examples of NotificationConfiguration


Examples of com.amazonaws.services.s3.model.NotificationConfiguration

                    destinationArn = getText();
                } else {
                    parseConfig(name);
                }
            } else if (in("NotificationConfiguration")) {
                NotificationConfiguration configuration = null;
                if (name.equals("TopicConfiguration")) {
                    configuration = new com.amazonaws.services.s3.model.TopicConfiguration(
                            destinationArn, events.toArray(new String[events
                                    .size()]));
                    configuration.withObjectPrefixes(prefixes
                            .toArray(new String[prefixes.size()]));
                } else if (name.equals("QueueConfiguration")) {
                    configuration = new QueueConfiguration(destinationArn,
                            events.toArray(new String[events.size()]));
                    configuration.withObjectPrefixes(prefixes
                            .toArray(new String[prefixes.size()]));
        } else if (name.equals("CloudFunctionConfiguration")) {
          configuration = new CloudFunctionConfiguration(
              invocationRole, destinationArn,
              events.toArray(new String[events.size()]));
          configuration.withObjectPrefixes(prefixes
              .toArray(new String[prefixes.size()]));
        }

                if (configuration != null) {
                    // TODO : The below condition needs to be removed when the
View Full Code Here

Examples of com.amazonaws.services.s3.model.NotificationConfiguration

                .getConfigurations();

        for (Map.Entry<String, NotificationConfiguration> entry : configurations
                .entrySet()) {
            String configName = entry.getKey();
            NotificationConfiguration config = entry.getValue();
            if (config instanceof TopicConfiguration) {
                xml.start("TopicConfiguration");
                xml.start("Id").value(configName).end();
                xml.start("Topic")
                        .value(((TopicConfiguration) config).getTopicARN())
View Full Code Here

Examples of com.vaadin.ui.NotificationConfiguration

            Type typeValue = (Type) type.getValue();

            Notification n = new Notification(tf.getValue(), typeValue);
            n.setDelayMsec(-1);
            n.setHtmlContentAllowed(true);
            NotificationConfiguration notificationConf = UI.getCurrent()
                    .getNotificationConfiguration();
            notificationConf.setAssistivePrefix(typeValue, prefix.getValue());
            notificationConf.setAssistivePostfix(typeValue, postfix.getValue());
            notificationConf.setAssistiveRole(typeValue,
                    (NotificationRole) role.getValue());

            n.show(Page.getCurrent());
        }
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.