/** * Creates and returns a deep copy of this object. * * * @return * A deep copy of this object. */ @Override public ResourceObjectShadowChangeDescriptionType clone() { try { { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 final ResourceObjectShadowChangeDescriptionType clone = ((ResourceObjectShadowChangeDescriptionType) super.clone()); // CBuiltinLeafInfo: java.lang.String clone.oldShadowOid = ((this.oldShadowOid == null)?null:this.getOldShadowOid()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType clone.currentShadow = ((this.currentShadow == null)?null:((this.getCurrentShadow() == null)?null:this.getCurrentShadow().clone())); // CClassInfo: com.evolveum.prism.xml.ns._public.types_3.ObjectDeltaType clone.objectDelta = ((this.objectDelta == null)?null:((this.getObjectDelta() == null)?null:this.getObjectDelta().clone())); // CBuiltinLeafInfo: java.lang.String clone.channel = ((this.channel == null)?null:this.getChannel()); return clone; } } catch (CloneNotSupportedException e) { // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ throw new AssertionError(e); } }
/** * Creates a new {@code ResourceObjectShadowChangeDescriptionType} instance by deeply copying a given {@code ResourceObjectShadowChangeDescriptionType} instance. * * * @param o * The instance to copy. * @throws NullPointerException * if {@code o} is {@code null}. */ public ResourceObjectShadowChangeDescriptionType(final ResourceObjectShadowChangeDescriptionType o) { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 super(); if (o == null) { throw new NullPointerException("Cannot create a copy of 'ResourceObjectShadowChangeDescriptionType' from 'null'."); } // CBuiltinLeafInfo: java.lang.String this.oldShadowOid = ((o.oldShadowOid == null)?null:o.getOldShadowOid()); // CClassInfo: com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType this.currentShadow = ((o.currentShadow == null)?null:((o.getCurrentShadow() == null)?null:o.getCurrentShadow().clone())); // CClassInfo: com.evolveum.prism.xml.ns._public.types_3.ObjectDeltaType this.objectDelta = ((o.objectDelta == null)?null:((o.getObjectDelta() == null)?null:o.getObjectDelta().clone())); // CBuiltinLeafInfo: java.lang.String this.channel = ((o.channel == null)?null:o.getChannel()); }
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = 1; { String theOldShadowOid; theOldShadowOid = this.getOldShadowOid(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "oldShadowOid", theOldShadowOid), currentHashCode, theOldShadowOid); } { ShadowType theCurrentShadow; theCurrentShadow = this.getCurrentShadow(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "currentShadow", theCurrentShadow), currentHashCode, theCurrentShadow); } { ObjectDeltaType theObjectDelta; theObjectDelta = this.getObjectDelta(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "objectDelta", theObjectDelta), currentHashCode, theObjectDelta); } { String theChannel; theChannel = this.getChannel(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "channel", theChannel), currentHashCode, theChannel); } return currentHashCode; }
public void notifyChange(ResourceObjectShadowChangeDescriptionType changeDescription, OperationResult parentResult, Task task) throws SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ObjectNotFoundException, GenericConnectorException, ObjectAlreadyExistsException, ExpressionEvaluationException{ String oldShadowOid = changeDescription.getOldShadowOid(); ResourceEventDescription eventDescription = new ResourceEventDescription();
lhsOldShadowOid = this.getOldShadowOid(); String rhsOldShadowOid; rhsOldShadowOid = that.getOldShadowOid(); if (!strategy.equals(LocatorUtils.property(thisLocator, "oldShadowOid", lhsOldShadowOid), LocatorUtils.property(thatLocator, "oldShadowOid", rhsOldShadowOid), lhsOldShadowOid, rhsOldShadowOid)) { return false;