Package org.apache.sling.replication.serialization

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


            } else {
                log.warn("stream could not be read as a vlt package");
            }

        } catch (Exception e) {
            throw new ReplicationPackageReadingException("could not read / install the package", e);
        }
        return pkg;
    }
View Full Code Here


                pkg.extract(session, opts);
                return true;
            }
        } catch (Exception e) {
            log.error("could not read / install the package", e);
            throw new ReplicationPackageReadingException(e);
        } finally {
            ungetSession(session);
        }
        return false;
    }
View Full Code Here

    @CheckForNull
    public ReplicationPackage readPackage(@Nonnull ResourceResolver resourceResolver, @Nonnull InputStream stream) throws ReplicationPackageReadingException {
        try {
            return VoidReplicationPackage.fromStream(stream);
        } catch (Exception e) {
            throw new ReplicationPackageReadingException(e);
        }
    }
View Full Code Here

            String packagePath = generatePathFromId(resourceResolver, replicationPackage);

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

                }
                session.save();
                return true;
            }
        } catch (Exception e) {
            throw new ReplicationPackageReadingException(e);
        } finally {
            ungetSession(session);
        }

        return false;
View Full Code Here

TOP

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

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.