Package com.atlassian.bamboo.quickfilter
Class UserActiveQuickFilterServiceImpl
java.lang.Object
com.atlassian.bamboo.quickfilter.UserActiveQuickFilterServiceImpl
- All Implemented Interfaces:
UserActiveQuickFilterService
@ThreadSafe
public class UserActiveQuickFilterServiceImpl
extends Object
implements UserActiveQuickFilterService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activateQuickFilter
(@NotNull com.atlassian.user.User user, long quickFilterId) Activates a quick filter for a user.void
deactivateAllQuickFilters
(@NotNull com.atlassian.user.User user) Deactivates all quick filters for a user.void
deactivateQuickFilter
(@NotNull com.atlassian.user.User user, long quickFilterId) Deactivates a quick filter for a user.@NotNull List<QuickFilter>
getActiveQuickFilters
(@NotNull com.atlassian.user.User user) Returns all active quick filters for a user.@NotNull List<QuickFilter>
getVisibleQuickFilters
(@NotNull com.atlassian.user.User user) Returns a list of quick filters which have been selected by the given user to be shown for them on Bamboo dashboard.void
setVisibleQuickFilters
(@NotNull com.atlassian.user.User user, @NotNull Iterable<Long> quickFilterIds) Sets the list of quick filters which the given user has selected to be shown for them on Bamboo dashboard.
-
Constructor Details
-
UserActiveQuickFilterServiceImpl
public UserActiveQuickFilterServiceImpl()
-
-
Method Details
-
getVisibleQuickFilters
@NotNull public @NotNull List<QuickFilter> getVisibleQuickFilters(@NotNull @NotNull com.atlassian.user.User user) Description copied from interface:UserActiveQuickFilterService
Returns a list of quick filters which have been selected by the given user to be shown for them on Bamboo dashboard.- Specified by:
getVisibleQuickFilters
in interfaceUserActiveQuickFilterService
- Parameters:
user
- Bamboo user- Returns:
- a list of all quick filters that are visible for that user; might be an empty list
-
setVisibleQuickFilters
public void setVisibleQuickFilters(@NotNull @NotNull com.atlassian.user.User user, @NotNull @NotNull Iterable<Long> quickFilterIds) Description copied from interface:UserActiveQuickFilterService
Sets the list of quick filters which the given user has selected to be shown for them on Bamboo dashboard.- Specified by:
setVisibleQuickFilters
in interfaceUserActiveQuickFilterService
- Parameters:
user
- Bamboo userquickFilterIds
- ids of quick filters to set as visible
-
getActiveQuickFilters
@NotNull public @NotNull List<QuickFilter> getActiveQuickFilters(@NotNull @NotNull com.atlassian.user.User user) Description copied from interface:UserActiveQuickFilterService
Returns all active quick filters for a user. Active quick filters are the ones that actually filter out plans on Bamboo dashboard.- Specified by:
getActiveQuickFilters
in interfaceUserActiveQuickFilterService
- Parameters:
user
- Bamboo user- Returns:
- a list of all quick filters that are active for that user; might be an empty list
-
activateQuickFilter
public void activateQuickFilter(@NotNull @NotNull com.atlassian.user.User user, long quickFilterId) Description copied from interface:UserActiveQuickFilterService
Activates a quick filter for a user.- Specified by:
activateQuickFilter
in interfaceUserActiveQuickFilterService
- Parameters:
user
- Bamboo userquickFilterId
- id of the quick filter to set active
-
deactivateQuickFilter
public void deactivateQuickFilter(@NotNull @NotNull com.atlassian.user.User user, long quickFilterId) Description copied from interface:UserActiveQuickFilterService
Deactivates a quick filter for a user.- Specified by:
deactivateQuickFilter
in interfaceUserActiveQuickFilterService
- Parameters:
user
- Bamboo userquickFilterId
- id of the quick filter to deactivate
-
deactivateAllQuickFilters
public void deactivateAllQuickFilters(@NotNull @NotNull com.atlassian.user.User user) Description copied from interface:UserActiveQuickFilterService
Deactivates all quick filters for a user.- Specified by:
deactivateAllQuickFilters
in interfaceUserActiveQuickFilterService
- Parameters:
user
- Bamboo user
-