|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@PublicApi public interface StatusService
This class contains methods for managing Statuses with validation
| Method Summary | |
|---|---|
ServiceOutcome<Status> |
createStatus(ApplicationUser user,
String name,
String description,
String iconUrl,
StatusCategory statusCategory)
Validates and when validation is performed successfully creates new status basing on given parameters |
ServiceOutcome<Status> |
editStatus(ApplicationUser user,
Status status,
String name,
String description,
String iconUrl,
StatusCategory statusCategory)
Validates and when validation is performed successfully alters given status basing on given parameters |
Status |
getStatusById(ApplicationUser user,
String id)
Get a status by id. |
ServiceResult |
removeStatus(ApplicationUser user,
Status status)
Removes a status. |
ServiceResult |
validateCreateStatus(ApplicationUser user,
String name,
String description,
String iconUrl,
StatusCategory statusCategory)
Validates new status basing on given parameters |
ServiceResult |
validateEditStatus(ApplicationUser user,
Status status,
String name,
String description,
String iconUrl,
StatusCategory statusCategory)
Validates given status basing on given parameters |
| Method Detail |
|---|
ServiceOutcome<Status> createStatus(ApplicationUser user,
String name,
String description,
String iconUrl,
StatusCategory statusCategory)
user - User performing operationname - Name of the status. Should neither be blank nor duplicate existing namedescription - Optional description of the statusiconUrl - URL of the icon for representing given status. May be relative or absolute. Cannot be nullstatusCategory - StatusCategory for given status. Cannot be null
validateCreateStatus(com.atlassian.jira.user.ApplicationUser, String, String, String, com.atlassian.jira.issue.status.category.StatusCategory)
ServiceResult validateCreateStatus(ApplicationUser user,
String name,
String description,
String iconUrl,
StatusCategory statusCategory)
user - User performing operationname - Name of the status. Should neither be blank nor duplicate existing namedescription - Optional description of the statusiconUrl - URL of the icon for representing given status. May be relative or absolute. Cannot be nullstatusCategory - StatusCategory for given status. Cannot be null
ServiceOutcome<Status> editStatus(ApplicationUser user,
Status status,
String name,
String description,
String iconUrl,
StatusCategory statusCategory)
user - User performing operationstatus - The status to be editedname - Name of the status. Should neither be blank nor duplicate existing namedescription - Optional description of the statusiconUrl - URL of the icon for representing given status. May be relative or absolute. Cannot be nullstatusCategory - StatusCategory for given status. Cannot be null
validateEditStatus(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.status.Status, String, String, String, com.atlassian.jira.issue.status.category.StatusCategory)
ServiceResult validateEditStatus(ApplicationUser user,
Status status,
String name,
String description,
String iconUrl,
StatusCategory statusCategory)
user - User performing operationstatus - The status to be editedname - Name of the status. Should neither be blank nor duplicate existing namedescription - Optional description of the statusiconUrl - URL of the icon for representing given status. May be relative or absolute. Cannot be nullstatusCategory - StatusCategory for given status. Cannot be null
Status getStatusById(ApplicationUser user,
String id)
user - User performing operationid - status id
Status, or null if no status with this id exists.
ServiceResult removeStatus(ApplicationUser user,
Status status)
user - User performing operationstatus - Status
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||