Class RecordsManagementContainerType

  • All Implemented Interfaces:
    RecordsManagementCustomModel, RecordsManagementModel, org.alfresco.repo.node.NodeServicePolicies.OnCreateChildAssociationPolicy, org.alfresco.repo.node.NodeServicePolicies.OnDeleteChildAssociationPolicy, org.alfresco.repo.policy.annotation.BehaviourRegistry, org.alfresco.repo.policy.AssociationPolicy, org.alfresco.repo.policy.Policy, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public class RecordsManagementContainerType
    extends BaseBehaviourBean
    implements org.alfresco.repo.node.NodeServicePolicies.OnCreateChildAssociationPolicy, org.alfresco.repo.node.NodeServicePolicies.OnDeleteChildAssociationPolicy
    rma:recordsManagementContainer behaviour bean.
    Since:
    2.2
    Author:
    Roy Wetherall
    • Constructor Detail

      • RecordsManagementContainerType

        public RecordsManagementContainerType()
    • Method Detail

      • setRmContainerCacheManager

        public void setRmContainerCacheManager​(RMContainerCacheManager rmContainerCacheManager)
        Parameters:
        rmContainerCacheManager - RM container cache manager
      • setIdentifierService

        public void setIdentifierService​(IdentifierService identifierService)
        Parameters:
        identifierService - identifier service
      • setRecordService

        public void setRecordService​(RecordService recordService)
        Parameters:
        recordService - record service
      • setRecordFolderService

        public void setRecordFolderService​(RecordFolderService recordFolderService)
        Parameters:
        recordFolderService - record folder service
      • disable

        public void disable()
        Disable the behaviours for this transaction
        Since:
        2.3
      • enable

        public void enable()
        Enable behaviours for this transaction
        Since:
        2.3
      • onCreateChildAssoiationFirstEvent

        public void onCreateChildAssoiationFirstEvent​(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
                                                      boolean bNew)
        See Also:
        (ChildAssociationRef, boolean)
      • onCreateChildAssociation

        public void onCreateChildAssociation​(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
                                             boolean isNewNode)
        Specified by:
        onCreateChildAssociation in interface org.alfresco.repo.node.NodeServicePolicies.OnCreateChildAssociationPolicy
        See Also:
        NodeServicePolicies.OnCreateChildAssociationPolicy.onCreateChildAssociation(ChildAssociationRef, boolean)
      • onDeleteChildAssociation

        public void onDeleteChildAssociation​(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
        Attempts to remove a deleted node from records management root cache
        Specified by:
        onDeleteChildAssociation in interface org.alfresco.repo.node.NodeServicePolicies.OnDeleteChildAssociationPolicy
        See Also:
        NodeServicePolicies.OnDeleteAssociationPolicy.onDeleteAssociation(org.alfresco.service.cmr.repository.AssociationRef)
      • setIdenifierProperty

        protected void setIdenifierProperty​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
        Set the identifier property
        Parameters:
        nodeRef - node reference
      • convertNodeToFileplanComponent

        protected org.alfresco.service.namespace.QName convertNodeToFileplanComponent​(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
        Converted the child node to a fileplan component The conversion is needed here to be able to generate the identifier If there is no conversion rule for the created type nothing happens and the current type is returned
        Parameters:
        childAssocRef - reference to the new association
        Returns:
        the new type of the child node