public void setObjectSynchronization(ObjectSynchronizationType objectSynchronization) { this.intent = objectSynchronization.getIntent(); this.objectSynchronization = objectSynchronization; }
ObjectTypeRecord(ObjectSynchronizationType synchronization) { this(synchronization.getKind(), synchronization.getIntent()); }
private String getName(ObjectSynchronizationType objectSync) { StringBuilder sb = new StringBuilder(); if (objectSync.getName() != null) { sb.append(objectSync.getName()); sb.append(" ("); } sb.append("kind: "); sb.append(fillDefault(objectSync.getKind())); sb.append(", intent: "); sb.append(fillDefault(objectSync.getIntent())); if (objectSync.getName() != null) { sb.append(")"); } return sb.toString(); }
@Nullable public static ObjectSynchronizationType findObjectSynchronization(@Nullable ResourceType resource, @Nullable ShadowKindType kind, @Nullable String intent) { if (resource == null || resource.getSynchronization() == null) { return null; } for (ObjectSynchronizationType def : resource.getSynchronization().getObjectSynchronization()) { if (fillDefault(kind).equals(fillDefault(def.getKind())) && fillDefault(intent).equals(fillDefault(def.getIntent()))) { return def; } } return null; }
@Override public String toString() { String policyDesc = null; if (objectSynchronization != null) { if (objectSynchronization.getName() == null) { policyDesc = "(kind=" + objectSynchronization.getKind() + ", intent=" + objectSynchronization.getIntent() + ", objectclass=" + objectSynchronization.getObjectClass() + ")"; } else { policyDesc = objectSynchronization.getName(); } } return policyDesc; }
String policyIntent = synchronizationPolicy.getIntent();
clone.intent = ((this.intent == null)?null:this.getIntent());
this.intent = ((o.intent == null)?null:o.getIntent());
theIntent = this.getIntent(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "intent", theIntent), currentHashCode, theIntent);