congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ValuePolicyType.getMinOccurs
Code IndexAdd Tabnine to your IDE (free)

How to use
getMinOccurs
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.getMinOccurs (Showing top 3 results out of 315)

origin: Evolveum/midpoint

private int getMinOccurs() {
  if (credentialPolicy == null) {
    return 0;
  }
  String minOccursPhrase = credentialPolicy.getMinOccurs();
  if (minOccursPhrase == null && valuePolicy != null) {
    minOccursPhrase = valuePolicy.getMinOccurs();       // deprecated but let's consider it
  }
  Integer minOccurs = XsdTypeMapper.multiplicityToInteger(minOccursPhrase);
  return defaultIfNull(minOccurs, 0);
}
origin: Evolveum/midpoint

defaultIfNull(XsdTypeMapper.multiplicityToInteger(pp.getMinOccurs()), 0) == 0) {
origin: Evolveum/midpoint

private void setDeprecatedPasswordPolicyProperties(ValuePolicyType passwordPolicyType,
    PasswordCredentialsPolicyType passwd) {
  PasswordLifeTimeType lifetime = passwordPolicyType.getLifetime();
  if (lifetime != null) {
    Integer expiration = lifetime.getExpiration();
    if (expiration != null && expiration != 0 && passwd.getMaxAge() == null) {
      passwd.setMaxAge(daysToDuration(expiration));
    }
    Integer minPasswordAge = lifetime.getMinPasswordAge();
    if (minPasswordAge != null && minPasswordAge != 0 && passwd.getMinAge() == null) {
      passwd.setMinAge(daysToDuration(minPasswordAge));
    }
    Integer passwordHistoryLength = lifetime.getPasswordHistoryLength();
    if (passwordHistoryLength != null && passwd.getHistoryLength() == null) {
      passwd.setHistoryLength(passwordHistoryLength);
    }
  }
  String minOccurs = passwordPolicyType.getMinOccurs();
  if (minOccurs != null && passwd.getMinOccurs() == null) {
    passwd.setMinOccurs(minOccurs);
  }
}
com.evolveum.midpoint.xml.ns._public.common.common_3ValuePolicyTypegetMinOccurs

Popular methods of ValuePolicyType

    Popular in Java

    • Updating database using SQL prepared statement
    • getContentResolver (Context)
    • setScale (BigDecimal)
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • GridBagLayout (java.awt)
      The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
    • FileInputStream (java.io)
      An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
    • ServerSocket (java.net)
      This class represents a server-side socket that waits for incoming client connections. A ServerSocke
    • URLEncoder (java.net)
      This class is used to encode a string using the format required by application/x-www-form-urlencoded
    • Reference (javax.naming)
    • Loader (org.hibernate.loader)
      Abstract superclass of object loading (and querying) strategies. This class implements useful common
    • Top 17 Plugins for Android Studio
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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