public boolean isSynchronizationEnabled() { if (objectSynchronization == null) { return false; } return BooleanUtils.isNotFalse(objectSynchronization.isEnabled()); }
public static boolean isSynchronizationOpportunistic(ResourceType resourceType) { SynchronizationType synchronization = resourceType.getSynchronization(); if (synchronization == null) { return false; } if (synchronization.getObjectSynchronization().isEmpty()) { return false; } ObjectSynchronizationType objectSynchronizationType = synchronization.getObjectSynchronization().iterator().next(); if (objectSynchronizationType.isEnabled() != null && !objectSynchronizationType.isEnabled()) { return false; } Boolean isOpportunistic = objectSynchronizationType.isOpportunistic(); return isOpportunistic == null || isOpportunistic; }
} else { ObjectSynchronizationType syncType = resource.getSynchronization().getObjectSynchronization().iterator().next(); if (syncType.isEnabled() != null && !syncType.isEnabled()) { OperationResult subresult = result.createSubresult(IMPORT_ACCOUNTS_FROM_RESOURCE+".check"); subresult.recordWarning("Synchronization is disabled for "+resource+", import will probably do nothing");
clone.enabled = ((this.enabled == null)?null:this.isEnabled());
this.enabled = ((o.enabled == null)?null:o.isEnabled());
theEnabled = this.isEnabled(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "enabled", theEnabled), currentHashCode, theEnabled);