Examples of BaseSearchFilter


Examples of org.projectforge.core.BaseSearchFilter

    super(id, model, caller, selectProperty);
    groupTextField = new PFAutoCompleteTextField<GroupDO>("groupField", getModel()) {
      @Override
      protected List<GroupDO> getChoices(final String input)
      {
        final BaseSearchFilter filter = new BaseSearchFilter();
        filter.setSearchFields("id", "name");
        filter.setSearchString(input);
        final List<GroupDO> list = groupDao.getList(filter);
        return list;
      }

      @Override
View Full Code Here

Examples of org.projectforge.core.BaseSearchFilter

   * @see org.projectforge.web.wicket.AbstractListForm#newSearchFilterInstance()
   */
  @Override
  protected BaseSearchFilter newSearchFilterInstance()
  {
    return new BaseSearchFilter();
  }
View Full Code Here

Examples of org.projectforge.core.BaseSearchFilter

  }

  @Override
  protected List<SkillDO> getChoices(final String input)
  {
    final BaseSearchFilter filter = new BaseSearchFilter();
    filter.setSearchFields("title");
    filter.setSearchString(input);
    final List<SkillDO> list = skillDao.getList(filter);
    return list;
  }
View Full Code Here

Examples of org.projectforge.core.BaseSearchFilter

    skillTextField = new PFAutoCompleteTextField<SkillDO>("skillField", getModel()) {
      @Override
      protected List<SkillDO> getChoices(final String input)
      {
        final BaseSearchFilter filter = new BaseSearchFilter();
        filter.setSearchFields("title", "description");
        filter.setSearchString(input);
        final List<SkillDO> list = skillDao.getList(filter);
        return list;
      }

      @Override
View Full Code Here

Examples of org.projectforge.core.BaseSearchFilter

  }

  @Override
  protected BaseSearchFilter newSearchFilterInstance()
  {
    return new BaseSearchFilter();
  }
View Full Code Here

Examples of org.projectforge.core.BaseSearchFilter

  @GET
  @Path(RestPaths.LIST)
  @Produces(MediaType.APPLICATION_JSON)
  public Response getList(@QueryParam("search") final String searchTerm, @QueryParam("modifiedSince") final Long modifiedSince)
  {
    final AddressFilter filter = new AddressFilter(new BaseSearchFilter());
    Date modifiedSinceDate = null;
    if (modifiedSince != null) {
      modifiedSinceDate = new Date(modifiedSince);
      filter.setModifiedSince(modifiedSinceDate);
    }
View Full Code Here

Examples of org.projectforge.core.BaseSearchFilter

  }

  @Override
  protected BaseSearchFilter newSearchFilterInstance()
  {
    return new BaseSearchFilter();
  }
View Full Code Here

Examples of org.projectforge.core.BaseSearchFilter

    }
    AddressDO address = addressDao.getById(a3.getId());
    assertEquals("testa3", address.getName());

    // Select filter
    BaseSearchFilter searchFilter = new BaseSearchFilter();
    searchFilter.setSearchString("testa*");
    QueryFilter filter = new QueryFilter(searchFilter);
    filter.addOrder(Order.asc("name"));
    List<AddressDO> result = addressDao.getList(filter);
    assertEquals("Should found 3 address'.", 3, result.size());
    HashSet<String> set = new HashSet<String>();
View Full Code Here

Examples of org.projectforge.core.BaseSearchFilter

    super(id, model, iCaller, selectProperty);
    projectTextField = new PFAutoCompleteTextField<ProjektDO>("projectField", getModel()) {
      @Override
      protected List<ProjektDO> getChoices(final String input)
      {
        final BaseSearchFilter filter = new BaseSearchFilter();
        filter.setSearchFields("id", "name", "identifier", "nummer");
        filter.setSearchString(input);
        final List<ProjektDO> list = projektDao.getList(filter);
        return list;
      }

      @Override
View Full Code Here

Examples of org.projectforge.core.BaseSearchFilter

  }

  @Override
  protected BaseSearchFilter newSearchFilterInstance()
  {
    return new BaseSearchFilter();
  }
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.