com.atlassian.jira.bc.issue.fields
Class ColumnServiceImpl

java.lang.Object
  extended by com.atlassian.jira.bc.issue.fields.ColumnServiceImpl
All Implemented Interfaces:
ColumnService

public class ColumnServiceImpl
extends Object
implements ColumnService


Constructor Summary
ColumnServiceImpl(I18nHelper.BeanFactory beanFactory, ColumnLayoutManager columnLayoutManager, FieldManager fieldManager, GlobalPermissionManager globalPermissionManager, SearchRequestService searchRequestService)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnServiceImpl

public ColumnServiceImpl(I18nHelper.BeanFactory beanFactory,
                         ColumnLayoutManager columnLayoutManager,
                         FieldManager fieldManager,
                         GlobalPermissionManager globalPermissionManager,
                         SearchRequestService searchRequestService)
Method Detail

getColumnLayout

public ServiceOutcome<ColumnLayout> getColumnLayout(ApplicationUser serviceUser,
                                                    ApplicationUser userWithColumns)
Description copied from interface: ColumnService
Retreive the effective 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.

Specified by:
getColumnLayout in interface ColumnService
Parameters:
serviceUser - for this service request.
userWithColumns - the user whose columns are being requested.
Returns:
the ColumnLayout for the user.

getColumnLayout

public ServiceOutcome<ColumnLayout> getColumnLayout(ApplicationUser serviceUser,
                                                    Long filterId)
Description copied from interface: ColumnService
Get the column layout for the given filter. If there is no column layout for the filter, the outcome will contain null.

Specified by:
getColumnLayout in interface ColumnService
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

public ServiceOutcome<ColumnLayout> getDefaultColumnLayout(ApplicationUser serviceUser)
Description copied from interface: ColumnService
Get the system's default columns.

Specified by:
getDefaultColumnLayout in interface ColumnService
Parameters:
serviceUser - for this service request. User must have admin access in order to perform this operation
Returns:
the column layout or null.

setColumns

public ServiceResult setColumns(ApplicationUser serviceUser,
                                ApplicationUser userWithColumns,
                                List<String> fieldIds)
Description copied from interface: ColumnService
Sets a user's ColumnLayout.

Specified by:
setColumns in interface ColumnService
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

public ServiceResult setColumns(ApplicationUser serviceUser,
                                Long filterId,
                                List<String> fieldIds)
Description copied from interface: ColumnService
Sets the given filter ColumnLayout to the given fields.

Specified by:
setColumns in interface ColumnService
Parameters:
serviceUser - for this service request
filterId - id of the filter
fieldIds - the list of field ids to set as the filter's ColumnLayout
Returns:
com.atlassian.jira.bc.ServiceResult

setDefaultColumns

public ServiceResult setDefaultColumns(ApplicationUser serviceUser,
                                       List<String> fieldIds)
Description copied from interface: ColumnService
Sets the system's default columns to the given fieldIds

Specified by:
setDefaultColumns in interface ColumnService
Parameters:
serviceUser - for this service request. User must have admin access in order to perform this operation
fieldIds - the list of field ids to set as the system's default ColumnLayout
Returns:
com.atlassian.jira.bc.ServiceResult

resetColumns

public ServiceResult resetColumns(ApplicationUser serviceUser,
                                  ApplicationUser userWithColumns)
Description copied from interface: ColumnService
Resets a user's ColumnLayout.

Specified by:
resetColumns in interface ColumnService
Parameters:
serviceUser - for this service request.
userWithColumns - the use whose columns are being reset.
Returns:
com.atlassian.jira.bc.ServiceResult

resetColumns

public ServiceResult resetColumns(ApplicationUser serviceUser,
                                  Long filterId)
Description copied from interface: ColumnService
Resets the given filter to no longer have its own ColumnLayout.

Specified by:
resetColumns in interface ColumnService
Parameters:
serviceUser - for this service request
filterId - id of the filter
Returns:
com.atlassian.jira.bc.ServiceResult


Copyright © 2002-2013 Atlassian. All Rights Reserved.