/** * Create an instance of {@link UserNamespaceAuthorizationChangeNotificationEvent } * */ public UserNamespaceAuthorizationChangeNotificationEvent createUserNamespaceAuthorizationChangeNotificationEvent() { return new UserNamespaceAuthorizationChangeNotificationEvent(); }
public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
public static UserNamespaceAuthorizationChangeNotificationEvent.Builder<Void> copyExcept(final NotificationEvent _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); }
public Object clone() { return copyTo(createNewInstance()); }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); super.copyTo(locator, draftCopy, strategy); if (draftCopy instanceof UserNamespaceAuthorizationChangeNotificationEvent) { final UserNamespaceAuthorizationChangeNotificationEvent copy = ((UserNamespaceAuthorizationChangeNotificationEvent) draftCopy); { Boolean userNamespaceAuthorizationKeyShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.userNamespaceAuthorizationKey!= null)); if (userNamespaceAuthorizationKeyShouldBeCopiedAndSet == Boolean.TRUE) { UserNamespaceAuthorizationKey sourceUserNamespaceAuthorizationKey; sourceUserNamespaceAuthorizationKey = this.getUserNamespaceAuthorizationKey(); UserNamespaceAuthorizationKey copyUserNamespaceAuthorizationKey = ((UserNamespaceAuthorizationKey) strategy.copy(LocatorUtils.property(locator, "userNamespaceAuthorizationKey", sourceUserNamespaceAuthorizationKey), sourceUserNamespaceAuthorizationKey, (this.userNamespaceAuthorizationKey!= null))); copy.setUserNamespaceAuthorizationKey(copyUserNamespaceAuthorizationKey); } else { if (userNamespaceAuthorizationKeyShouldBeCopiedAndSet == Boolean.FALSE) { copy.userNamespaceAuthorizationKey = null; } } } } return draftCopy; }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { super.appendFields(locator, buffer, strategy); { UserNamespaceAuthorizationKey theUserNamespaceAuthorizationKey; theUserNamespaceAuthorizationKey = this.getUserNamespaceAuthorizationKey(); strategy.appendField(locator, this, "userNamespaceAuthorizationKey", buffer, theUserNamespaceAuthorizationKey, (this.userNamespaceAuthorizationKey!= null)); } return buffer; }
public Object copyTo(Object target) { final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); }
public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); }
public boolean equals(Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); }
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; }
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } if (!super.equals(thisLocator, thatLocator, object, strategy)) { return false; } final UserNamespaceAuthorizationChangeNotificationEvent that = ((UserNamespaceAuthorizationChangeNotificationEvent) object); { UserNamespaceAuthorizationKey lhsUserNamespaceAuthorizationKey; lhsUserNamespaceAuthorizationKey = this.getUserNamespaceAuthorizationKey(); UserNamespaceAuthorizationKey rhsUserNamespaceAuthorizationKey; rhsUserNamespaceAuthorizationKey = that.getUserNamespaceAuthorizationKey(); if (!strategy.equals(LocatorUtils.property(thisLocator, "userNamespaceAuthorizationKey", lhsUserNamespaceAuthorizationKey), LocatorUtils.property(thatLocator, "userNamespaceAuthorizationKey", rhsUserNamespaceAuthorizationKey), lhsUserNamespaceAuthorizationKey, rhsUserNamespaceAuthorizationKey, (this.userNamespaceAuthorizationKey!= null), (that.userNamespaceAuthorizationKey!= null))) { return false; } } return true; }
public static<_B >UserNamespaceAuthorizationChangeNotificationEvent.Builder<_B> copyOf(final UserNamespaceAuthorizationChangeNotificationEvent _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final UserNamespaceAuthorizationChangeNotificationEvent.Builder<_B> _newBuilder = new UserNamespaceAuthorizationChangeNotificationEvent.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; }
public Object createNewInstance() { return new UserNamespaceAuthorizationChangeNotificationEvent(); }
@Override @SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST", justification = "The NotificationEvent is cast to a UserNamespaceAuthorizationChangeNotificationEvent which is always the case since" + " we manage the event type to a builder in a map defined in NotificationMessageManager") public Map<String, Object> getNotificationMessageVelocityContextMap(NotificationEvent notificationEvent) { UserNamespaceAuthorizationChangeNotificationEvent event = (UserNamespaceAuthorizationChangeNotificationEvent) notificationEvent; Map<String, Object> velocityContextMap = new HashMap<>(); addObjectPropertyToContext(velocityContextMap, "userNamespaceAuthorizationKey", event.getUserNamespaceAuthorizationKey(), new UserNamespaceAuthorizationKey(escapeJson(event.getUserNamespaceAuthorizationKey().getUserId()), escapeJson(event.getUserNamespaceAuthorizationKey().getNamespace())), new UserNamespaceAuthorizationKey(escapeXml(event.getUserNamespaceAuthorizationKey().getUserId()), escapeXml(event.getUserNamespaceAuthorizationKey().getNamespace()))); // Add the namespace Velocity property for the header. addStringPropertyToContext(velocityContextMap, "namespace", event.getUserNamespaceAuthorizationKey().getNamespace()); return velocityContextMap; }
public static UserNamespaceAuthorizationChangeNotificationEvent.Builder<Void> copyOnly(final NotificationEvent _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); }
public static<_B >UserNamespaceAuthorizationChangeNotificationEvent.Builder<_B> copyOf(final UserNamespaceAuthorizationChangeNotificationEvent _other) { final UserNamespaceAuthorizationChangeNotificationEvent.Builder<_B> _newBuilder = new UserNamespaceAuthorizationChangeNotificationEvent.Builder<_B>(null, null, false); _other.copyTo(_newBuilder); return _newBuilder; }
@Override public UserNamespaceAuthorizationChangeNotificationEvent build() { if (_storedValue == null) { return this.init(new UserNamespaceAuthorizationChangeNotificationEvent()); } else { return ((UserNamespaceAuthorizationChangeNotificationEvent) _storedValue); } }
@Override @SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST", justification = "The NotificationEvent is cast to a UserNamespaceAuthorizationChangeNotificationEvent which is always the case since" + " we manage the event type to a builder in a map defined in NotificationMessageManager") public Map<String, Object> getNotificationMessageVelocityContextMap(NotificationEvent notificationEvent) { UserNamespaceAuthorizationChangeNotificationEvent event = (UserNamespaceAuthorizationChangeNotificationEvent) notificationEvent; Map<String, Object> velocityContextMap = new HashMap<>(); addObjectPropertyToContext(velocityContextMap, "userNamespaceAuthorizationKey", event.getUserNamespaceAuthorizationKey(), new UserNamespaceAuthorizationKey(escapeJson(event.getUserNamespaceAuthorizationKey().getUserId()), escapeJson(event.getUserNamespaceAuthorizationKey().getNamespace())), new UserNamespaceAuthorizationKey(escapeXml(event.getUserNamespaceAuthorizationKey().getUserId()), escapeXml(event.getUserNamespaceAuthorizationKey().getNamespace()))); // Add the namespace Velocity property for the header. addStringPropertyToContext(velocityContextMap, "namespace", event.getUserNamespaceAuthorizationKey().getNamespace()); return velocityContextMap; }
public static UserNamespaceAuthorizationChangeNotificationEvent.Builder<Void> copyExcept(final UserNamespaceAuthorizationChangeNotificationEvent _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); }
@Override public List<NotificationMessage> processUserNamespaceAuthorizationChangeNotificationEvent(UserNamespaceAuthorizationKey userNamespaceAuthorizationKey) { return processNotificationMessages( notificationMessageManager.buildNotificationMessages(new UserNamespaceAuthorizationChangeNotificationEvent(userNamespaceAuthorizationKey))); }