@Override public String apply(@Nullable final ObjectType input) { if (input == null) { return ""; } else { return input.toString(); } } })),
public NotificationJson(final ExtBusEvent event) { this(event.getEventType().toString(), event.getAccountId() != null ? event.getAccountId().toString() : null, event.getObjectType().toString(), event.getObjectId() != null ? event.getObjectId().toString() : null); }
public void tagAdded(final ObjectType objectType, final UUID objectId, final String name, final InternalCallContext context) { if (objectType.equals(ObjectType.ACCOUNT)) { tagAddedForAccount(objectId, name, context); } else if (objectType.equals(ObjectType.BUNDLE)) { tagAddedForBundle(objectId, name, context); } else if (objectType.equals(ObjectType.INVOICE)) { tagAddedForInvoice(objectId, name, context); } else if (objectType.equals(ObjectType.PAYMENT)) { tagAddedForPayment(objectId, name, context); } else { log.info("Ignoring tag addition of {} for object id {} (type {})", new Object[]{name, objectId.toString(), objectType.toString()}); } }
public void tagRemoved(final ObjectType objectType, final UUID objectId, final String name, final InternalCallContext context) { if (objectType.equals(ObjectType.ACCOUNT)) { tagRemovedForAccount(objectId, name, context); } else if (objectType.equals(ObjectType.BUNDLE)) { tagRemovedForBundle(objectId, name, context); } else if (objectType.equals(ObjectType.INVOICE)) { tagRemovedForInvoice(objectId, name, context); } else if (objectType.equals(ObjectType.PAYMENT)) { tagRemovedForPayment(objectId, name, context); } else { log.info("Ignoring tag removal of {} for object id {} (type {})", new Object[]{name, objectId.toString(), objectType.toString()}); } }