Package org.brixcms.jcr.wrapper

Examples of org.brixcms.jcr.wrapper.BrixNode.checkout()


        if (Strings.isEmpty(selectedTileId)) {
            newEditor = new NewTileFragment(editor.getId(), "new-tile-form-fragment", this, getModel()) {
                @Override
                protected void onAddTile(String tileId, String tileTypeName) {
                    BrixNode containerNode = getTileContainerNode();
                    containerNode.checkout();
                    BrixNode node = getTileContainerNode().tiles().createTile(tileId, tileTypeName);
                    getEditor().save(node);
                    containerNode.save();
                    containerNode.checkin();
                    selectedTileId = tileId;
View Full Code Here


    }

    private void convertToType(String type) {
        final BrixNode node = getModelObject();

        node.checkout();
        SitePlugin.get().getNodePluginForType(type).getConverterForNode(getModelObject()).convert(node);
        node.save();
        node.checkin();

        getModel().detach();
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.