Interface StatusApi


public interface StatusApi
Contains all API operations for handling Statuses.
  • Method Details Link icon

    • getStatus Link icon

      Status getStatus(UUID statusId)
      Returns the Status with the given id.
      Parameters:
      statusId - the id of the Status
      Returns:
      the found Status
    • getStatusByName Link icon

      Status getStatusByName(String statusName)
      Returns the Status with the given name.
      Parameters:
      statusName - the name of the Status
      Returns:
      the found Status
    • exists Link icon

      boolean exists(UUID statusId)
      Returns true if a Status with given id exists.
      Parameters:
      statusId - the id of the Status
      Returns:
      true if a Status with given id exists, false otherwise
    • addStatus Link icon

      Status addStatus(AddStatusRequest addStatusRequest)
      Adds a Status.
      Parameters:
      addStatusRequest - information required to create the Status
      Returns:
      the created Status
    • removeStatus Link icon

      void removeStatus(UUID statusId)
      Remove the Status with the given id.
      Parameters:
      statusId - the id of the Status
    • findStatuses Link icon

      @SecurityAuditMethod(resultFormatter=com.collibra.dgc.core.api.internal.security.audit.formatter.PagedResponseFormatter.class) PagedResponse<Status> findStatuses(FindStatusesRequest findStatusesRequest)
      Returns Statuses matching the given search input
      Parameters:
      findStatusesRequest - specified search criteria for search Statuses.
      Returns:
      the found Statuses
    • changeStatus Link icon

      Status changeStatus(ChangeStatusRequest changeStatusRequest)
      Changes the Status with the information present in the request. Only the information present in the request is considered. Other properties are left untouched.
      Parameters:
      changeStatusRequest - changes to be performed on the Status
      Returns:
      the update Status.
    • addStatuses Link icon

      @SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.CollectionFormatter.class) List<Status> addStatuses(List<AddStatusRequest> addStatusRequests)
      Adds Statuses.
      Parameters:
      addStatusRequests - list of information required to create the Status
      Returns:
      the list of created Statuses
    • removeStatuses Link icon

      void removeStatuses(List<UUID> statusIds)
      Removes the Statuses with the given ids.
      Parameters:
      statusIds - the Status Ids
    • changeStatuses Link icon

      @SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.CollectionFormatter.class) List<Status> changeStatuses(List<ChangeStatusRequest> changeStatusRequests)
      Changes the Statuses with the information present in the request.
      Parameters:
      changeStatusRequests - changes to be performed on the Statuses
      Returns:
      the list of updated Statuses