Interface ColumnService
- All Known Implementing Classes:
ColumnServiceImpl
public interface ColumnService
Provides access and manipulation of column configuration for filters and default column configuration for users.
- Since:
- v6.1
-
Method Summary
Modifier and TypeMethodDescriptiongetColumnLayout
(ApplicationUser serviceUser, ApplicationUser userWithColumns) Retreive the effectiveColumnLayout
for userWithColumns.getColumnLayout
(ApplicationUser serviceUser, Long filterId) Get the column layout for the given filter.getDefaultColumnLayout
(ApplicationUser serviceUser) Get the system's default columns.resetColumns
(ApplicationUser serviceUser, ApplicationUser userWithColumns) Resets a user'sColumnLayout
.resetColumns
(ApplicationUser serviceUser, Long filterId) Resets the given filter to no longer have its ownColumnLayout
.setColumns
(ApplicationUser serviceUser, ApplicationUser userWithColumns, List<String> fieldIds) Sets a user'sColumnLayout
.setColumns
(ApplicationUser serviceUser, Long filterId, List<String> fieldIds) Sets the given filterColumnLayout
to the given fields.setDefaultColumns
(ApplicationUser serviceUser, List<String> fieldIds) Sets the system's default columns to the givenfieldIds
-
Method Details
-
getColumnLayout
ServiceOutcome<ColumnLayout> getColumnLayout(ApplicationUser serviceUser, ApplicationUser userWithColumns) Retreive the effectiveColumnLayout
for userWithColumns. Users may not have set their default columns in which case they will be seeing the system's default columns. In that case the outcome contain the default columns.- Parameters:
serviceUser
- for this service request.userWithColumns
- the user whose columns are being requested.- Returns:
- the
ColumnLayout
for the user.
-
getColumnLayout
Get the column layout for the given filter. If there is no column layout for the filter, the outcome will contain null.- Parameters:
serviceUser
- for this service request.filterId
- the id of the filter to get the column layout for.- Returns:
- the column layout or null.
-
getDefaultColumnLayout
Get the system's default columns.- Parameters:
serviceUser
- for this service request. User must have admin access in order to perform this operation- Returns:
- the column layout or null.
-
setColumns
ServiceResult setColumns(ApplicationUser serviceUser, ApplicationUser userWithColumns, List<String> fieldIds) Sets a user'sColumnLayout
.- Parameters:
serviceUser
- for this service request.userWithColumns
- the use whose columns are being set.fieldIds
- the list of field ids to set as the user's ColumnLayout.- Returns:
- com.atlassian.jira.bc.ServiceResult
-
setColumns
Sets the given filterColumnLayout
to the given fields.- Parameters:
serviceUser
- for this service requestfilterId
- id of the filterfieldIds
- the list of field ids to set as the filter's ColumnLayout- Returns:
- com.atlassian.jira.bc.ServiceResult
-
setDefaultColumns
Sets the system's default columns to the givenfieldIds
- Parameters:
serviceUser
- for this service request. User must have admin access in order to perform this operationfieldIds
- the list of field ids to set as the system's default ColumnLayout- Returns:
- com.atlassian.jira.bc.ServiceResult
-
resetColumns
Resets a user'sColumnLayout
.- Parameters:
serviceUser
- for this service request.userWithColumns
- the use whose columns are being reset.- Returns:
- com.atlassian.jira.bc.ServiceResult
-
resetColumns
Resets the given filter to no longer have its ownColumnLayout
.- Parameters:
serviceUser
- for this service requestfilterId
- id of the filter- Returns:
- com.atlassian.jira.bc.ServiceResult
-