Interface StatusItemService


public interface StatusItemService
Service to manage the items of the status field
  • Method Details

    • newBuilder

      StatusItemBuilder newBuilder()
      Get a new builder to create items for a status field
      Returns:
      the status builder
    • create

      StatusItem create(StatusItemBuilder builder)
      Create a new status item
      Parameters:
      builder - The specific builder
      Returns:
      The status item
    • getItems

      List<StatusItem> getItems(StatusField field)
      Get the list of items for a status field
      Parameters:
      field - The status field
      Returns:
      the list of items
    • getAllItems

      List<StatusItem> getAllItems()
      Get list of all items in the system
      Returns:
      the list of items
    • update

      void update(StatusItem item)
      Change the status item
      Parameters:
      item - The status item to change
    • delete

      void delete(StatusItem item)
      Delete the status item
      Parameters:
      item - The item to delete
    • getItemByText

      StatusItem getItemByText(StatusField field, String text)
      Get the item in Status by its text
      Parameters:
      field - The status field
      text - The text to find
      Returns:
      The item or null