Class ContentBinDuplicationUtility

java.lang.Object
org.alfresco.module.org_alfresco_module_rm.util.ServiceBaseImpl
org.alfresco.module.org_alfresco_module_rm.util.ContentBinDuplicationUtility
All Implemented Interfaces:
RecordsManagementCustomModel, RecordsManagementModel, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class ContentBinDuplicationUtility extends ServiceBaseImpl
Utility class to duplicate the content of a node without triggering the audit or versioning behaviours
Since:
2.7.2
Author:
Ross Gale
  • Constructor Details

    • ContentBinDuplicationUtility

      public ContentBinDuplicationUtility()
  • Method Details

    • setBehaviourFilter

      public void setBehaviourFilter(BehaviourFilter behaviourFilter)
      Setter for behaviour filter
      Parameters:
      behaviourFilter - BehaviourFilter
    • setContentService

      public void setContentService(ContentService contentService)
      Setter for content service
      Overrides:
      setContentService in class ServiceBaseImpl
      Parameters:
      contentService - ContentService
    • setRecordsManagementQueryDAO

      public void setRecordsManagementQueryDAO(RecordsManagementQueryDAO recordsManagementQueryDAO)
      Setter for the Records Management QueryDAO
      Parameters:
      recordsManagementQueryDAO - The RM query DAO to set
    • hasAtLeastOneOtherReference

      public boolean hasAtLeastOneOtherReference(NodeRef nodeRef)
      Determines whether the bin file for a given node has at least one other reference to it Will return true if the binary exists and is referenced by at least one other node
      Parameters:
      nodeRef - Node with the binary in question
      Returns:
      boolean for if the bin has at least one other reference to it
    • duplicate

      public void duplicate(NodeRef nodeRef)
      Duplicate the content of a node without triggering the audit or versioning behaviours
      Parameters:
      nodeRef - The node with the content to duplicate