Package info.magnolia.cms.core

Examples of info.magnolia.cms.core.HierarchyManager


            return null;
        }

        synchronized (ExclusiveWrite.getInstance())
        {
            HierarchyManager hm = MgnlContext.getSystemContext().getHierarchyManager(ContentRepository.CONFIG);

            try
            {
                Content root = hm.getContent(SchedulerConsts.ROOT_PATH_FOR_JOBS);
                Content jobNode = ContentUtil.getOrCreateContent(root, definition.getName(), ItemType.CONTENTNODE);
                NodeDataUtil.getOrCreateAndSet(jobNode, "active", definition.isActive());
                if (StringUtils.isNotBlank(definition.getCatalog()))
                    NodeDataUtil.getOrCreateAndSet(jobNode, "catalog", definition.getCatalog());
                if (StringUtils.isNotBlank(definition.getCommand()))
View Full Code Here


        return list;
    }

    public JobDefinition getJobDefinitionByName(String jobName) throws RepositoryException
    {
        HierarchyManager hm = MgnlContext.getSystemContext().getHierarchyManager(ContentRepository.CONFIG);
        Content root = hm.getContent(SchedulerConsts.ROOT_PATH_FOR_JOBS);

        Content jobNode = ContentUtil.getOrCreateContent(root, jobName, ItemType.CONTENTNODE);
        try
        {
            JobDefinition retVal = (JobDefinition) Content2BeanUtil.toBean(jobNode, true, JobDefinition.class);
View Full Code Here

        }
    }

    public boolean sameJobNameExists(String jobName)
    {
        HierarchyManager hm = MgnlContext.getSystemContext().getHierarchyManager(ContentRepository.CONFIG);
        return hm.isExist(SchedulerConsts.ROOT_PATH_FOR_JOBS + "/" + jobName);
    }
View Full Code Here

TOP

Related Classes of info.magnolia.cms.core.HierarchyManager

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.