Package info.magnolia.cms.core.search

Examples of info.magnolia.cms.core.search.QueryManager


    }

    @SuppressWarnings("unchecked")
    private Map<String, Set<String>> findCommandNames()
    {
        QueryManager qm = MgnlContext.getQueryManager(ContentRepository.CONFIG);
        Iterator catalogIter = CatalogFactory.getInstance().getNames();
        Map<String, Set<String>> retVal = new HashMap<String, Set<String>>();
        while (catalogIter.hasNext())
        {
            String catalog = (String) catalogIter.next();
            try
            {
                Query q = qm.createQuery("//commands//" + catalog + "//*", Query.XPATH);
                QueryResult qr = q.execute();
                Collection collection = qr.getContent("mgnl:contentNode");
                if (CollectionUtils.isEmpty(collection))
                    continue;
                Iterator commandIter = collection.iterator();
View Full Code Here


    protected static final Logger log = LoggerFactory.getLogger(DefaultJobDefinitionManager.class);

    @SuppressWarnings("unchecked")
    public Collection<Content> findAllJobDefinitions() throws RepositoryException
    {
        QueryManager qm = MgnlContext.getQueryManager(ContentRepository.CONFIG);
        try
        {
            Query q = qm.createQuery(SCHEDULER_CONFIG_JOBS_XPATH_QUERY, Query.XPATH);
            QueryResult qr = q.execute();
            return qr.getContent("mgnl:contentNode");
        }
        catch (RepositoryException e)
        {
View Full Code Here

TOP

Related Classes of info.magnolia.cms.core.search.QueryManager

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.