Examples of order()


Examples of org.apache.tapestry5.services.AssetPathAuthorizer.order()

    {
        Logger logger = createMock(Logger.class);
        List<AssetPathAuthorizer> auths = new ArrayList<AssetPathAuthorizer>();
        AssetPathAuthorizer auth = createMock(AssetPathAuthorizer.class);

        expect(auth.order()).andReturn(Arrays.asList(AssetPathAuthorizer.Order.ALLOW, AssetPathAuthorizer.Order.DENY)).times(2);

        expect(auth.accessAllowed("/cayenne.xml")).andReturn(false);
        expect(auth.accessDenied("/cayenne.xml")).andReturn(true);
        expect(auth.accessAllowed("/org/apache/tapestry/default.css")).andReturn(true);
        auths.add(auth);

Examples of org.boco.seamwebappgen.annotations.AlternateOrderingAttribute.order()

        attr.setKey(false);

        ShowTransientInForm annotation = methods[i].getAnnotation(ShowTransientInForm.class);

        attr.setImplementationType(AttributeImplementationType.READONLY);
        attr.setOrderInForm(annotation.order());
        attr.setTrans(true);

        tmp.add(attr);
      }
    }

Examples of org.boco.seamwebappgen.annotations.LocalSearchOnAttribute.order()

          attr.setLabels(tmp1);
        }
        else
          attr.setImplementationType(AttributeImplementationType.TEXT);

        attr.setOrderInForm(annotation.order());

        String events[] = annotation.events();
        for (int i = 0; i < events.length; i++)
          attr.addEvent(events[i]);

Examples of org.boco.seamwebappgen.annotations.ShowAttributeInList.order()

        ShowTransientAttributeInList annotation = methods[i].getAnnotation(ShowTransientAttributeInList.class);

        showAttr.setTransientParameters(annotation.parameters());
        showAttr.setWidth(annotation.width());

        if (annotation.order() != 1000)
        {
          if (tmp.size() <= annotation.order())
            tmp.setSize(annotation.order() + 1);

          //          if (tmp.get(order(methods[i])) != null)

Examples of org.boco.seamwebappgen.annotations.ShowInForm.order()

          ShowInForm annotation = fields[j].getAnnotation(ShowInForm.class);

          attr.setImplementationType(annotation.type());

          attr.setOrderInForm(annotation.order());

          attr.setOnCreateIf(annotation.onCreateIf());
          attr.setOnEditIf(annotation.onEditIf());
          attr.setOnDisplayIf(annotation.onDisplayIf());
          attr.setOnDeleteIf(annotation.onDeleteIf());

Examples of org.boco.seamwebappgen.annotations.ShowTransientAttributeInList.order()

        ShowTransientAttributeInList annotation = methods[i].getAnnotation(ShowTransientAttributeInList.class);

        showAttr.setTransientParameters(annotation.parameters());
        showAttr.setWidth(annotation.width());

        if (annotation.order() != 1000)
        {
          if (tmp.size() <= annotation.order())
            tmp.setSize(annotation.order() + 1);

          //          if (tmp.get(order(methods[i])) != null)

Examples of org.boco.seamwebappgen.annotations.ShowTransientInForm.order()

        attr.setKey(false);

        ShowTransientInForm annotation = methods[i].getAnnotation(ShowTransientInForm.class);

        attr.setImplementationType(AttributeImplementationType.READONLY);
        attr.setOrderInForm(annotation.order());
        attr.setTrans(true);

        tmp.add(attr);
      }
    }

Examples of org.elasticsearch.action.admin.indices.template.put.PutIndexTemplateRequest.order()

            if (source.containsKey("template")) {
                putRequest.template(source.get("template").toString());
            }
            if (source.containsKey("order")) {
                putRequest.order(XContentMapValues.nodeIntegerValue(source.get("order"), putRequest.order()));
            }
            if (source.containsKey("settings")) {
                if (!(source.get("settings") instanceof Map)) {
                    throw new ElasticSearchIllegalArgumentException("Malformed settings section, should include an inner object");
                }

Examples of org.elasticsearch.cluster.metadata.IndexTemplateMetaData.order()

    public void testThatTemplateIsAdded() throws Exception {
        GetIndexTemplatesResponse response = client().admin().indices().prepareGetTemplates("metrics_template").get();

        assertThat(response.getIndexTemplates(), hasSize(1));
        IndexTemplateMetaData templateData = response.getIndexTemplates().get(0);
        assertThat(templateData.order(), is(0));
        assertThat(templateData.getMappings().get("_default_"), is(notNullValue()));
    }

    @Test
    public void testThatMappingFromTemplateIsApplied() throws Exception {

Examples of org.elasticsearch.search.facet.terms.TermsFacetBuilder.order()

          TermsFacetBuilder termsFacetBuilder = new TermsFacetBuilder(facetField);
          termsFacetBuilder.size(facetLimit);
          termsFacetBuilder.field(facetField);

          if (facetSort != null && facetSort.equals("index")) {
            termsFacetBuilder.order(TermsFacet.ComparatorType.TERM);
          } else {
            termsFacetBuilder.order(TermsFacet.ComparatorType.COUNT);
          }

          searchSourceBuilder.facet(termsFacetBuilder);
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.