Examples of FieldFilter


Examples of it.geosolutions.geostore.services.dto.search.FieldFilter

     * delete all the resources in the geostore repository
     *
     * @deprecated DANGEROUS!
     */
    public void delete() throws GeoStoreException {
        SearchFilter filter = new FieldFilter(BaseField.NAME, "*", SearchOperator.IS_NOT_NULL);
        List<ShortResource> resourceList = search(filter, true);

        if (resourceList == null || resourceList.isEmpty()) {
            LOGGER.info("No Resource to delete");
            return;
View Full Code Here

Examples of it.geosolutions.geostore.services.dto.search.FieldFilter

        RESTResource rs = UNREDDResourceBuilder.createStatsDataResource(statsdef, year, month, day, content);
        return geostoreClient1.insert(rs);
    }

    public static void deleteAllResources() {
        ShortResourceList sres = geostoreClient1.searchResources(new FieldFilter(BaseField.NAME, "*", SearchOperator.IS_NOT_NULL));
        if( ! sres.isEmpty() ) {
            LOGGER.info("DeleteAll: deleting " + sres.getList().size() + " resources");
            for (ShortResource shortResource : sres.getList()) {
                LOGGER.info("DeleteAll: deleting resource #"+shortResource.getId()+ " " + shortResource.getName());
                geostoreClient1.deleteResource(shortResource.getId());
View Full Code Here

Examples of it.geosolutions.geostore.services.dto.search.FieldFilter

        }

    }

    public void deleteAllResources(GeoStoreClient geostore) {
        ShortResourceList sres = geostore.searchResources(new FieldFilter(BaseField.NAME, "*", SearchOperator.IS_NOT_NULL));
        if( ! sres.isEmpty() ) {
            LOGGER.info("DeleteAll: deleting " + sres.getList().size() + " resources");
            for (ShortResource shortResource : sres.getList()) {
                LOGGER.info("DeleteAll: deleting resource #"+shortResource.getId()+ " " + shortResource.getName());
                geostore.deleteResource(shortResource.getId());
View Full Code Here

Examples of org.apache.tapestry.services.FieldFilter

        return true;
    }

    public List<String> findFieldsWithAnnotation(final Class<? extends Annotation> annotationClass)
    {
        FieldFilter filter = new FieldFilter()
        {
            public boolean accept(String fieldName, String fieldType)
            {
                return getFieldAnnotation(fieldName, annotationClass) != null;
            }
View Full Code Here

Examples of org.apache.tapestry.services.FieldFilter

        return result;
    }

    public List<String> findFieldsOfType(final String type)
    {
        FieldFilter filter = new FieldFilter()
        {
            public boolean accept(String fieldName, String fieldType)
            {
                return type.equals(fieldType);
            }
View Full Code Here

Examples of org.apache.tapestry.services.FieldFilter

        return true;
    }

    public List<String> findFieldsWithAnnotation(final Class<? extends Annotation> annotationClass)
    {
        FieldFilter filter = new FieldFilter()
        {
            public boolean accept(String fieldName, String fieldType)
            {
                return getFieldAnnotation(fieldName, annotationClass) != null;
            }
View Full Code Here

Examples of org.apache.tapestry.services.FieldFilter

        return result;
    }

    public List<String> findFieldsOfType(final String type)
    {
        FieldFilter filter = new FieldFilter()
        {
            public boolean accept(String fieldName, String fieldType)
            {
                return type.equals(fieldType);
            }
View Full Code Here

Examples of org.apache.tapestry.services.FieldFilter

        return true;
    }

    public List<String> findFieldsWithAnnotation(final Class<? extends Annotation> annotationClass)
    {
        FieldFilter filter = new FieldFilter()
        {
            public boolean accept(String fieldName, String fieldType)
            {
                return getFieldAnnotation(fieldName, annotationClass) != null;
            }
View Full Code Here

Examples of org.apache.tapestry.services.FieldFilter

        return result;
    }

    public List<String> findFieldsOfType(final String type)
    {
        FieldFilter filter = new FieldFilter()
        {
            public boolean accept(String fieldName, String fieldType)
            {
                return type.equals(fieldType);
            }
View Full Code Here

Examples of org.apache.tapestry.services.FieldFilter

        _bindingSource = bindingSource;
    }

    public void transform(final ClassTransformation transformation, MutableComponentModel model)
    {
        FieldFilter filter = new FieldFilter()
        {
            public boolean accept(String fieldName, String fieldType)
            {
                Parameter annotation = transformation
                        .getFieldAnnotation(fieldName, Parameter.class);
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.