public DestinationDef(String name, DestinationStatus destinationStatus, String provider, String... arguments) { this(name, destinationStatus, provider, BeanUtils.toMap(arguments)); }
public TraitMap(Collection<String> traitStrings) { this(BeanUtils.toMap(traitStrings)); }
public TraitMap(String...traitStrings) { this(BeanUtils.toMap(traitStrings)); }
public Destination(String name, String provider, String... arguments) { this(name, provider, DestinationStatus.ENABLED, BeanUtils.toMap(arguments)); }
public static LinkedHashMap<String, String> toMap(String... keyValuePairs) { List<String> list = new ArrayList<>(); if (keyValuePairs != null) { Collections.addAll(list, keyValuePairs); } return toMap(list); }
@Bean public TrustedUserStore trustedUserStore() { return new TrustedUserStore(BeanUtils.toMap( "admin:Testing123" )); }
public TraitMap add(Collection<String> traits) { return add(traits == null ? Collections.emptyMap() : BeanUtils.toMap(traits)); }
public TraitMap add(String...traits) { return add(traits == null ? Collections.emptyMap() : BeanUtils.toMap(traits)); }
public static XmppPush newPush(String recipient, String message, String callbackUrl, String...traits) { InetAddress remoteAddress = PushUtils.getLocalHost(); return new XmppPush( recipient, message, callbackUrl, remoteAddress.getCanonicalHostName(), remoteAddress.getHostAddress(), BeanUtils.toMap(traits)); }
public static SmtpEmailPush newPush(String toAddress, String fromAddress, String emailSubject, String htmlContent, String callbackUrl, String... traits) { InetAddress remoteAddress = PushUtils.getLocalHost(); return new SmtpEmailPush(toAddress, fromAddress, emailSubject, htmlContent, callbackUrl, remoteAddress.getCanonicalHostName(), remoteAddress.getHostAddress(), BeanUtils.toMap(traits)); }
public static SmtpEmailPush newPush(String toAddress, String fromAddress, String emailSubject, String htmlContent, String callbackUrl, String... traits) { InetAddress remoteAddress = PushUtils.getLocalHost(); return new SmtpEmailPush(toAddress, fromAddress, emailSubject, htmlContent, callbackUrl, remoteAddress.getCanonicalHostName(), remoteAddress.getHostAddress(), BeanUtils.toMap(traits)); }
public static TwilioSmsPush newPush(String from, String recipient,String message, String callbackUrl, String...traits) { InetAddress remoteAddress = PushUtils.getLocalHost(); return new TwilioSmsPush(from, recipient, message, callbackUrl, remoteAddress.getCanonicalHostName(), remoteAddress.getHostAddress(), BeanUtils.toMap(traits)); }
public static SesEmailPush newPush(String toAddress, String fromAddress, String emailSubject, String htmlContent, String callbackUrl, String... traits) { InetAddress remoteAddress = PushUtils.getLocalHost(); return new SesEmailPush(toAddress, fromAddress, emailSubject, htmlContent, callbackUrl, remoteAddress.getCanonicalHostName(), remoteAddress.getHostAddress(), BeanUtils.toMap(traits)); }
public static XmppPush newPush(String recipient, String message, String callbackUrl, String...traits) { InetAddress remoteAddress = PushUtils.getLocalHost(); return new XmppPush( recipient, message, callbackUrl, remoteAddress.getCanonicalHostName(), remoteAddress.getHostAddress(), BeanUtils.toMap(traits)); }
public static SesEmailPush newPush(String toAddress, String fromAddress, String emailSubject, String htmlContent, String callbackUrl, String... traits) { InetAddress remoteAddress = PushUtils.getLocalHost(); return new SesEmailPush(toAddress, fromAddress, emailSubject, htmlContent, callbackUrl, remoteAddress.getCanonicalHostName(), remoteAddress.getHostAddress(), BeanUtils.toMap(traits)); }
public static NotificationPushV1 newPush(String message, String callbackUrl, String...traits) { InetAddress remoteAddress = PushUtils.getLocalHost(); return new NotificationPushV1(message, callbackUrl, remoteAddress.getCanonicalHostName(), remoteAddress.getHostAddress(), BeanUtils.toMap(traits)); }
public static EmailToSmsPushV1 newPush(String toAddress, String fromAddress, String emailSubject, String callbackUrl, String... traits) { InetAddress remoteAddress = PushUtils.getLocalHost(); return new EmailToSmsPushV1(toAddress, fromAddress, emailSubject, callbackUrl, remoteAddress.getCanonicalHostName(), remoteAddress.getHostAddress(), BeanUtils.toMap(traits)); }
public CreateNotification newCreateNotificationNoException() { return new CreateNotification( true, "test-topic", "This is a test of the emergency broadcast system... this is only a test.", "tracking-id-123", ZonedDateTime.now(), null, newLinks(), BeanUtils.toMap("color:red", "sex:male", "test")); }
public static OcsPush newPush(String recipient,String message, String callbackUrl, String...traits) { InetAddress remoteAddress = PushUtils.getLocalHost(); return new OcsPush(recipient, message, callbackUrl, remoteAddress.getCanonicalHostName(), remoteAddress.getHostAddress(), BeanUtils.toMap(traits)); }
public CreateNotification newCreateNotificationWithException() { return new CreateNotification( true, "test-topic", "This is a test of the emergency broadcast system... this is only a test.", "tracking-id-123", ZonedDateTime.now(), newExceptionInfo(), newLinks(), BeanUtils.toMap("color:red", "sex:male", "test")); }