com.atlassian.jira.web.action.user
Class ConfigurePortalPages.PortalPageViewHelper

java.lang.Object
  extended by com.atlassian.jira.web.action.util.sharing.SharedEntitySearchViewHelper<PortalPage>
      extended by com.atlassian.jira.web.action.user.ConfigurePortalPages.PortalPageViewHelper
Enclosing class:
ConfigurePortalPages

protected static class ConfigurePortalPages.PortalPageViewHelper
extends SharedEntitySearchViewHelper<PortalPage>

Class to help executing and displaying the results of PortalPage searches.

Since:
v3.13

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.jira.web.action.util.sharing.SharedEntitySearchViewHelper
SharedEntitySearchViewHelper.SearchResult<E>, SharedEntitySearchViewHelper.SortColumn
 
Constructor Summary
ConfigurePortalPages.PortalPageViewHelper(ShareTypeFactory shareTypeFactory, JiraAuthenticationContext authCtx, String applicationContext, String actionUrlPrefix, PortalPageService portalPageService)
           
 
Method Summary
protected  SharedEntitySearchResult<PortalPage> doExecuteSearch(JiraServiceContext ctx, SharedEntitySearchParameters searchParameters, int pageOffset, int pageWidth)
          Execute the search for the passed parameters.
 SharedEntitySearchContext getEntitySearchContext()
           
protected  boolean validateSearchParameters(JiraServiceContext ctx, SharedEntitySearchParameters searchParameters, int pageOffset, int pageWidth)
          Ensure that it is possible to execute a search with the passed parameters.
 
Methods inherited from class com.atlassian.jira.web.action.util.sharing.SharedEntitySearchViewHelper
addParameter, createBasicUrlSearchParams, generateSortCssClass, generateSortIcon, generateSortUrl, getGroupShare, getPagingOffset, getPopularFilters, getProjectShare, getRoleShare, getSearchName, getSearchOwnerUserName, getSearchShareType, getSearchShareTypeJSON, getShareTypeRendererBeans, getSortColumn, isSortAscending, search, setGroupShare, setPagingOffset, setProjectShare, setRoleShare, setSearchName, setSearchOwnerUserName, setSearchShareType, setSortAscending, setSortColumn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurePortalPages.PortalPageViewHelper

public ConfigurePortalPages.PortalPageViewHelper(ShareTypeFactory shareTypeFactory,
                                                 JiraAuthenticationContext authCtx,
                                                 String applicationContext,
                                                 String actionUrlPrefix,
                                                 PortalPageService portalPageService)
Method Detail

getEntitySearchContext

public SharedEntitySearchContext getEntitySearchContext()
Specified by:
getEntitySearchContext in class SharedEntitySearchViewHelper<PortalPage>

doExecuteSearch

protected SharedEntitySearchResult<PortalPage> doExecuteSearch(JiraServiceContext ctx,
                                                               SharedEntitySearchParameters searchParameters,
                                                               int pageOffset,
                                                               int pageWidth)
Description copied from class: SharedEntitySearchViewHelper
Execute the search for the passed parameters.

Specified by:
doExecuteSearch in class SharedEntitySearchViewHelper<PortalPage>
Parameters:
ctx - the context to execute the search under.
searchParameters - the parameters for the search.
pageOffset - the offset of the search result page to return.
pageWidth - the width of a search result page.
Returns:
the result of the search or null if an error occurred.

validateSearchParameters

protected boolean validateSearchParameters(JiraServiceContext ctx,
                                           SharedEntitySearchParameters searchParameters,
                                           int pageOffset,
                                           int pageWidth)
Description copied from class: SharedEntitySearchViewHelper
Ensure that it is possible to execute a search with the passed parameters.

Specified by:
validateSearchParameters in class SharedEntitySearchViewHelper<PortalPage>
Parameters:
ctx - the context to execute the search under.
searchParameters - the parameters for the search.
pageOffset - the offset of the search result page to return.
pageWidth - the width of a search result page.
Returns:
true iff the search can be performed.


Copyright © 2002-2012 Atlassian. All Rights Reserved.