Refine search
/** * Sets the script to be evaluated. * * @param definitionScript the script to be evaluated */ public void setScript(@Nonnull final EvaluableScript definitionScript) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); script = Constraint.isNotNull(definitionScript, "Attribute definition script cannot be null"); }
/** * Set an instance of {@link CredentialsProvider} used for authentication by the HttpClient instance. * * @param provider the credentials provider * * @deprecated use {@link #setHttpClientSecurityParameters(HttpClientSecurityParameters)} */ public void setCredentialsProvider(@Nullable final CredentialsProvider provider) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); credentialsProvider = provider; }
/** * Set the ID of the {@link AbstractDataConnector} whose values will be used in the event that this data connector * experiences an error. * * @param id ID of the {@link AbstractDataConnector} whose values will be used in the event that this data connector * experiences an error */ public void setFailoverDataConnectorId(@Nullable final String id) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); failoverDataConnectorId = StringSupport.trimOrNull(id); }
/** * Set the format of the name identifier. * * @param nameFormat format of the name identifier */ public final void setNameFormat(@Nullable final String nameFormat) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); format = StringSupport.trimOrNull(nameFormat); }
/** {@inheritDoc} */ @Nonnull @NonnullElements public Iterable<String> resolve( @Nullable final CriteriaSet criteria) throws ResolverException { ComponentSupport.ifNotInitializedThrowUninitializedComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); final String entityID = resolveSingle(criteria); if (entityID != null) { return Collections.singletonList(entityID); } else { return Collections.emptyList(); } }
/** * Set the lookup strategy used to locate the object to evaluate. * * @param strategy lookup function */ public void setObjectLookupStrategy(@Nullable final Function<ProfileRequestContext,SAMLObject> strategy) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); objectLookupStrategy = Constraint.isNotNull(strategy, "Object lookup strategy cannot be null"); }
/** * Set the error messages to check for classifying a driver error as retryable, generally indicating * a lock violation or duplicate insert that signifies a broken database. * * @param errors retryable messages */ public void setRetryableErrors(@Nullable @NonnullElements final Collection<String> errors) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); retryableErrors = new ArrayList(StringSupport.normalizeStringCollection(errors)); }
/** * Set the OIDs to search for, in order of preference. * * @param ids RDN OIDs to search for */ public void setObjectIds(@Nonnull @NonnullElements final List<String> ids) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); Constraint.isNotNull(ids, "OID list cannot be null"); objectIds = new ArrayList<>(StringSupport.normalizeStringCollection(ids)); }
/** * get the compiled pattern. This is compiled in init and hence there is a guard. * * @return Returns the pattern. */ @Nonnull public Pattern getPattern() { ComponentSupport.ifNotInitializedThrowUninitializedComponentException(this); Constraint.isFalse(isPartialMatch(), "getPattern is only meaningful for a non partial Match, use getValue()"); return pattern; }
/** * Set the expected Action URI value. * * @param uri the new URI value */ public void setExpectedActionURI(@Nullable final String uri) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); expectedActionURI = StringSupport.trimOrNull(uri); }
/** * Set the logging ID to populate into the context. * * @param id logging ID to populate into the context */ public void setLoggingId(@Nullable final String id) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); loggingId = StringSupport.trimOrNull(id); }
/** * Set the optional client security parameters. * * @param params the new client security parameters */ public void setHttpClientSecurityParameters(@Nullable final HttpClientSecurityParameters params) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); httpClientSecurityParameters = params; }
/** * Set the property names to treat as defunct. * * @param properties defunct property names */ public void setDeadProperties(@Nonnull @NonnullElements final Collection<String> properties) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); Constraint.isNotNull(properties, "Property collection cannot be null"); deadProperties = StringSupport.normalizeStringCollection(properties); }
/** * Set the {@link HttpClient} to use. * * @param client client to use */ public void setHttpClient(@Nonnull final HttpClient client) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); httpClient = Constraint.isNotNull(client, "HttpClient cannot be null"); }
/** * Set the Fault Action URI value. * * @param uri the new URI value */ public void setFaultActionURI(@Nullable final String uri) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); faultActionURI = StringSupport.trimOrNull(uri); }
/** * Set the {@link DateTime} formatting string to apply when writing {@link DateTime}-valued fields. * * @param format formatting string */ public void setDateTimeFormat(@Nullable @NotEmpty final String format) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); dateTimeFormat = StringSupport.trimOrNull(format); }
/** * Set the attribute IDs to pass into the resolver. * * @param attributeIds attribute ID collection */ public void setAttributesToResolve(@Nonnull @NonnullElements final Collection<String> attributeIds) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); Constraint.isNotNull(attributeIds, "Attribute ID collection cannot be null"); attributesLookupStrategy = FunctionSupport.<ProfileRequestContext,Collection<String>>constant( StringSupport.normalizeStringCollection(attributeIds)); }
/** * Set the {@link VelocityEngine} to be used. * * @param velocityEngine engine to be used */ public void setVelocityEngine(@Nonnull final VelocityEngine velocityEngine) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); engine = Constraint.isNotNull(velocityEngine, "VelocityEngine cannot be null"); }
/** * Set the URL template to be evaluated. * * @param text template to be evaluated */ public void setURLTemplateText(@Nullable final String text) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); ComponentSupport.ifDestroyedThrowDestroyedComponentException(this); urlTemplateText = StringSupport.trimOrNull(text); }
/** * Set resource. * * @param res resource */ public void setResource(@Nullable final String res) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); resourceLookupStrategy = FunctionSupport.constant(StringSupport.trimOrNull(res)); }