Class BulkOperationResult

java.lang.Object
org.opencastproject.rest.BulkOperationResult

public class BulkOperationResult extends Object
This class is used to store the results of a bulk operation on an endpoint and to easily return those results.
  • Field Details

  • Constructor Details

    • BulkOperationResult

      public BulkOperationResult()
  • Method Details

    • addOk

      public void addOk(String id)
    • addAccepted

      public void addAccepted(String id)
    • addBadRequest

      public void addBadRequest(String id)
    • addNotFound

      public void addNotFound(String id)
    • addServerError

      public void addServerError(String id)
    • addOk

      public void addOk(Long id)
    • addBadRequest

      public void addBadRequest(Long id)
    • addUnauthorized

      public void addUnauthorized(String id)
    • addNotFound

      public void addNotFound(Long id)
    • addServerError

      public void addServerError(Long id)
    • getOks

      public org.json.simple.JSONArray getOks()
    • getAccepted

      public org.json.simple.JSONArray getAccepted()
    • getBadRequests

      public org.json.simple.JSONArray getBadRequests()
    • getUnauthorized

      public org.json.simple.JSONArray getUnauthorized()
    • getNotFound

      public org.json.simple.JSONArray getNotFound()
    • getServerError

      public org.json.simple.JSONArray getServerError()
    • toJson

      public String toJson()