Examples of SearchCommand


Examples of org.cipres.treebase.web.model.SearchCommand

   * @see org.springframework.web.servlet.mvc.AbstractFormController#formBackingObject(javax.servlet.http.HttpServletRequest)
   */
  protected SearchCommand formBackingObject(HttpServletRequest request) throws ServletException {

    // retrieve SearchCommand object from request scope
    SearchCommand searchCommand = new SearchCommand (request);

    return searchCommand;
  }
View Full Code Here

Examples of org.cipres.treebase.web.model.SearchCommand

    Object command,
    BindException errors) throws Exception {

    LOGGER.debug("onSubmit is called");

    SearchCommand searchCommand = (SearchCommand) command;
    List<SearchCriteriaCommand> criterias = searchCommand.getCriterias();

    if (request.getParameter("And") != null) {
      addCriterias(request, searchCommand, Constants.AND_OPERATOR);
    } else if (request.getParameter("OR") != null) {
      addCriterias(request, searchCommand, Constants.OR_OPERATOR);
    } else if (request.getParameter(ACTION_DELETE) != null) {
      if (searchCommand.getCriterias().size() > 0) {
        String[] deleteConditions = request.getParameterValues("deleteCondition");
        for (int i = 0; deleteConditions != null && i < deleteConditions.length; i++) {
          criterias.set(i, null);
        }// end for
        for (int i = 0; i <= criterias.size(); i++) {
View Full Code Here

Examples of org.cipres.treebase.web.model.SearchCommand

   */
  protected Object formBackingObject(HttpServletRequest request) throws ServletException {

    LOGGER.debug("formBackingObject() is called");
    // retrieve SearchCommand object from request scope
    SearchCommand searchCommand = (SearchCommand) request.getSession().getAttribute(
      Constants.SEARCH_COMMAND);
    if (searchCommand == null) {
      searchCommand = new SearchCommand();
    }
    return searchCommand;
  }
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.search.command.SearchCommand

            @Override
            public void run() {
                PositionCoordinate previous = new PositionCoordinate(selections
                        .peek().pos);
                try {
                    final SearchCommand searchCommand = createSearchCommand(
                            text, isIncremental);
                    final SearchEventListener searchEventListener = new SearchEventListener();
                    searchCommand.setSearchEventListener(searchEventListener);
                    natTable.doCommand(searchCommand);
                    if (searchEventListener.pos == null) {
                        // Beep and show status if not found
                        statusLabel.setText(Messages
                                .getString("Search.textNotFound")); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.search.command.SearchCommand

                    natTable.getConfigRegistry(), true, columnFirstValue);
        } else {
            searchStrategy = new SelectionSearchStrategy(
                    natTable.getConfigRegistry(), columnFirstValue);
        }
        return new SearchCommand(text, natTable, searchStrategy,
                searchDirection, wrapSearchValue, caseSensitiveValue,
                !regexValue && wholeWordValue, !regexValue && allValue
                        && isIncremental, regexValue,
                // TODO
                // includeCollapsedValue, comparator);
View Full Code Here

Examples of org.exoplatform.services.jcr.webdav.command.SearchCommand

      {
         Session session = session(repoName, workspaceName(repoPath), null);
         String uri =
            uriInfo.getBaseUriBuilder().path(getClass()).path(repoName).path(workspaceName(repoPath)).build()
               .toString();
         return new SearchCommand().search(session, body, uri);

      }
      catch (NoSuchWorkspaceException exc)
      {
         log.error("NoSuchWorkspaceException " + exc.getMessage(), exc);
View Full Code Here

Examples of org.exoplatform.services.jcr.webdav.command.SearchCommand

      {
         Session session = session(repoName, workspaceName(repoPath), null);
         String uri =
            uriInfo.getBaseUriBuilder().path(getClass()).path(repoName).path(workspaceName(repoPath)).build()
               .toString();
         return new SearchCommand().search(session, body, uri);

      }
      catch (NoSuchWorkspaceException exc)
      {
         log.error("NoSuchWorkspaceException " + exc.getMessage(), exc);
View Full Code Here

Examples of org.exoplatform.services.jcr.webdav.command.SearchCommand

      {
         Session session = session(repoName, workspaceName(repoPath), null);
         String uri =
            uriInfo.getBaseUriBuilder().path(getClass()).path(repoName).path(workspaceName(repoPath)).build()
               .toString();
         return new SearchCommand().search(session, body, uri);

      }
      catch (NoSuchWorkspaceException exc)
      {
         log.error("NoSuchWorkspaceException " + exc.getMessage(), exc);
View Full Code Here

Examples of org.exoplatform.services.jcr.webdav.command.SearchCommand

      {
         Session session = session(repoName, workspaceName(repoPath), null);
         String uri =
            uriInfo.getBaseUriBuilder().path(getClass()).path(repoName).path(workspaceName(repoPath)).build()
               .toString();
         return new SearchCommand().search(session, body, uri);

      }
      catch (NoSuchWorkspaceException exc)
      {
         log.error("NoSuchWorkspaceException " + exc.getMessage(), exc);
View Full Code Here

Examples of org.exoplatform.services.jcr.webdav.command.SearchCommand

      {
         Session session = session(repoName, workspaceName(repoPath), null);
         String uri =
            uriInfo.getBaseUriBuilder().path(getClass()).path(repoName).path(workspaceName(repoPath)).build()
               .toString();
         return new SearchCommand().search(session, body, uri);

      }
      catch (NoSuchWorkspaceException exc)
      {
         log.error("NoSuchWorkspaceException " + exc.getMessage(), exc);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.