use of com.evolveum.midpoint.xml.ns._public.common.common_3.ActivationStatusType in project midpoint by Evolveum.
the class ConnIdToMidPointConversion method convertEnable.
private void convertEnable(Attribute connIdAttr) throws SchemaException {
Boolean enabled = getSingleValue(connIdAttr, Boolean.class);
if (enabled == null) {
return;
}
ActivationType activation = ShadowUtil.getOrCreateActivation(resourceObjectBean);
ActivationStatusType activationStatus;
if (enabled) {
activationStatus = ActivationStatusType.ENABLED;
} else {
activationStatus = ActivationStatusType.DISABLED;
}
activation.setAdministrativeStatus(activationStatus);
activation.setEffectiveStatus(activationStatus);
LOGGER.trace("Converted activation administrativeStatus/effectiveStatus: {}", activationStatus);
}
Aggregations