Exemplo n.º 1
0
  public ReporterSearcher(
      VelocityRequestContextFactory velocityRequestContextFactory,
      VelocityTemplatingEngine templatingEngine,
      ApplicationProperties applicationProperties,
      UserPickerSearchService userPickerSearchService,
      GroupManager groupManager,
      UserManager userManager,
      final PermissionManager permissionManager,
      final FieldVisibilityManager fieldVisibilityManager,
      final UserHistoryManager userHistoryManager) {
    UserFieldSearchConstantsWithEmpty searchConstants = SystemSearchConstants.forReporter();
    final UserFitsNavigatorHelper userFitsNavigatorHelper =
        new UserFitsNavigatorHelper(userPickerSearchService);

    searcherInformation =
        new GenericSearcherInformation<SearchableField>(
            searchConstants.getSearcherId(),
            NAME_KEY,
            Collections.<Class<? extends FieldIndexer>>singletonList(ReporterIndexer.class),
            fieldReference,
            SearcherGroupType.ISSUE);
    searchRenderer =
        new ReporterSearchRenderer(
            NAME_KEY,
            velocityRequestContextFactory,
            applicationProperties,
            templatingEngine,
            userPickerSearchService,
            userManager,
            permissionManager,
            fieldVisibilityManager);
    searchInputTransformer =
        new KickassUserSearchInputTransformer(
            searchConstants,
            userFitsNavigatorHelper,
            groupManager,
            userManager,
            userHistoryManager);
  }
 public ReporterStatisticsMapper(
     UserManager userManager, JiraAuthenticationContext authenticationContext) {
   super(SystemSearchConstants.forReporter(), userManager, authenticationContext);
 }