Package org.apache.sling.replication.serialization

Examples of org.apache.sling.replication.serialization.ReplicationPackageBuildingException


            opts.setRootPath("/");
            File tmpFile = File.createTempFile("rp-vlt-create-" + System.nanoTime(), ".zip");
            VaultPackage vaultPackage = packaging.getPackageManager().assemble(session, opts, tmpFile);
            return new FileVaultReplicationPackage(vaultPackage);
        } catch (Exception e) {
            throw new ReplicationPackageBuildingException(e);
        } finally {
            ungetSession(session);
        }
    }
View Full Code Here


    @Nonnull
    public List<ReplicationPackage> exportPackages(@Nonnull ResourceResolver resourceResolver, @Nonnull ReplicationRequest replicationRequest) throws ReplicationPackageBuildingException {
        try {
            return transportHandler.retrievePackages(resourceResolver, replicationRequest);
        } catch (Exception e) {
            throw new ReplicationPackageBuildingException(e);
        }
    }
View Full Code Here

            String packagePath = generatePathFromId(resourceResolver, replicationPackage);

            return new ResourceSharedReplicationPackage(resourceResolver, packagePath, replicationPackage);
        }
        catch (PersistenceException e) {
            throw new ReplicationPackageBuildingException(e);
        }
    }
View Full Code Here

        } else if (ReplicationActionType.DELETE.equals(request.getAction())) {
            replicationPackage = new VoidReplicationPackage(request, type);
        } else if (ReplicationActionType.POLL.equals(request.getAction())) {
            replicationPackage = new VoidReplicationPackage(request, type);
        } else {
            throw new ReplicationPackageBuildingException("unknown action type "
                    + request.getAction());
        }
        if (replicationPackage != null && replicationEventFactory != null) {
            Dictionary<String, Object> dictionary = new Hashtable<String, Object>();
            dictionary.put("replication.action", replicationPackage.getAction());
View Full Code Here

TOP

Related Classes of org.apache.sling.replication.serialization.ReplicationPackageBuildingException

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.