Tabnine Logo
ValuePolicyType.getProhibitedValues
Code IndexAdd Tabnine to your IDE (free)

How to use
getProhibitedValues
method
in
com.evolveum.midpoint.xml.ns._public.common.common_3.ValuePolicyType

Best Java code snippets using com.evolveum.midpoint.xml.ns._public.common.common_3.ValuePolicyType.getProhibitedValues (Showing top 2 results out of 315)

origin: Evolveum/midpoint

private <O extends ObjectType> boolean checkAttempt(String generatedValue, ValuePolicyType policy, AbstractValuePolicyOriginResolver<O> originResolver, String shortDesc, Task task, OperationResult result) throws SchemaException, ObjectNotFoundException, ExpressionEvaluationException, CommunicationException, ConfigurationException, SecurityViolationException {
  StringPolicyType stringPolicy = policy.getStringPolicy();
  if (stringPolicy != null) {
    LimitationsType limitationsType = stringPolicy.getLimitations();
    if (limitationsType != null) {
      List<CheckExpressionType> checkExpressionTypes = limitationsType.getCheckExpression();
      if (!checkExpressions(generatedValue, checkExpressionTypes, originResolver, shortDesc, task, result)) {
        LOGGER.trace("Check expression returned false for generated value in {}", shortDesc);
        return false;
      }
    }
  }
  if (!checkProhibitedValues(generatedValue, policy.getProhibitedValues(), originResolver, null, shortDesc, task, result)) {
    LOGGER.trace("Generated value is prohibited in {}", shortDesc);
    return false;
  }
  // TODO Check pattern
  return true;
}
 
origin: Evolveum/midpoint

testProhibitedValues(newValue, pp.getProhibitedValues(), originResolver, shortDesc, task, result, messages);
testCheckExpression(newValue, lims, originResolver, shortDesc, task, result, messages);
com.evolveum.midpoint.xml.ns._public.common.common_3ValuePolicyTypegetProhibitedValues

Popular methods of ValuePolicyType

    Popular in Java

    • Making http post requests using okhttp
    • onRequestPermissionsResult (Fragment)
    • compareTo (BigDecimal)
    • setContentView (Activity)
    • List (java.util)
      An ordered collection (also known as a sequence). The user of this interface has precise control ove
    • BlockingQueue (java.util.concurrent)
      A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
    • ZipFile (java.util.zip)
      This class provides random read access to a zip file. You pay more to read the zip file's central di
    • Reference (javax.naming)
    • Response (javax.ws.rs.core)
      Defines the contract between a returned instance and the runtime when an application needs to provid
    • Reflections (org.reflections)
      Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
    • Best IntelliJ plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now