com.atlassian.jira.bc.config.StatusService |
Known Indirect Subclasses |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
This class contains methods for managing Status
es with validation
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | MAX_STATUS_LENGTH | Maximum length allowed for the name of a status. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Validates and when validation is performed successfully creates new status basing on given parameters
| |||||||||||
Validates and when validation is performed successfully alters given status basing on given parameters
| |||||||||||
Gets a list of workflows which contains given status
| |||||||||||
Get a status by id.
| |||||||||||
Returns a boolean whether status lozenge is enabled or not
| |||||||||||
Removes a status.
| |||||||||||
Validates new status basing on given parameters
| |||||||||||
Validates given status basing on given parameters
| |||||||||||
Validates removal of given status
|
Maximum length allowed for the name of a status.
Validates and when validation is performed successfully creates new status basing on given parameters
user | User performing operation |
---|---|
name | Name of the status. Should neither be blank nor duplicate existing name |
description | Optional description of the status |
iconUrl | URL of the icon for representing given status. May be relative or absolute. Cannot be null |
statusCategory | StatusCategory for given status. Cannot be null |
Validates and when validation is performed successfully alters given status basing on given parameters
user | User performing operation |
---|---|
status | The status to be edited |
name | Name of the status. Should neither be blank nor duplicate existing name |
description | Optional description of the status |
iconUrl | URL of the icon for representing given status. May be relative or absolute. Cannot be null |
statusCategory | StatusCategory for given status. Cannot be null |
Gets a list of workflows which contains given status
user | User performing operation |
---|---|
status | The Status |
Get a status by id.
user | User performing operation |
---|---|
id | status id |
Status
, or null if no status with this id exists.
Returns a boolean whether status lozenge is enabled or not
Removes a status.
user | User performing operation |
---|---|
status | Status |
Validates new status basing on given parameters
user | User performing operation |
---|---|
name | Name of the status. Should neither be blank nor duplicate existing name |
description | Optional description of the status |
iconUrl | URL of the icon for representing given status. May be relative or absolute. Cannot be null |
statusCategory | StatusCategory for given status. Cannot be null |
Validates given status basing on given parameters
user | User performing operation |
---|---|
status | The status to be edited |
name | Name of the status. Should neither be blank nor duplicate existing name |
description | Optional description of the status |
iconUrl | URL of the icon for representing given status. May be relative or absolute. Cannot be null |
statusCategory | StatusCategory for given status. Cannot be null |
Validates removal of given status
user | User performing operation |
---|---|
status | The Status |