public class ColumnServiceImpl extends Object implements ColumnService
Constructor and Description |
---|
ColumnServiceImpl(I18nHelper.BeanFactory beanFactory,
ColumnLayoutManager columnLayoutManager,
FieldManager fieldManager,
GlobalPermissionManager globalPermissionManager,
SearchRequestService searchRequestService) |
Modifier and Type | Method and Description |
---|---|
ServiceOutcome<ColumnLayout> |
getColumnLayout(ApplicationUser serviceUser,
ApplicationUser userWithColumns)
Retreive the effective
ColumnLayout for userWithColumns. |
ServiceOutcome<ColumnLayout> |
getColumnLayout(ApplicationUser serviceUser,
Long filterId)
Get the column layout for the given filter.
|
ServiceOutcome<ColumnLayout> |
getDefaultColumnLayout(ApplicationUser serviceUser)
Get the system's default columns.
|
ServiceResult |
resetColumns(ApplicationUser serviceUser,
ApplicationUser userWithColumns)
Resets a user's
ColumnLayout . |
ServiceResult |
resetColumns(ApplicationUser serviceUser,
Long filterId)
Resets the given filter to no longer have its own
ColumnLayout . |
ServiceResult |
setColumns(ApplicationUser serviceUser,
ApplicationUser userWithColumns,
List<String> fieldIds)
Sets a user's
ColumnLayout . |
ServiceResult |
setColumns(ApplicationUser serviceUser,
Long filterId,
List<String> fieldIds)
Sets the given filter
ColumnLayout to the given fields. |
ServiceResult |
setDefaultColumns(ApplicationUser serviceUser,
List<String> fieldIds)
Sets the system's default columns to the given
fieldIds |
public ColumnServiceImpl(I18nHelper.BeanFactory beanFactory, ColumnLayoutManager columnLayoutManager, FieldManager fieldManager, GlobalPermissionManager globalPermissionManager, SearchRequestService searchRequestService)
public ServiceOutcome<ColumnLayout> getColumnLayout(ApplicationUser serviceUser, ApplicationUser userWithColumns)
ColumnService
ColumnLayout
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.getColumnLayout
in interface ColumnService
serviceUser
- for this service request.userWithColumns
- the user whose columns are being requested.ColumnLayout
for the user.public ServiceOutcome<ColumnLayout> getColumnLayout(ApplicationUser serviceUser, Long filterId)
ColumnService
getColumnLayout
in interface ColumnService
serviceUser
- for this service request.filterId
- the id of the filter to get the column layout for.public ServiceOutcome<ColumnLayout> getDefaultColumnLayout(ApplicationUser serviceUser)
ColumnService
getDefaultColumnLayout
in interface ColumnService
serviceUser
- for this service request. User must have admin access in order to perform this operationpublic ServiceResult setColumns(ApplicationUser serviceUser, ApplicationUser userWithColumns, List<String> fieldIds)
ColumnService
ColumnLayout
.setColumns
in interface ColumnService
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.public ServiceResult setColumns(ApplicationUser serviceUser, Long filterId, List<String> fieldIds)
ColumnService
ColumnLayout
to the given fields.setColumns
in interface ColumnService
serviceUser
- for this service requestfilterId
- id of the filterfieldIds
- the list of field ids to set as the filter's ColumnLayoutpublic ServiceResult setDefaultColumns(ApplicationUser serviceUser, List<String> fieldIds)
ColumnService
fieldIds
setDefaultColumns
in interface ColumnService
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 ColumnLayoutpublic ServiceResult resetColumns(ApplicationUser serviceUser, ApplicationUser userWithColumns)
ColumnService
ColumnLayout
.resetColumns
in interface ColumnService
serviceUser
- for this service request.userWithColumns
- the use whose columns are being reset.public ServiceResult resetColumns(ApplicationUser serviceUser, Long filterId)
ColumnService
ColumnLayout
.resetColumns
in interface ColumnService
serviceUser
- for this service requestfilterId
- id of the filterCopyright © 2002-2015 Atlassian. All Rights Reserved.