/** * Create an instance of {@link BusinessObjectDataStatusChangeNotificationEvent } * */ public BusinessObjectDataStatusChangeNotificationEvent createBusinessObjectDataStatusChangeNotificationEvent() { return new BusinessObjectDataStatusChangeNotificationEvent(); }
public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); }
public static BusinessObjectDataStatusChangeNotificationEvent.Builder<Void> copyOnly(final NotificationEvent _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); }
public Object clone() { return copyTo(createNewInstance()); }
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { super.appendFields(locator, buffer, strategy); { BusinessObjectDataKey theBusinessObjectDataKey; theBusinessObjectDataKey = this.getBusinessObjectDataKey(); strategy.appendField(locator, this, "businessObjectDataKey", buffer, theBusinessObjectDataKey, (this.businessObjectDataKey!= null)); } { String theNewBusinessObjectDataStatus; theNewBusinessObjectDataStatus = this.getNewBusinessObjectDataStatus(); strategy.appendField(locator, this, "newBusinessObjectDataStatus", buffer, theNewBusinessObjectDataStatus, (this.newBusinessObjectDataStatus!= null)); } { String theOldBusinessObjectDataStatus; theOldBusinessObjectDataStatus = this.getOldBusinessObjectDataStatus(); strategy.appendField(locator, this, "oldBusinessObjectDataStatus", buffer, theOldBusinessObjectDataStatus, (this.oldBusinessObjectDataStatus!= null)); } return buffer; }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); super.copyTo(locator, draftCopy, strategy); if (draftCopy instanceof BusinessObjectDataStatusChangeNotificationEvent) { if (businessObjectDataKeyShouldBeCopiedAndSet == Boolean.TRUE) { BusinessObjectDataKey sourceBusinessObjectDataKey; sourceBusinessObjectDataKey = this.getBusinessObjectDataKey(); BusinessObjectDataKey copyBusinessObjectDataKey = ((BusinessObjectDataKey) strategy.copy(LocatorUtils.property(locator, "businessObjectDataKey", sourceBusinessObjectDataKey), sourceBusinessObjectDataKey, (this.businessObjectDataKey!= null))); copy.setBusinessObjectDataKey(copyBusinessObjectDataKey); } else { if (businessObjectDataKeyShouldBeCopiedAndSet == Boolean.FALSE) { if (newBusinessObjectDataStatusShouldBeCopiedAndSet == Boolean.TRUE) { String sourceNewBusinessObjectDataStatus; sourceNewBusinessObjectDataStatus = this.getNewBusinessObjectDataStatus(); String copyNewBusinessObjectDataStatus = ((String) strategy.copy(LocatorUtils.property(locator, "newBusinessObjectDataStatus", sourceNewBusinessObjectDataStatus), sourceNewBusinessObjectDataStatus, (this.newBusinessObjectDataStatus!= null))); copy.setNewBusinessObjectDataStatus(copyNewBusinessObjectDataStatus); } else { if (newBusinessObjectDataStatusShouldBeCopiedAndSet == Boolean.FALSE) { if (oldBusinessObjectDataStatusShouldBeCopiedAndSet == Boolean.TRUE) { String sourceOldBusinessObjectDataStatus; sourceOldBusinessObjectDataStatus = this.getOldBusinessObjectDataStatus(); String copyOldBusinessObjectDataStatus = ((String) strategy.copy(LocatorUtils.property(locator, "oldBusinessObjectDataStatus", sourceOldBusinessObjectDataStatus), sourceOldBusinessObjectDataStatus, (this.oldBusinessObjectDataStatus!= null))); copy.setOldBusinessObjectDataStatus(copyOldBusinessObjectDataStatus); } else { if (oldBusinessObjectDataStatusShouldBeCopiedAndSet == Boolean.FALSE) {
public Object copyTo(Object target) { final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, 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 int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = super.hashCode(locator, strategy); { BusinessObjectDataKey theBusinessObjectDataKey; theBusinessObjectDataKey = this.getBusinessObjectDataKey(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "businessObjectDataKey", theBusinessObjectDataKey), currentHashCode, theBusinessObjectDataKey, (this.businessObjectDataKey!= null)); } { String theNewBusinessObjectDataStatus; theNewBusinessObjectDataStatus = this.getNewBusinessObjectDataStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "newBusinessObjectDataStatus", theNewBusinessObjectDataStatus), currentHashCode, theNewBusinessObjectDataStatus, (this.newBusinessObjectDataStatus!= null)); } { String theOldBusinessObjectDataStatus; theOldBusinessObjectDataStatus = this.getOldBusinessObjectDataStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "oldBusinessObjectDataStatus", theOldBusinessObjectDataStatus), currentHashCode, theOldBusinessObjectDataStatus, (this.oldBusinessObjectDataStatus!= null)); } return currentHashCode; }
public static<_B >BusinessObjectDataStatusChangeNotificationEvent.Builder<_B> copyOf(final BusinessObjectDataStatusChangeNotificationEvent _other) { final BusinessObjectDataStatusChangeNotificationEvent.Builder<_B> _newBuilder = new BusinessObjectDataStatusChangeNotificationEvent.Builder<_B>(null, null, false); _other.copyTo(_newBuilder); return _newBuilder; }
lhsBusinessObjectDataKey = this.getBusinessObjectDataKey(); BusinessObjectDataKey rhsBusinessObjectDataKey; rhsBusinessObjectDataKey = that.getBusinessObjectDataKey(); if (!strategy.equals(LocatorUtils.property(thisLocator, "businessObjectDataKey", lhsBusinessObjectDataKey), LocatorUtils.property(thatLocator, "businessObjectDataKey", rhsBusinessObjectDataKey), lhsBusinessObjectDataKey, rhsBusinessObjectDataKey, (this.businessObjectDataKey!= null), (that.businessObjectDataKey!= null))) { return false; lhsNewBusinessObjectDataStatus = this.getNewBusinessObjectDataStatus(); String rhsNewBusinessObjectDataStatus; rhsNewBusinessObjectDataStatus = that.getNewBusinessObjectDataStatus(); if (!strategy.equals(LocatorUtils.property(thisLocator, "newBusinessObjectDataStatus", lhsNewBusinessObjectDataStatus), LocatorUtils.property(thatLocator, "newBusinessObjectDataStatus", rhsNewBusinessObjectDataStatus), lhsNewBusinessObjectDataStatus, rhsNewBusinessObjectDataStatus, (this.newBusinessObjectDataStatus!= null), (that.newBusinessObjectDataStatus!= null))) { return false; lhsOldBusinessObjectDataStatus = this.getOldBusinessObjectDataStatus(); String rhsOldBusinessObjectDataStatus; rhsOldBusinessObjectDataStatus = that.getOldBusinessObjectDataStatus(); if (!strategy.equals(LocatorUtils.property(thisLocator, "oldBusinessObjectDataStatus", lhsOldBusinessObjectDataStatus), LocatorUtils.property(thatLocator, "oldBusinessObjectDataStatus", rhsOldBusinessObjectDataStatus), lhsOldBusinessObjectDataStatus, rhsOldBusinessObjectDataStatus, (this.oldBusinessObjectDataStatus!= null), (that.oldBusinessObjectDataStatus!= null))) { return false;
public Object createNewInstance() { return new BusinessObjectDataStatusChangeNotificationEvent(); }
public static BusinessObjectDataStatusChangeNotificationEvent.Builder<Void> copyOnly(final BusinessObjectDataStatusChangeNotificationEvent _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE); }
public static<_B >BusinessObjectDataStatusChangeNotificationEvent.Builder<_B> copyOf(final BusinessObjectDataStatusChangeNotificationEvent _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final BusinessObjectDataStatusChangeNotificationEvent.Builder<_B> _newBuilder = new BusinessObjectDataStatusChangeNotificationEvent.Builder<_B>(null, null, false); _other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse); return _newBuilder; }
addObjectPropertyToContext(velocityContextMap, "businessObjectDataKey", event.getBusinessObjectDataKey(), escapeJsonBusinessObjectDataKey(event.getBusinessObjectDataKey()), escapeXmlBusinessObjectDataKey(event.getBusinessObjectDataKey())); addStringPropertyToContext(velocityContextMap, "newBusinessObjectDataStatus", event.getNewBusinessObjectDataStatus()); addStringPropertyToContext(velocityContextMap, "oldBusinessObjectDataStatus", event.getOldBusinessObjectDataStatus()); BusinessObjectDataEntity businessObjectDataEntity = businessObjectDataDaoHelper.getBusinessObjectDataEntity(event.getBusinessObjectDataKey()); velocityContextMap.put("businessObjectDataId", businessObjectDataEntity.getId()); addStringPropertyToContext(velocityContextMap, "namespace", event.getBusinessObjectDataKey().getNamespace());
@Override public BusinessObjectDataStatusChangeNotificationEvent build() { if (_storedValue == null) { return this.init(new BusinessObjectDataStatusChangeNotificationEvent()); } else { return ((BusinessObjectDataStatusChangeNotificationEvent) _storedValue); } }
public static BusinessObjectDataStatusChangeNotificationEvent.Builder<Void> copyExcept(final NotificationEvent _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); }
addObjectPropertyToContext(velocityContextMap, "businessObjectDataKey", event.getBusinessObjectDataKey(), escapeJsonBusinessObjectDataKey(event.getBusinessObjectDataKey()), escapeXmlBusinessObjectDataKey(event.getBusinessObjectDataKey())); addStringPropertyToContext(velocityContextMap, "newBusinessObjectDataStatus", event.getNewBusinessObjectDataStatus()); addStringPropertyToContext(velocityContextMap, "oldBusinessObjectDataStatus", event.getOldBusinessObjectDataStatus()); BusinessObjectDataEntity businessObjectDataEntity = businessObjectDataDaoHelper.getBusinessObjectDataEntity(event.getBusinessObjectDataKey()); velocityContextMap.put("businessObjectDataId", businessObjectDataEntity.getId()); addStringPropertyToContext(velocityContextMap, "namespace", event.getBusinessObjectDataKey().getNamespace());
@Override public List<NotificationMessage> processBusinessObjectDataStatusChangeNotificationEvent(BusinessObjectDataKey businessObjectDataKey, String newBusinessObjectDataStatus, String oldBusinessObjectDataStatus) { return processNotificationMessages(notificationMessageManager.buildNotificationMessages( new BusinessObjectDataStatusChangeNotificationEvent(businessObjectDataKey, newBusinessObjectDataStatus, oldBusinessObjectDataStatus))); }
public static BusinessObjectDataStatusChangeNotificationEvent.Builder<Void> copyExcept(final BusinessObjectDataStatusChangeNotificationEvent _other, final PropertyTree _propertyTree) { return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE); }