Interface DetailViewFieldConfigurationService
- All Known Implementing Classes:
DetailViewFieldConfigurationServiceImpl
public interface DetailViewFieldConfigurationService
Services to configure
DetailViewField
entries for a RapidView
. To retrieve the fields to use at
display time (not configuration time), see DetailViewFieldService
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionadd
(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, DetailViewField detailViewField) Add aDetailViewField
object to aRapidView
's configuration.createDefaultRapidViewFields
(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Initially setup the rapid viewRemove aDetailViewField
from aRapidView
's configuration.ServiceOutcome
<List<? extends com.atlassian.jira.issue.fields.Field>> Get the list of fields which can be configured across the system.ServiceOutcome
<List<? extends com.atlassian.jira.issue.fields.Field>> getAvailableDetailViewFields
(RapidView rapidView) Get the list of fields which can be configured for thisRapidView
.getDetailViewFields
(RapidView rapidView) Get the currently configured detail view fields for thisRapidView
.moveAfter
(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, long detailViewFieldId, Long moveBeforeDetailViewFieldId) Move aDetailViewField
to be before another one.
-
Method Details
-
getDetailViewFields
@Nonnull ServiceOutcome<List<DetailViewFieldConfig>> getDetailViewFields(@Nonnull RapidView rapidView) Get the currently configured detail view fields for thisRapidView
. This will potentially include configurations which are not valid due to fields not being available.- Parameters:
rapidView
- the view- Returns:
- the outcome
-
getAvailableDetailViewCustomFields
@Nonnull ServiceOutcome<List<? extends com.atlassian.jira.issue.fields.Field>> getAvailableDetailViewCustomFields()Get the list of fields which can be configured across the system.- Returns:
- the outcome
-
getAvailableDetailViewFields
@Nonnull ServiceOutcome<List<? extends com.atlassian.jira.issue.fields.Field>> getAvailableDetailViewFields(@Nonnull RapidView rapidView) Get the list of fields which can be configured for thisRapidView
. Does not include fields which are already configured or are not supported.- Returns:
- the outcome
-
add
@Nonnull ServiceOutcome<List<DetailViewFieldConfig>> add(com.atlassian.jira.user.ApplicationUser user, @Nonnull RapidView rapidView, @Nonnull DetailViewField detailViewField) Add aDetailViewField
object to aRapidView
's configuration.- Parameters:
user
- the userrapidView
- the viewdetailViewField
- the field to add- Returns:
- the new configuration
-
delete
@Nonnull ServiceResult delete(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, Long detailViewFieldId) Remove aDetailViewField
from aRapidView
's configuration.- Parameters:
user
- the user performing the deleterapidView
- the viewdetailViewFieldId
- the ID of the row to delete- Returns:
- the outcome
-
moveAfter
@Nonnull ServiceResult moveAfter(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView, long detailViewFieldId, Long moveBeforeDetailViewFieldId) Move aDetailViewField
to be before another one.- Parameters:
user
- the user performing the moverapidView
- the viewdetailViewFieldId
- the ID of the row to movemoveBeforeDetailViewFieldId
- the ID of the row to move the other one after. Ifnull
it is moved to the first position- Returns:
- the outcome
-
createDefaultRapidViewFields
@Nonnull ServiceOutcome<List<DetailViewField>> createDefaultRapidViewFields(com.atlassian.jira.user.ApplicationUser user, RapidView rapidView) Initially setup the rapid view- Parameters:
user
- the userrapidView
- the rapid view- Returns:
- succ/fail
-