Examples of copy()


Examples of org.apache.jackrabbit.core.persistence.PersistenceCopier.copy()

        logger.info("Copying version histories");
        PersistenceCopier copier = new PersistenceCopier(
                source.getVersionManagerImpl().getPersistenceManager(),
                target.getVersionManagerImpl().getPersistenceManager(),
                target.getDataStore());
        copier.copy(RepositoryImpl.VERSION_STORAGE_NODE_ID);
    }

    private void copyWorkspaces() throws RepositoryException {
        Collection existing = Arrays.asList(target.getWorkspaceNames());
        String[] names = source.getWorkspaceNames();
View Full Code Here

Examples of org.apache.jackrabbit.core.state.NodeState.copy()

            localState = stateMgr.createNew(transientState);
        }

        synchronized (localState) {
            // copy state from transient state:
            localState.copy(transientState, true);
            // make state persistent
            stateMgr.store(localState);
        }

        // tell state manager to disconnect item state
View Full Code Here

Examples of org.apache.jackrabbit.mongomk.impl.model.MongoNode.copy()

        MongoNode node = nodeCache.get(key);
        if (node == null) {
            return null;
        }
        LOG.debug("Returning node from cache: {}", key);
        return node.copy();
    }

    private void init() {
        initCommitCollection();
        initNodeCollection();
View Full Code Here

Examples of org.apache.jackrabbit.oak.api.Root.copy()

    public void copyToSelf() throws CommitFailedException {
        Root root = session.getLatestRoot();
        root.getTree("/").addChild("s");
        root.commit();

        assertFalse(root.copy("/s", "/s"));
    }

    @Test
    public void copyToDescendant() throws CommitFailedException {
        Root root = session.getLatestRoot();
View Full Code Here

Examples of org.apache.jackrabbit.oak.upgrade.RepositoryUpgrade.copy()

                        try {
                            RepositoryUpgrade upgrade =
                                    new RepositoryUpgrade(source, target);
                            upgrade.setCopyBinariesByReference(
                                    options.has("datastore"));
                            upgrade.copy(null);
                        } finally {
                            target.dispose();
                        }
                    } finally {
                        client.close();
View Full Code Here

Examples of org.apache.jackrabbit.ocm.manager.ObjectContentManager.copy()

        ocm.save();
   
        // --------------------------------------------------------------------------------
        // Copy the object
        // --------------------------------------------------------------------------------
        ocm.copy("/test", "/test2");
        ocm.save();
        // --------------------------------------------------------------------------------
        // Get the object
        // --------------------------------------------------------------------------------
        a = (A) ocm.getObject("/test2");
View Full Code Here

Examples of org.apache.jackrabbit.vault.util.RepositoryCopier.copy()

        for (Object e: cl.getValues(optExclude)) {
            excludes.addExclude(new DefaultPathFilter(e.toString()));
        }
        srcFilter.add(excludes);
        rcp.setSourceFilter(srcFilter);
        rcp.copy(src, dst, recursive);
    }

    /**
     * {@inheritDoc}
     */
 
View Full Code Here

Examples of org.apache.james.mime4j.message.DefaultMessageBuilder.copy()

        original.setHeader(header);
        original.setBody(body);
        original.setParent(parent);

        DefaultMessageBuilder builder = new DefaultMessageBuilder();
        Message copy = builder.copy(original);

        assertNotNull(copy.getHeader());
        assertNotSame(header, copy.getHeader());

        assertNotNull(copy.getBody());
View Full Code Here

Examples of org.apache.jcs.auxiliary.AuxiliaryCacheAttributes.copy()

            }
            auxAttr.setName( auxName );
            ccMgr.registryAttrPut( auxAttr );
        }

        auxAttr = auxAttr.copy();

        log.debug( "Parsing options for '" + attrName + "'" );
        PropertySetter.setProperties( auxAttr, props, attrName + "." );
        auxAttr.setCacheName( regName );
View Full Code Here

Examples of org.apache.jcs.engine.ElementAttributes.copy()

                        {
                            IElementAttributes attrp = new ElementAttributes();
                            long n_start = System.currentTimeMillis();
                            for ( int n = 0; n < num; n++ )
                            {
                                attrp.copy();
                            }
                            long n_end = System.currentTimeMillis();
                            p( "---cloned attr " + num + " in " + String.valueOf( n_end - n_start ) + " millis ---" );
                        }
                    }
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.