Class SearchRequestDisplayBean

java.lang.Object
com.atlassian.jira.web.action.util.SearchRequestDisplayBean
All Implemented Interfaces:
SharesListHelper

public class SearchRequestDisplayBean extends Object implements SharesListHelper
Utility class for displaying a search request. Does a lot of the calculations that need to be done. E.g. is it a favourite, how many issues it contains, how many subscriptions.
Since:
v3.13
  • Constructor Details

  • Method Details

    • getIssueCount

      public long getIssueCount()
      How many user visible issues does this filter match?
      Returns:
      the number of user visible issues that this filter matches
    • getSubscriptionCount

      public long getSubscriptionCount()
      How many subscriptions does this filter have? Only counts those subscriptions a user can see.
      Returns:
      The number of subscriptions for this filter
    • getId

      public Long getId()
    • getOwnerUserName

      public String getOwnerUserName()
    • getOwnerFullName

      public String getOwnerFullName()
    • getName

      public String getName()
    • isCurrentOwner

      public boolean isCurrentOwner()
    • isEditable

      public boolean isEditable()
    • getDescription

      public String getDescription()
    • isPrivate

      public boolean isPrivate()
      Is this shared entity privately shared?
      Returns:
      true if the shared entity has privacy set to Private, else false
    • isFavourite

      public boolean isFavourite()
      Is this shared entity a favourite of the current user
      Returns:
      true if the user has favourited this shared entity, else false
    • getFavouriteCount

      public Long getFavouriteCount()
      How many times has this shared entity been favourited
      Returns:
      the count of favourites of this issue
    • getAlternateFavouriteCount

      public long getAlternateFavouriteCount()
      How many times has this shared entity been favourited altered by by wether it will disabled or enabled
      Returns:
      the count of favourites of this issue ltered by by wether it will disabled or enabled
    • canShare

      public boolean canShare()
      Is it possible to share pages
      Returns:
      true if it is Enterprise or Professional and the current user has the Share permission
    • canEditColumns

      public boolean canEditColumns()
      Is it possible to edit columns in this version of JIRA
      Returns:
      true if it is possible (it is an Enterprise or Professional instance), else false
    • getSharePermissions

      public Collection<SharePermission> getSharePermissions()
    • getAllSharePermissions

      public Collection<SharePermission> getAllSharePermissions()
    • getAvailableSharePermissionsWithSimpleDescription

      public Map<String,String> getAvailableSharePermissionsWithSimpleDescription()
      Returns a map of share permissions with their simple description available for the user. It provides share permissions for ConfigurePortalPages and ManageFilters views.
      Returns:
      a map of available share permissions with a simple description.
    • getAllSharePermissionsWithSimpleDescription

      public Map<String,String> getAllSharePermissionsWithSimpleDescription()
      Returns a map of all share permissions with their simple description. It provides share permissions for admin views: ViewSharedDashboards and ViewSharedFilters.
      Returns:
      a map of all share permissions with a simple description.