Examples of ReplicationPackageInfo


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

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

        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
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.