Examples of PropertyFilter


Examples of com.mossle.core.hibernate.PropertyFilter

    @RequestMapping("perm-list")
    public String list(@ModelAttribute Page page,
            @RequestParam Map<String, Object> parameterMap, Model model) {
        List<PropertyFilter> propertyFilters = PropertyFilter
                .buildFromMap(parameterMap);
        propertyFilters.add(new PropertyFilter("EQS_scopeId", ScopeHolder
                .getScopeId()));
        page = permManager.pagedQuery(page, propertyFilters);

        model.addAttribute("page", page);
View Full Code Here

Examples of com.mossle.core.hibernate.PropertyFilter

    @RequestMapping("role-list")
    public String list(@ModelAttribute Page page,
            @RequestParam Map<String, Object> parameterMap, Model model) {
        List<PropertyFilter> propertyFilters = PropertyFilter
                .buildFromMap(parameterMap);
        propertyFilters.add(new PropertyFilter("EQS_scopeId", ScopeHolder
                .getScopeId()));
        page = roleManager.pagedQuery(page, propertyFilters);
        model.addAttribute("page", page);

        return "auth/role-list";
View Full Code Here

Examples of com.mossle.core.hibernate.PropertyFilter

    @RequestMapping("role-viewList")
    public String viewList(@ModelAttribute Page page,
            @RequestParam Map<String, Object> parameterMap, Model model) {
        List<PropertyFilter> propertyFilters = PropertyFilter
                .buildFromMap(parameterMap);
        propertyFilters.add(new PropertyFilter("EQS_scopeId", ScopeHolder
                .getScopeId()));
        page = roleManager.pagedQuery(page, propertyFilters);
        model.addAttribute("page", page);

        return "auth/role-viewList";
View Full Code Here

Examples of com.mossle.core.hibernate.PropertyFilter

            @RequestParam Map<String, Object> parameterMap, Model model) {
        List<PropertyFilter> propertyFilters = PropertyFilter
                .buildFromMap(parameterMap);
        UserRepo userRepo = userRepoManager.findUniqueBy("code",
                ScopeHolder.getScopeCode());
        propertyFilters.add(new PropertyFilter("EQL_userRepo.id", Long
                .toString(userRepo.getId())));
        page = userBaseManager.pagedQuery(page, propertyFilters);

        List<UserBase> userBases = (List<UserBase>) page.getResult();
        List<UserBaseWrapper> userBaseWrappers = new ArrayList<UserBaseWrapper>();
View Full Code Here

Examples of com.vmware.vim25.mo.PropertyFilter

   
    public void watch(PropertyFilterSpec pfs)
    {
        try
        {
            PropertyFilter pf = pc.createFilter(pfs, true); //report only nesting properties, not enclosing ones.
            filters.add(pf);
        } catch(RemoteException re)
        {
            throw new RuntimeException(re);
        }
View Full Code Here

Examples of net.sf.json.util.PropertyFilter

    filteExcludes(bean, jsonConfig);
    return jsonConfig;
  }

  public static void filteExcludes(Object bean, JsonConfig jsonConfig) {
    jsonConfig.setJsonPropertyFilter(new PropertyFilter(){
      @Override
      public boolean apply(Object source, String name, Object value) {
        if(value == null)
          return true;
        try {
View Full Code Here

Examples of org.apache.accumulo.core.conf.AccumuloConfiguration.PropertyFilter

  @Test
  public void testGetProperties_ParentFilter() {
    Map<String,String> props = new java.util.HashMap<String,String>();
    AccumuloConfiguration parent = createMock(AccumuloConfiguration.class);
    PropertyFilter filter = createMock(PropertyFilter.class);
    PropertyFilter parentFilter = createMock(PropertyFilter.class);
    parent.getProperties(props, parentFilter);
    replay(parent);
    expect(zc.getChildren(PATH)).andReturn(null);
    replay(zc);
View Full Code Here

Examples of org.apache.accumulo.core.conf.AccumuloConfiguration.PropertyFilter

    assertEquals("sekrit", c.get(Property.INSTANCE_SECRET));
  }

  @Test
  public void testGetProperties() {
    PropertyFilter filter = new AllFilter();
    Map<String,String> props = new java.util.HashMap<String,String>();
    parent.getProperties(props, filter);
    replay(parent);
    List<String> children = new java.util.ArrayList<String>();
    children.add("foo");
View Full Code Here

Examples of org.apache.accumulo.core.conf.AccumuloConfiguration.PropertyFilter

    assertNull(c.get(Property.INSTANCE_SECRET));
  }

  @Test
  public void testGetProperties() {
    PropertyFilter filter = new AllFilter();
    Map<String,String> props = new java.util.HashMap<String,String>();
    parent.getProperties(props, filter);
    replay(parent);
    List<String> children = new java.util.ArrayList<String>();
    children.add("foo");
View Full Code Here

Examples of org.apache.accumulo.core.conf.AccumuloConfiguration.PropertyFilter

  @Test
  public void testGetProperties() {
    Map<String,String> props = new java.util.HashMap<String,String>();
    AccumuloConfiguration parent = createMock(AccumuloConfiguration.class);
    PropertyFilter filter = createMock(PropertyFilter.class);
    parent.getProperties(props, filter);
    replay(parent);
    String child1 = "child1";
    String child2 = "child2";
    List<String> children = new java.util.ArrayList<String>();
    children.add(child1);
    children.add(child2);
    expect(zc.getChildren(PATH)).andReturn(children);
    expect(zc.get(PATH + "/" + child1)).andReturn(VALUE_BYTES);
    expect(zc.get(PATH + "/" + child2)).andReturn(null);
    replay(zc);
    expect(filter.accept(child1)).andReturn(true);
    expect(filter.accept(child2)).andReturn(true);
    replay(filter);

    a.getProperties(props, PATH, filter, parent, null);
    assertEquals(1, props.size());
    assertEquals(VALUE, props.get(child1));
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.