Class BulkBuilder

    • Method Detail

      • isExpectedResponseCode

        protected boolean isExpectedResponseCode​(int httpStatus)
        tells this abstract class if the http status from the server is the expected success status
        Specified by:
        isExpectedResponseCode in class RequestBuilder<BulkResponse>
        Parameters:
        httpStatus - the http status from the server
        Returns:
        true if the response status shows success
      • getResource

        protected String getResource()
        overrides the default method from the superclass to have easier control of the resource that will be put into the request body
      • failOnErrors

        public BulkBuilder failOnErrors​(Integer failOnErrors)
        sets how many errors are allowed on the server side before the request should be rolled back
        Parameters:
        failOnErrors - the number of errors that are accepted on the server side
      • bulkRequestOperation

        public BulkBuilder.BulkRequestOperationCreator bulkRequestOperation​(String path,
                                                                            String id)
        sets the path to the resource endpoint e.g. "/Users" or "/Groups"
        Parameters:
        path - "/Users", "/Groups" or any other registered resource path
        id - the id of an existing resource in case of patch, update or delete