public interface LabelService
Modifier and Type | Method and Description |
---|---|
Label |
apply(ApplyLabelRequest request)
|
Label |
create(String labelName)
Creates a new label based on the given labelName.
|
Page<Label> |
findAll(PageRequest pageRequest)
|
Page<Label> |
findByLabelable(Labelable labelable,
PageRequest pageRequest)
|
Optional<Label> |
findByName(String labelName)
|
Page<Label> |
findByPrefix(String labelPref,
PageRequest pageRequest)
|
Label |
getByName(String labelName)
Returns a
Label based on the name. |
void |
remove(RemoveLabelRequest request)
|
Page<Labelable> |
searchLabelables(LabelableSearchRequest searchRequest,
PageRequest pageRequest)
|
@Nonnull Label apply(@Nonnull ApplyLabelRequest request)
@Nonnull Label create(@Nonnull String labelName)
The labelName has to be at least 3 characters and cannot exceed 50 characters, the labelName also has to be a lowercase string consisting out of alpanumeric characters, "-" is also allowed.
labelName
- the name for the newly created label.Label
@Nonnull Page<Label> findAll(@Nonnull PageRequest pageRequest)
pageRequest
- the PageRequest
Page
of Label
@Nonnull Page<Label> findByLabelable(@Nonnull Labelable labelable, @Nonnull PageRequest pageRequest)
labelable
- the Labelable
that will have it's related labels returnedpageRequest
- the PageRequest
Page
of Label
@Nonnull Page<Label> findByPrefix(@Nonnull String labelPref, @Nonnull PageRequest pageRequest)
labelPref
- the prefix the labels
have to start withpageRequest
- the PageRequest
Page
of Label
@Nonnull Page<Labelable> searchLabelables(@Nonnull LabelableSearchRequest searchRequest, @Nonnull PageRequest pageRequest)
searchRequest
- a LabelableSearchRequest
pageRequest
- the PageRequest
Page
of labelables
void remove(@Nonnull RemoveLabelRequest request)
Copyright © 2022 Atlassian. All rights reserved.