Class TransferContainerType

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

    public class TransferContainerType
    extends BaseBehaviourBean
    implements org.alfresco.repo.node.NodeServicePolicies.OnCreateChildAssociationPolicy, org.alfresco.repo.node.NodeServicePolicies.OnCreateNodePolicy, org.alfresco.repo.node.NodeServicePolicies.OnDeleteNodePolicy
    rma:transferContainer behaviour bean
    Since:
    2.4
    Author:
    Mihai Cozma
    • Constructor Detail

      • TransferContainerType

        public TransferContainerType()
    • Method Detail

      • disable

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

        public void enable()
        Enable behaviours for this transaction
      • onCreateChildAssociation

        public void onCreateChildAssociation​(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
                                             boolean bNew)
        Prevent creating a node inside transfer container, this will be possible only through internal services in a controlled manner.
        Specified by:
        onCreateChildAssociation in interface org.alfresco.repo.node.NodeServicePolicies.OnCreateChildAssociationPolicy
        See Also:
        NodeServicePolicies.OnCreateChildAssociationPolicy.onCreateChildAssociation(org.alfresco.service.cmr.repository.ChildAssociationRef, boolean)
      • onCreateNode

        public void onCreateNode​(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
        Specified by:
        onCreateNode in interface org.alfresco.repo.node.NodeServicePolicies.OnCreateNodePolicy
      • onDeleteNode

        public void onDeleteNode​(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
                                 boolean isNodeArchived)
        Specified by:
        onDeleteNode in interface org.alfresco.repo.node.NodeServicePolicies.OnDeleteNodePolicy