Class ProfileValidator.RejectionCause

java.lang.Object
fr.gouv.vitam.functional.administration.core.profile.ProfileValidator.RejectionCause
Enclosing interface:
ProfileValidator

public static class ProfileValidator.RejectionCause extends Object
Rejection Cause
  • Constructor Details

    • RejectionCause

      public RejectionCause(String error)
      Constructor
      Parameters:
      error -
  • Method Details

    • rejectDuplicatedInDatabase

      public static ProfileValidator.RejectionCause rejectDuplicatedInDatabase(String identifier)
      Verify for each profile if already exists one in database that have the same identifier and/or name. The database my manage this kind of constraint (by creating an unique index on the field or column)
      Parameters:
      identifier -
      Returns:
      RejectionCause
    • rejectMandatoryMissing

      public static ProfileValidator.RejectionCause rejectMandatoryMissing(String fieldName)
      Reject if one of multiple mandatory parameter are null
      Parameters:
      fieldName -
      Returns:
      RejectionCause
    • rejectSeveralMandatoryMissing

      public static ProfileValidator.RejectionCause rejectSeveralMandatoryMissing(List<String> fieldsName)
      Reject if multiple mandatory parameters are null
      Parameters:
      fieldsName -
      Returns:
      RejectionCause
    • getReason

      public String getReason()
      Get reason
      Returns:
      reason