Package org.apache.sling.replication.packaging

Examples of org.apache.sling.replication.packaging.ReplicationPackageInfo


    protected static final String ACTION = "replication.package.action";

    protected static final String ORIGIN = "replication.package.origin";

    public static ReplicationQueueItem getPackage(final Job job) {
        ReplicationPackageInfo packageInfo = new SimpleReplicationPackageInfo();
        packageInfo.setOrigin((String) job.getProperty(ORIGIN));

        return new ReplicationQueueItem((String) job.getProperty(ID),
                (String[]) job.getProperty(PATHS),
                String.valueOf(job.getProperty(ACTION)),
                String.valueOf(job.getProperty(TYPE)), packageInfo);
View Full Code Here


        properties.put(ID, replicationQueueItem.getId());
        properties.put(PATHS, replicationQueueItem.getPaths());
        properties.put(ACTION, replicationQueueItem.getAction());
        properties.put(TYPE, replicationQueueItem.getType());

        ReplicationPackageInfo packageInfo = replicationQueueItem.getPackageInfo();
        if (packageInfo != null && packageInfo.getOrigin() != null) {
            properties.put(ORIGIN, packageInfo.getOrigin());
        }

        return properties;
    }
View Full Code Here

TOP

Related Classes of org.apache.sling.replication.packaging.ReplicationPackageInfo

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.