Package org.olat.core.commons.services.search.ui

Examples of org.olat.core.commons.services.search.ui.SearchServiceUIFactory


    initForm(ureq);
  }

  @Override
  protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
    SearchServiceUIFactory searchUIFactory = (SearchServiceUIFactory)ServiceFactory.getService(SearchServiceUIFactory.class);
    searchController = searchUIFactory.createInputController(ureq, getWindowControl(), DisplayOption.STANDARD, mainForm);
    searchController.setResourceContextEnable(false);
    searchController.setDocumentType("type.contexthelp");
    flc.add("search_input", searchController.getFormItem());
   
    // Add target languages without overlays
View Full Code Here


        csController = new ContextualSubscriptionController(ureq, getWindowControl(), subsContext, pdata);
        folderContainer.put("subscription", csController.getInitialComponent());
      }
    }
   
    SearchServiceUIFactory searchUIFactory = (SearchServiceUIFactory)ServiceFactory.getService(SearchServiceUIFactory.class);
   
    if(displaySearch) {
      searchC = searchUIFactory.createInputController(ureq, wControl, DisplayOption.STANDARD, null);
      folderContainer.put("searchcomp", searchC.getInitialComponent());
    }
   
    folderComponent = new FolderComponent(ureq, "foldercomp", rootContainer, ureq.getLocale(), filter);
    folderComponent.addListener(this);
View Full Code Here

      topNavVC.contextPut("isGuest", Boolean.TRUE);
      loginLink = LinkFactory.createLink("topnav.login", topNavVC, this);
      loginLink.setTooltip("topnav.login.alt", false);
    }
   
    SearchServiceUIFactory searchUIFactory = (SearchServiceUIFactory)ServiceFactory.getService(SearchServiceUIFactory.class);
    searchC = searchUIFactory.createInputController(ureq, wControl, DisplayOption.STANDARD, null);
    searchC.setResourceContextEnable(false);
    topNavVC.put("search_input", searchC.getInitialComponent());
   
    //TODO:PB:OLAT-4047 permLink = LinkFactory.createLink("topnav.permlink", topNavVC, this);
    //TODO:PB:OLAT-4047 permLink.setTarget("_permlink");
View Full Code Here

  public OlatGuestTopNavController(UserRequest ureq, WindowControl wControl) {
    super(ureq, wControl);
    topNavVC = createVelocityContainer("guesttopnav");

    SearchServiceUIFactory searchUIFactory = (SearchServiceUIFactory)ServiceFactory.getService(SearchServiceUIFactory.class);
    searchC = searchUIFactory.createInputController(ureq, wControl, DisplayOption.STANDARD, null);
    searchC.setResourceContextEnable(false);
    topNavVC.put("search_input", searchC.getInitialComponent());
   
    // the help link
    helpLink = LinkFactory.createLink("topnav.help", topNavVC, this);
View Full Code Here

    // wrapper velocity container for page content
    this.myContent = createVelocityContainer("cpcontent");
    // the cp component, added to the velocity
   
    SearchServiceUIFactory searchServiceUIFactory = (SearchServiceUIFactory)ServiceFactory.getService(SearchServiceUIFactory.class);
    searchCtrl = searchServiceUIFactory.createInputController(ureq, wControl, DisplayOption.BUTTON, null);
    myContent.put("search_input", searchCtrl.getInitialComponent());
   
    //TODO:gs:a
    //may add an additional config for disabling, enabling IFrame style or not in CP mode
    //but always disable IFrame display when in screenreader mode (no matter whether style gets ugly)
View Full Code Here

    searchArticleForm = new WikiArticleSearchForm(ureq, getWindowControl());
    searchArticleForm.addControllerListener(this);
    navigationContent.put("searchArticleForm", searchArticleForm.getInitialComponent());
   
    //search
    SearchServiceUIFactory searchServiceUIFactory = (SearchServiceUIFactory)ServiceFactory.getService(SearchServiceUIFactory.class);
    searchCtrl = searchServiceUIFactory.createInputController(ureq, wControl, DisplayOption.STANDARD_TEXT, null);
    listenTo(searchCtrl);
    navigationContent.put("search_article", searchCtrl.getInitialComponent());

    // attach menu
    //FIXME:gs:a pass only ores to component to make shure they have the same wiki instance
View Full Code Here

   
    msgCreateButton = LinkFactory.createButtonSmall("msg.create", vcListTitles, this);
    archiveForumButton = LinkFactory.createButtonSmall("archive.forum", vcListTitles, this);
    filterForUserButton = LinkFactory.createButtonSmall("filter", vcListTitles, this);

    SearchServiceUIFactory searchServiceUIFactory = (SearchServiceUIFactory)ServiceFactory.getService(SearchServiceUIFactory.class);
    searchController = searchServiceUIFactory.createInputController(ureq, wControl, DisplayOption.STANDARD, null);
    listenTo(searchController);
    vcListTitles.put("search_input", searchController.getInitialComponent());
   
    // a list of titles of all messages in all threads
    vcListTitles.contextPut("security", focallback);
View Full Code Here

    }
    return tokens;
  }
 
  protected ContextTokens getContextTokens(String resourceURL) {
    SearchServiceUIFactory searchUIFactory = (SearchServiceUIFactory)ServiceFactory.getService(SearchServiceUIFactory.class);
    List<String> tokens = getResourceUrlTokenized(resourceURL);
    String[] keys = new String[tokens.size() + 1];
    String[] values = new String[tokens.size() + 1];
    keys[0] = "";
    values[0] = translate("search.context.all");
    StringBuilder sb = new StringBuilder();
    for(int i=0; i<tokens.size(); i++) {
      String token = tokens.get(i);
      keys[i+1] = sb.append('[').append(token).append(']').toString();
      values[i+1] = searchUIFactory.getBusinessPathLabel(token, tokens, getLocale());
    }
    return new ContextTokens(keys, values);
  }
View Full Code Here

      pageList.add(new Integer(i+1));
    }
    flc.contextPut("pageList", pageList);
    flc.contextPut("numOfPages", pageList.size() + 1);
   
    SearchServiceUIFactory searchUIFactory = (SearchServiceUIFactory)ServiceFactory.getService(SearchServiceUIFactory.class);
   
    int count = 0;
    int start = currentPage * resultPerPage;
    for (int i = start ; (i < start + resultPerPage) && (i < searchResults.getList().size() ); i++) {
      ResultDocument document = searchResults.getList().get(i);
      ResultController ctrl = searchUIFactory.createController(ureq, getWindowControl(), mainForm, document);
      ctrl.setHighlight(highlight);
      listenTo(ctrl);
      flc.add("result_" + ++count, ctrl.getInitialFormItem());
      resultsCtrl.add(ctrl);
    }
View Full Code Here

TOP

Related Classes of org.olat.core.commons.services.search.ui.SearchServiceUIFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.