|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@PublicApi public interface StatusManager
Manager for Status
es.
Method Summary | |
---|---|
Status |
createStatus(String name,
String description,
String iconUrl)
Creates a new status. |
void |
editStatus(Status status,
String name,
String description,
String iconUrl)
Edit an existing status. |
Status |
getStatus(String id)
Get a status by id. |
Collection<Status> |
getStatuses()
|
void |
removeStatus(String id)
Removes a status. |
Method Detail |
---|
Status createStatus(String name, String description, String iconUrl)
name
- name of the status. Cannot be blank or null and has to be unique.description
- description of the status.iconUrl
- icon url for this status. Cannot be blank or null.
Status
.void editStatus(Status status, String name, String description, String iconUrl)
status
- status to edit.name
- new name. Has to be unique.description
- new descriptioniconUrl
- new icon urlCollection<Status> getStatuses()
Status
esvoid removeStatus(String id)
id
- status id
IllegalArgumentException
- if this status is associated with any workflow.Status getStatus(String id)
id
- status id
Status
, or null if no status with this id exists.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |