Examples of buildPath()


Examples of org.compass.core.engine.naming.PropertyNamingStrategy.buildPath()

            InternalCompass compass = compassSession.getCompass();
            SearchEngineFactory searchEngineFactory = compass.getSearchEngineFactory();
            PropertyNamingStrategy propertyNamingStrategy =
                    searchEngineFactory.getPropertyNamingStrategy();
            // save stringifiedmap map (under an internal name)
            String keyPath = propertyNamingStrategy.buildPath(resourcePropertyMapping.getPath(), "stringmap").getPath();
            Property p = context.getResourceFactory().createProperty(keyPath, stringmap, Property.Store.YES, Property.Index.NOT_ANALYZED);
            resource.addProperty(p);
        }

        return true;
View Full Code Here

Examples of org.compass.core.engine.naming.PropertyNamingStrategy.buildPath()

        ResourcePropertyMapping resourcePropertyMapping = (ResourcePropertyMapping) mapping;
//        SearchEngine searchEngine = context.getSearchEngine();

        PropertyNamingStrategy propertyNamingStrategy = context.getSession().getCompass().getSearchEngineFactory().getPropertyNamingStrategy();
        // parse map (from an internal name)
        String path = propertyNamingStrategy.buildPath(resourcePropertyMapping.getPath(), "stringmap").getPath();
        String stringmap = resource.getValue(path);
        if (stringmap == null) {
            return null;
        }
        return Eval.me(stringmap);
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.