/** * Create an instance of {@link ResourceObjectShadowChangeDescriptionType } * */ public ResourceObjectShadowChangeDescriptionType createResourceObjectShadowChangeDescriptionType() { return new ResourceObjectShadowChangeDescriptionType(); }
/** * 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 ResourceObjectShadowChangeDescriptionType channel(String value) { setChannel(value); return this; }
String oid = user.getLinkRef().get(0).getOid(); ResourceObjectShadowChangeDescriptionType changeDescription = new ResourceObjectShadowChangeDescriptionType(); ObjectDeltaType delta = new ObjectDeltaType(); delta.setChangeType(ChangeTypeType.DELETE); delta.setObjectType(ShadowType.COMPLEX_TYPE); delta.setOid(oid); changeDescription.setObjectDelta(delta); changeDescription.setOldShadowOid(oid); changeDescription.setChannel(SchemaConstants.CHANNEL_WEB_SERVICE_URI);
ResourceObjectShadowChangeDescriptionType changeDescription = new ResourceObjectShadowChangeDescriptionType(); ObjectDeltaType delta = new ObjectDeltaType(); delta.setChangeType(ChangeTypeType.ADD); delta.setObjectToAdd(anglicaAccount); delta.setObjectType(ShadowType.COMPLEX_TYPE); changeDescription.setObjectDelta(delta); changeDescription.setChannel(SchemaConstants.CHANNEL_WEB_SERVICE_URI);
public ResourceObjectShadowChangeDescriptionType oldShadowOid(String value) { setOldShadowOid(value); return this; }
public ResourceObjectShadowChangeDescriptionType objectDelta(ObjectDeltaType value) { setObjectDelta(value); return this; }
ResourceObjectShadowChangeDescriptionType changeDescription = new ResourceObjectShadowChangeDescriptionType(); ObjectDeltaType delta = new ObjectDeltaType(); delta.setChangeType(ChangeTypeType.MODIFY); changeDescription.setObjectDelta(delta); changeDescription.setOldShadowOid(oid); changeDescription.setChannel(SchemaConstants.CHANNEL_WEB_SERVICE_URI);
/** * 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); } }
String oid = user.getLinkRef().get(0).getOid(); ResourceObjectShadowChangeDescriptionType changeDescription = new ResourceObjectShadowChangeDescriptionType(); ObjectDeltaType delta = new ObjectDeltaType(); delta.setChangeType(ChangeTypeType.MODIFY); changeDescription.setObjectDelta(delta); changeDescription.setOldShadowOid(oid); changeDescription.setChannel(SchemaConstants.CHANNEL_WEB_SERVICE_URI);
/** * Create an instance of {@link ResourceObjectShadowChangeDescriptionType } * */ public ResourceObjectShadowChangeDescriptionType createResourceObjectShadowChangeDescriptionType() { return new ResourceObjectShadowChangeDescriptionType(); }
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; }
/** * Create an instance of {@link ResourceObjectShadowChangeDescriptionType } * */ public ResourceObjectShadowChangeDescriptionType createResourceObjectShadowChangeDescriptionType() { return new ResourceObjectShadowChangeDescriptionType(); }
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; lhsCurrentShadow = this.getCurrentShadow(); ShadowType rhsCurrentShadow; rhsCurrentShadow = that.getCurrentShadow(); if (!strategy.equals(LocatorUtils.property(thisLocator, "currentShadow", lhsCurrentShadow), LocatorUtils.property(thatLocator, "currentShadow", rhsCurrentShadow), lhsCurrentShadow, rhsCurrentShadow)) { return false; lhsObjectDelta = this.getObjectDelta(); ObjectDeltaType rhsObjectDelta; rhsObjectDelta = that.getObjectDelta(); if (!strategy.equals(LocatorUtils.property(thisLocator, "objectDelta", lhsObjectDelta), LocatorUtils.property(thatLocator, "objectDelta", rhsObjectDelta), lhsObjectDelta, rhsObjectDelta)) { return false; lhsChannel = this.getChannel(); String rhsChannel; rhsChannel = that.getChannel(); if (!strategy.equals(LocatorUtils.property(thisLocator, "channel", lhsChannel), LocatorUtils.property(thatLocator, "channel", rhsChannel), lhsChannel, rhsChannel)) { return false;
public ResourceObjectShadowChangeDescriptionType beginChangeDescription() { ResourceObjectShadowChangeDescriptionType value = new ResourceObjectShadowChangeDescriptionType(); changeDescription(value); return value; }
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(); ShadowType currentShadowType = changeDescription.getCurrentShadow(); LOGGER.trace("resolving current shadow"); if (currentShadowType != null){ ObjectDeltaType deltaType = changeDescription.getObjectDelta(); ObjectDelta delta = null; eventDescription.setDelta(delta); eventDescription.setSourceChannel(changeDescription.getChannel());