コード例 #1
0
  /** {@inheritDoc} */
  @Override
  protected void validateEntityState() throws InternalStateValidationException {

    InternalStateValidationException.create()
        .notNull(membership, "membership")
        .endExpressionAndValidate();
  }
コード例 #2
0
  /** {@inheritDoc} */
  @Override
  protected void validateEntityState() throws InternalStateValidationException {

    InternalStateValidationException.create()
        .notNullOrEmpty(realm, "realm")
        .notNullOrEmpty(group, "group")
        .notNullOrEmpty(qualifier, "qualifier")
        .endExpressionAndValidate();
  }
コード例 #3
0
  /** {@inheritDoc} */
  @Override
  protected void validateEntityState() throws InternalStateValidationException {

    InternalStateValidationException.create()
        .notTrue(
            severitySortOrder <= 0,
            "Cannot handle zero or negative 'severitySortOrder'. (Got: " + severitySortOrder + ")")
        .notNull(shortDescription, "shortDescription")
        .notNull(fullDescription, "fullDescription")
        .endExpressionAndValidate();
  }