public ResourceConsistencyType clone() { ResourceConsistencyType object = new ResourceConsistencyType(); PrismContainerValue value = asPrismContainerValue().clone(); object.setupContainerValue(value); return object; }
public static ErrorSelectorType getConnectorErrorCriticality(ResourceType resourceType) { ResourceConsistencyType consistency = resourceType.getConsistency(); if (consistency == null) { return null; } return consistency.getConnectorErrorCriticality(); } }
public ErrorSelectorType beginConnectorErrorCriticality() { ErrorSelectorType value = new ErrorSelectorType(); connectorErrorCriticality(value); return value; }
@Override public boolean equals(Object object) { if (!(object instanceof ResourceConsistencyType)) { return false; } ResourceConsistencyType other = ((ResourceConsistencyType) object); return asPrismContainerValue().equivalent(other.asPrismContainerValue()); }
/** * Create an instance of {@link ResourceConsistencyType } * */ public ResourceConsistencyType createResourceConsistencyType() { return new ResourceConsistencyType(); }
protected boolean isOperationRetryEnabled(ResourceType resource) { if (resource.getConsistency() == null) { return true; } if (resource.getConsistency().isPostpone() == null) { Integer operationRetryMaxAttempts = resource.getConsistency().getOperationRetryMaxAttempts(); if (operationRetryMaxAttempts == null) { return true; } return operationRetryMaxAttempts != 0; } return resource.getConsistency().isPostpone(); }
private boolean shouldExecuteResourceOperationDirectly(ProvisioningContext ctx) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, ExpressionEvaluationException { if (ctx.isPropagation()) { return true; } ResourceConsistencyType consistency = ctx.getResource().getConsistency(); if (consistency == null) { return true; } Duration operationGroupingInterval = consistency.getOperationGroupingInterval(); if (operationGroupingInterval == null) { return true; } return false; }
public static Duration getRetryPeriod(ProvisioningContext ctx) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, ExpressionEvaluationException { Duration period = null; ResourceConsistencyType consistency = ctx.getResource().getConsistency(); if (consistency != null) { period = consistency.getOperationRetryPeriod(); } if (period == null) { period = DEFAULT_OPERATION_RETRY_PERIOD_DURATION; } return period; }
public static Duration getDeadShadowRetentionPeriod(ProvisioningContext ctx) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, ExpressionEvaluationException { Duration period = null; ResourceConsistencyType consistency = ctx.getResource().getConsistency(); if (consistency != null) { period = consistency.getDeadShadowRetentionPeriod(); } if (period == null) { period = DEFAULT_DEAD_SHADOW_RETENTION_PERIOD_DURATION; } return period; }
public static Duration getGracePeriod(ProvisioningContext ctx) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, ExpressionEvaluationException { Duration gracePeriod = null; ResourceConsistencyType consistency = ctx.getResource().getConsistency(); if (consistency != null) { gracePeriod = consistency.getPendingOperationGracePeriod(); } return gracePeriod; }
public static int getMaxRetryAttempts(ProvisioningContext ctx) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, ExpressionEvaluationException { ResourceConsistencyType consistency = ctx.getResource().getConsistency(); if (consistency == null) { return DEFAULT_OPERATION_RETRY_MAX_ATTEMPTS; } Integer operationRetryMaxAttempts = consistency.getOperationRetryMaxAttempts(); if (operationRetryMaxAttempts == null) { return DEFAULT_OPERATION_RETRY_MAX_ATTEMPTS; } return operationRetryMaxAttempts; }
@XmlElement(defaultValue = "asynchronous", name = "recordPendingOperations") @XmlSchemaType(name = "string") public RecordPendingOperationsType getRecordPendingOperations() { return PrismForJAXBUtil.getPropertyValue(asPrismContainerValue(), F_RECORD_PENDING_OPERATIONS, RecordPendingOperationsType.class); }
/** * Create an instance of {@link ResourceConsistencyType } * */ public ResourceConsistencyType createResourceConsistencyType() { return new ResourceConsistencyType(); }
return; Duration operationGroupingInterval = resourceConsistencyType.getOperationGroupingInterval(); if (operationGroupingInterval == null) { LOGGER.warn("Skipping propagation of {} because no there is no operationGroupingInterval defined in resource", shadow);
@XmlElement(defaultValue = "none", name = "shadowConstraintsCheck") @XmlSchemaType(name = "string") public ShadowCheckType getShadowConstraintsCheck() { return PrismForJAXBUtil.getPropertyValue(asPrismContainerValue(), F_SHADOW_CONSTRAINTS_CHECK, ShadowCheckType.class); }
/** * Create an instance of {@link ResourceConsistencyType } * */ public ResourceConsistencyType createResourceConsistencyType() { return new ResourceConsistencyType(); }
ErrorSelectorType errorSelector = null; if (resourceType.getConsistency() != null) { errorSelector = resourceType.getConsistency().getConnectorErrorCriticality();
@XmlElement(defaultValue = "false", name = "caseIgnoreAttributeNames") public Boolean isCaseIgnoreAttributeNames() { return PrismForJAXBUtil.getPropertyValue(asPrismContainerValue(), F_CASE_IGNORE_ATTRIBUTE_NAMES, Boolean.class); }
public ResourceConsistencyType beginConsistency() { ResourceConsistencyType value = new ResourceConsistencyType(); consistency(value); return value; }
@XmlElement(defaultValue = "PT30M", name = "operationRetryPeriod") public Duration getOperationRetryPeriod() { return PrismForJAXBUtil.getPropertyValue(asPrismContainerValue(), F_OPERATION_RETRY_PERIOD, Duration.class); }