Class 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 Detail

      • ContentBinDuplicationUtility

        public ContentBinDuplicationUtility()
    • Method Detail

      • setBehaviourFilter

        public void setBehaviourFilter​(BehaviourFilter behaviourFilter)
        Setter for behaviour filter
        Parameters:
        behaviourFilter - BehaviourFilter
      • 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