Class SearchRequestDisplayBean
java.lang.Object
com.atlassian.jira.web.action.util.SearchRequestDisplayBean
- All Implemented Interfaces:
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
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSearchRequestDisplayBean(JiraAuthenticationContext authCtx, SearchRequest request, SearchService searchService, FavouritesService favouriteService, GlobalPermissionManager permissionManager, FilterSubscriptionService subscriptionService, ShareTypeFactory shareTypeFactory, UserFormats userFormats, ShareManager shareManager) -
Method Summary
Modifier and TypeMethodDescriptionbooleanIs it possible to edit columns in this version of JIRAbooleancanShare()Is it possible to share pagesReturns a map of all share permissions with their simple description.longHow many times has this shared entity been favourited altered by by wether it will disabled or enabledReturns a map of share permissions with their simple description available for the user.How many times has this shared entity been favouritedgetId()longHow many user visible issues does this filter match?getName()longHow many subscriptions does this filter have? Only counts those subscriptions a user can see.booleanbooleanbooleanIs this shared entity a favourite of the current userbooleanIs this shared entity privately shared?Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.web.action.util.sharing.SharesListHelper
getId, getSharePermissions, isPrivate
-
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
-
getOwnerUserName
-
getOwnerFullName
-
getName
-
isCurrentOwner
public boolean isCurrentOwner() -
isEditable
public boolean isEditable() -
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
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
-
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
-