mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merge MNT-20741 fix from release/V3.0 branch to release/V3.1 branch
This commit is contained in:
@@ -248,10 +248,8 @@
|
|||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean name="contentBinDuplicationUtility" class="org.alfresco.module.org_alfresco_module_rm.util.ContentBinDuplicationUtility">
|
<bean name="contentBinDuplicationUtility" class="org.alfresco.module.org_alfresco_module_rm.util.ContentBinDuplicationUtility" parent="baseService">
|
||||||
<property name="behaviourFilter" ref="policyBehaviourFilter"/>
|
<property name="behaviourFilter" ref="policyBehaviourFilter"/>
|
||||||
<property name="contentService" ref="contentService"/>
|
|
||||||
<property name="nodeService" ref="nodeService"/>
|
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- Prevent ghosted records being renditioned -->
|
<!-- Prevent ghosted records being renditioned -->
|
||||||
|
@@ -46,7 +46,6 @@ import org.alfresco.repo.policy.annotation.BehaviourBean;
|
|||||||
import org.alfresco.repo.policy.annotation.BehaviourKind;
|
import org.alfresco.repo.policy.annotation.BehaviourKind;
|
||||||
import org.alfresco.repo.security.authentication.AuthenticationUtil;
|
import org.alfresco.repo.security.authentication.AuthenticationUtil;
|
||||||
import org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork;
|
import org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork;
|
||||||
import org.alfresco.service.cmr.rendition.RenditionService;
|
|
||||||
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
||||||
import org.alfresco.service.cmr.repository.NodeRef;
|
import org.alfresco.service.cmr.repository.NodeRef;
|
||||||
import org.alfresco.service.cmr.repository.ScriptService;
|
import org.alfresco.service.cmr.repository.ScriptService;
|
||||||
@@ -107,14 +106,6 @@ public class FilePlanComponentAspect extends BaseBehaviourBean
|
|||||||
this.filePlanService = filePlanService;
|
this.filePlanService = filePlanService;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param service rendition service
|
|
||||||
*/
|
|
||||||
public void setRenditionService(RenditionService service)
|
|
||||||
{
|
|
||||||
this.renditionService = service;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy#onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef, java.util.Map, java.util.Map)
|
* @see org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy#onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef, java.util.Map, java.util.Map)
|
||||||
*/
|
*/
|
||||||
|
@@ -26,38 +26,24 @@
|
|||||||
*/
|
*/
|
||||||
package org.alfresco.module.org_alfresco_module_rm.util;
|
package org.alfresco.module.org_alfresco_module_rm.util;
|
||||||
|
|
||||||
import static org.alfresco.module.org_alfresco_module_rm.model.RecordsManagementModel.ASPECT_ARCHIVED;
|
|
||||||
|
|
||||||
import org.alfresco.model.ContentModel;
|
import org.alfresco.model.ContentModel;
|
||||||
import org.alfresco.repo.policy.BehaviourFilter;
|
import org.alfresco.repo.policy.BehaviourFilter;
|
||||||
import org.alfresco.service.cmr.repository.ContentReader;
|
import org.alfresco.service.cmr.repository.ContentReader;
|
||||||
import org.alfresco.service.cmr.repository.ContentService;
|
|
||||||
import org.alfresco.service.cmr.repository.ContentWriter;
|
import org.alfresco.service.cmr.repository.ContentWriter;
|
||||||
import org.alfresco.service.cmr.repository.NodeRef;
|
import org.alfresco.service.cmr.repository.NodeRef;
|
||||||
import org.alfresco.service.cmr.repository.NodeService;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Utility class to duplicate the content of a node without triggering the audit or versioning behaviours
|
* Utility class to duplicate the content of a node without triggering the audit or versioning behaviours
|
||||||
* @author Ross Gale
|
* @author Ross Gale
|
||||||
* @since 2.7.2
|
* @since 2.7.2
|
||||||
*/
|
*/
|
||||||
public class ContentBinDuplicationUtility
|
public class ContentBinDuplicationUtility extends ServiceBaseImpl
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Behaviour filter
|
* Behaviour filter
|
||||||
*/
|
*/
|
||||||
private BehaviourFilter behaviourFilter;
|
private BehaviourFilter behaviourFilter;
|
||||||
|
|
||||||
/**
|
|
||||||
* Provides methods for accessing and transforming content.
|
|
||||||
*/
|
|
||||||
private ContentService contentService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Node service
|
|
||||||
*/
|
|
||||||
private NodeService nodeService;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setter for behaviour filter
|
* Setter for behaviour filter
|
||||||
* @param behaviourFilter BehaviourFilter
|
* @param behaviourFilter BehaviourFilter
|
||||||
@@ -67,34 +53,6 @@ public class ContentBinDuplicationUtility
|
|||||||
this.behaviourFilter = behaviourFilter;
|
this.behaviourFilter = behaviourFilter;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Setter for content service
|
|
||||||
* @param contentService ContentService
|
|
||||||
*/
|
|
||||||
public void setContentService(ContentService contentService)
|
|
||||||
{
|
|
||||||
this.contentService = contentService;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Setter for node service
|
|
||||||
*
|
|
||||||
* @param nodeService NodeService
|
|
||||||
*/
|
|
||||||
public void setNodeService(NodeService nodeService)
|
|
||||||
{
|
|
||||||
this.nodeService = nodeService;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Getter for node service
|
|
||||||
*
|
|
||||||
* @return nodeService
|
|
||||||
*/
|
|
||||||
public NodeService getNodeService()
|
|
||||||
{
|
|
||||||
return nodeService;
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* Duplicate the content of a node without triggering the audit or versioning behaviours
|
* Duplicate the content of a node without triggering the audit or versioning behaviours
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user