Package org.brixcms.jcr.wrapper

Examples of org.brixcms.jcr.wrapper.ResourceNode


                // save the node so brix assigns the correct jcr type to it
                getContainer().save();

                // populate node
                ResourceNode resource = (ResourceNode) getContainer().getSession().getItem(
                        node.getPath());
                model.setObject(new BrixNodeModel(resource));
                model.apply();

                getContainer().save();
View Full Code Here


    protected boolean isForThisNode(BrixNode bn) {
        return super.isForThisNode(bn) && isCorrectMimeType(bn);
    }

    protected boolean isCorrectMimeType(BrixNode bn) {
        ResourceNode rn = (ResourceNode) bn;
        if (bn == null || rn.getMimeType() == null) {
            return false;
        }
        // TODO: perhaps should only test on lower case here?
        // if so, need to lowercase all incoming types in the constructor
        String type = rn.getMimeType();
        int slash = type.indexOf('/');
        if (slash < 0) {
            return mimeTypePrefixes.contains(type);
        } else {
            String prefix = type.substring(0, slash);
View Full Code Here

TOP

Related Classes of org.brixcms.jcr.wrapper.ResourceNode

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.