mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Follow on for ALF-4748: Provide config flag to control if replicated content is read-only (locked) on target
- flag is now controlled via subsystem named 'Replication' - property is named replication.transfer.readonly (value of true or false) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22581 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -69,7 +69,7 @@ public class ReplicationActionExecutor extends ActionExecuterAbstractBase {
|
||||
private ActionTrackingService actionTrackingService;
|
||||
private TransactionService transactionService;
|
||||
private ReplicationDefinitionPersisterImpl replicationDefinitionPersister;
|
||||
private Boolean readOnly;
|
||||
private ReplicationParams replicationParams;
|
||||
|
||||
/**
|
||||
* By default, we lock for 30 minutes
|
||||
@@ -136,13 +136,13 @@ public class ReplicationActionExecutor extends ActionExecuterAbstractBase {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets transfer read only default value
|
||||
* Sets Replication Parameters
|
||||
*
|
||||
* @param readOnly true => mark items in destination repository as read only
|
||||
* @param replicationParams replication parameters
|
||||
*/
|
||||
public void setReadOnly(Boolean readOnly)
|
||||
public void setReplicationParams(ReplicationParams replicationParams)
|
||||
{
|
||||
this.readOnly = readOnly;
|
||||
this.replicationParams = replicationParams;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -187,7 +187,7 @@ public class ReplicationActionExecutor extends ActionExecuterAbstractBase {
|
||||
new TransferDefinition();
|
||||
transferDefinition.setNodes(toTransfer);
|
||||
transferDefinition.setSync(true);
|
||||
transferDefinition.setReadOnly(readOnly == null ? true : readOnly);
|
||||
transferDefinition.setReadOnly(replicationParams.getTransferReadOnly());
|
||||
|
||||
// Exclude aspects from transfer
|
||||
// NOTE: this list of aspects should be synced up with the NodeCrawler in expandPayload to
|
||||
|
Reference in New Issue
Block a user