Package com.trg.search

Examples of com.trg.search.Filter


      txtb_Office_Name.setValue(""); // clear
      txtb_Office_No.setValue(""); // clear

      // ++ create the searchObject and init sorting ++//
      HibernateSearchObject<Office> soOffice = new HibernateSearchObject<Office>(Office.class, getOfficeListCtrl().getCountRows());
      soOffice.addFilter(new Filter("filOrt", "%" + txtb_Office_City.getValue() + "%", Filter.OP_ILIKE));
      soOffice.addSort("filOrt", false);

      // Change the BindingListModel.
      if (getOfficeListCtrl().getBinder() != null) {
        getOfficeListCtrl().getPagedBindingListWrapper().setSearchObject(soOffice);
View Full Code Here


  }

  public void onClick$btn_CountLoginsPerHour(Event event) {
    this.hsoLoginLog = new HibernateSearchObject<SecLoginlog>(SecLoginlog.class);
    this.hsoLoginLog.addFilter(new Filter());

    // neu
    final List<SecLoginlog> list = getLoginLoggingService().getLoginsPerHour(new Date());
    System.out.println("count records : " + list.size());
    for (final SecLoginlog secLoginlog : list) {
View Full Code Here

    if (!tb_SecGroup_GroupName.getValue().isEmpty()) {
      checkbox_SecGroupList_ShowAll.setChecked(false); // unCheck

      // ++ create the searchObject and init sorting ++//
      HibernateSearchObject<SecGroup> soSecGroup = new HibernateSearchObject<SecGroup>(SecGroup.class);
      soSecGroup.addFilter(new Filter("grpShortdescription", "%" + tb_SecGroup_GroupName.getValue() + "%", Filter.OP_ILIKE));
      soSecGroup.addSort("grpShortdescription", false);

      // Set the ListModel.
      getPagedListWrapper().init(soSecGroup, listBoxSecGroups, paging_SecGroupList);
    }
View Full Code Here

    // ++ create the searchObject and init sorting ++//
    HibernateSearchObject<SecRight> soSecRight = new HibernateSearchObject<SecRight>(SecRight.class, countRowsSecRight);
    soSecRight.addSort("rigName", false);

    Filter f = Filter.or();

    if (checkbox_bbox_AddGroupRightDialog_All.isChecked()) {
      // nothing todo
    }

    if (checkbox_bbox_AddGroupRightDialog_Pages.isChecked()) {
      f.add(Filter.equal("rigType", 0));
    }

    if (checkbox_bbox_AddGroupRightDialog_Tabs.isChecked()) {
      f.add(Filter.equal("rigType", 5));
    }

    if (checkbox_bbox_AddGroupRightDialog_MenuCat.isChecked()) {
      f.add(Filter.equal("rigType", 1));
    }

    if (checkbox_bbox_AddGroupRightDialog_MenuItems.isChecked()) {
      f.add(Filter.equal("rigType", 2));
    }

    if (checkbox_bbox_AddGroupRightDialog_Methods.isChecked()) {
      f.add(Filter.equal("rigType", 3));
    }

    if (checkbox_bbox_AddGroupRightDialog_Domain.isChecked()) {
      f.add(Filter.equal("rigType", 4));
    }

    if (checkbox_bbox_AddGroupRightDialog_Components.isChecked()) {
      f.add(Filter.equal("rigType", 6));
    }

    if (textbox_bboxAddGroupRightDialog_rightName.getValue().isEmpty()) {
      soSecRight.addFilter(f);

      // Set the ListModel.
      getPlwSecRights().init(soSecRight, listBoxSingleRightSearch, paging_ListBoxSingleRightSearch);
    } else if (!textbox_bboxAddGroupRightDialog_rightName.getValue().isEmpty()) {
      soSecRight.addFilter(f);

      Filter f1 = Filter.and();

      f1.add(Filter.ilike("rigName", "%" + textbox_bboxAddGroupRightDialog_rightName.getValue() + "%"));
      soSecRight.addFilter(f1);

      // Set the ListModel.
      getPlwSecRights().init(soSecRight, listBoxSingleRightSearch, paging_ListBoxSingleRightSearch);
    }
View Full Code Here

      // ++ create the searchObject and init sorting ++//
      HibernateSearchObject<SecRole> soSecRole = new HibernateSearchObject<SecRole>(SecRole.class, getCountRows());
      soSecRole.addSort("rolShortdescription", false);

      soSecRole.addFilter(new Filter("rolShortdescription", "%" + tb_SecRole_RoleName.getValue() + "%", Filter.OP_ILIKE));

      // Set the ListModel.
      getPagedListWrapper().init(soSecRole, listBoxSecRoles, paging_SecRoleList);
    }
View Full Code Here

    if (checkbox_SecGroupRight_All.isChecked()) {
      // nothing todo
    }
    if (checkbox_SecGroupRight_Pages.isChecked()) {
      // list.add(0);
      soSecRight.addFilter(new Filter("rigType", 0, Filter.OP_EQUAL));
    }
    if (checkbox_SecGroupRight_Tabs.isChecked()) {
      // list.add(5);
      soSecRight.addFilter(new Filter("rigType", 5, Filter.OP_EQUAL));
    }
    if (checkbox_SecGroupRight_MenuCat.isChecked()) {
      // list.add(1);
      soSecRight.addFilter(new Filter("rigType", 1, Filter.OP_EQUAL));
    }
    if (checkbox_SecGroupRight_MenuItems.isChecked()) {
      // list.add(2);
      soSecRight.addFilter(new Filter("rigType", 2, Filter.OP_EQUAL));
    }
    if (checkbox_SecGroupRight_Methods.isChecked()) {
      // list.add(3);
      soSecRight.addFilter(new Filter("rigType", 3, Filter.OP_EQUAL));
    }
    if (checkbox_SecGroupRight_Domain.isChecked()) {
      // list.add(4);
      soSecRight.addFilter(new Filter("rigType", 4, Filter.OP_EQUAL));
    }
    if (checkbox_SecGroupRight_Components.isChecked()) {
      // list.add(6);
      soSecRight.addFilter(new Filter("rigType", 6, Filter.OP_EQUAL));
    }

    // Set the ListModel.
    getPlwSecRights().init(soSecRight, listBoxSecGroupRight, paging_ListBoxSecGroupRight);
View Full Code Here

    // ++ create the searchObject and init sorting ++//
    HibernateSearchObject<SecRight> soSecRightDetails = new HibernateSearchObject<SecRight>(SecRight.class, getCountRowsRightDetails());
    soSecRightDetails.addSort("rigName", false);
    soSecRightDetails.addFetch("secGrouprights");
    soSecRightDetails.addFilter(new Filter("secGrouprights.secGroup", getSelectedGroup(), Filter.OP_EQUAL));

    // Set the ListModel.
    getPlwSecRights().init(soSecRightDetails, listBoxSecGroupRight_Details, this.paging_ListBoxSecGroupRight_Details);
    // set the itemRenderer
    listBoxSecGroupRight_Details.setItemRenderer(new SecGrouprightRightListModelItemRenderer(this));
View Full Code Here

      // ++ create the searchObject and init sorting ++//
      HibernateSearchObject<SecRight> soSecRightDetails = new HibernateSearchObject<SecRight>(SecRight.class, getCountRowsRightDetails());
      soSecRightDetails.addSort("rigName", false);
      soSecRightDetails.addFetch("secGrouprights");
      soSecRightDetails.addFilter(new Filter("secGrouprights.secGroup", getSelectedGroup(), Filter.OP_EQUAL));

      // Set the ListModel.
      getPlwSecRights().init(soSecRightDetails, listBoxSecGroupRight_Details, paging_ListBoxSecGroupRight_Details);
      // set the itemRenderer
      listBoxSecGroupRight_Details.setItemRenderer(new SecGrouprightRightListModelItemRenderer(this));
View Full Code Here

    // deeper loading of the relations to prevent the lazy
    // loading problem.
    soSecLoginlog.addFetch("ip2Country.countryCode");
    soSecLoginlog.addSort("lglLogtime", true);

    soSecLoginlog.addFilter(new Filter("lglStatusid", 1, Filter.OP_EQUAL));

    // Set the ListModel
    getPagedListWrapper().init(soSecLoginlog, this.listBoxSecUserlog, this.paging_SecUserLogList);

  }
View Full Code Here

    // deeper loading of the relations to prevent the lazy
    // loading problem.
    soSecLoginlog.addFetch("ip2Country.countryCode");
    soSecLoginlog.addSort("lglLogtime", true);

    soSecLoginlog.addFilter(new Filter("lglStatusid", 0, Filter.OP_EQUAL));

    // Set the ListModel
    getPagedListWrapper().init(soSecLoginlog, this.listBoxSecUserlog, this.paging_SecUserLogList);

  }
View Full Code Here

TOP

Related Classes of com.trg.search.Filter

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.