Interface StatusItemService
public interface StatusItemService
Service to manage the items of the status field
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(StatusItemBuilder builder) Create a new status itemvoid
delete
(StatusItem item) Delete the status itemGet list of all items in the systemgetItemByText
(StatusField field, String text) Get the item in Status by its textgetItems
(StatusField field) Get the list of items for a status fieldGet a new builder to create items for a status fieldvoid
update
(StatusItem item) Change the status item
-
Method Details
-
newBuilder
StatusItemBuilder newBuilder()Get a new builder to create items for a status field- Returns:
- the status builder
-
create
Create a new status item- Parameters:
builder
- The specific builder- Returns:
- The status item
-
getItems
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
Change the status item- Parameters:
item
- The status item to change
-
delete
Delete the status item- Parameters:
item
- The item to delete
-
getItemByText
Get the item in Status by its text- Parameters:
field
- The status fieldtext
- The text to find- Returns:
- The item or null
-