Package info.magnolia.cms.core

Examples of info.magnolia.cms.core.AggregationState


    @Override
    protected List<Node> getModifiedChildren(Arguments arguments, Element element, String attributeName)

    {
        AggregationState aggregationState = MgnlContext.getAggregationState();

        Content activePage = aggregationState.getMainContent();

        boolean isAdmin = ServerConfiguration.getInstance().isAdmin()
                && !aggregationState.isPreviewMode()
                && activePage != null
                && NodeUtil.isGranted(activePage.getJCRNode(), Permission.SET);

        if (!isAdmin) {
            return element.getChildren();
View Full Code Here

TOP

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

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.