All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.acrolinx.client.sdk.check.CheckOptionsBuilder Maven / Gradle / Ivy

There is a newer version: 1.0.22
Show newest version
/**
 * Copyright (c) 2019-present Acrolinx GmbH
 */

package com.acrolinx.client.sdk.check;

import java.util.List;

public class CheckOptionsBuilder
{
    private String guidanceProfileId;
    private String batchId;
    private List reportTypes;
    private CheckType checkType;
    private String contentFormat = "AUTO";
    private boolean disableCustomFieldValidation;

    CheckOptionsBuilder()
    {
    }

    public CheckOptionsBuilder withGuidanceProfileId(String guidanceProfileId)
    {
        this.guidanceProfileId = guidanceProfileId;
        return this;
    }

    public CheckOptionsBuilder withBatchId(String batchId)
    {
        this.batchId = batchId;
        return this;
    }

    public CheckOptionsBuilder withGenerateReportTypes(List reportTypes)
    {

        this.reportTypes = reportTypes;
        return this;
    }

    /**
     * 

* How to choose a correct Check Type? Following are different use cases of the check with * corresponding check type: *

* * * * * * * * * * * * * * * * * * * * * * * * * *
Check TypeUxUse case
interactiveInteractiveUser checks her own document.
batchInteractiveUser checks set of her own documents.
baselineNoninteractiveA repository of documents are checked as part of build job running nightly and the user * doesn't own the documents.
automatedNoninteractiveCheck of a single document for automated scenarios as for example a git hook or save a * document.
* * * @param checkType Based on the origin of check * @return CheckOptionsBuilder */ public CheckOptionsBuilder withCheckType(CheckType checkType) { this.checkType = checkType; return this; } public CheckOptionsBuilder withContentFormat(String contentFormat) { this.contentFormat = contentFormat; return this; } public CheckOptionsBuilder withCustomFieldValidationDisabled(boolean disableCustomFieldValidation) { this.disableCustomFieldValidation = disableCustomFieldValidation; return this; } public CheckOptions build() { return new CheckOptions(guidanceProfileId, batchId, reportTypes, checkType, contentFormat, disableCustomFieldValidation); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy