Class RecordComponentIdentifierAspect

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

    public class RecordComponentIdentifierAspect
    extends BaseBehaviourBean
    implements org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy, org.alfresco.repo.node.NodeServicePolicies.BeforeDeleteNodePolicy
    rma:recordComponentIdentifier behaviour bean
    Since:
    2.2
    Author:
    Roy Wetherall
    • Constructor Detail

      • RecordComponentIdentifierAspect

        public RecordComponentIdentifierAspect()
    • Method Detail

      • setFilePlanService

        public void setFilePlanService​(FilePlanService filePlanService)
        Parameters:
        filePlanService - file plan service
      • setAttributeService

        public void setAttributeService​(org.alfresco.service.cmr.attributes.AttributeService attributeService)
        Parameters:
        attributeService - attribute service
      • setIdentifierService

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

        public void onUpdateProperties​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                       Map<org.alfresco.service.namespace.QName,​Serializable> before,
                                       Map<org.alfresco.service.namespace.QName,​Serializable> after)
        Ensures that the rma:identifier property remains unique within the context of the parent node.
        Specified by:
        onUpdateProperties in interface org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy
        See Also:
        NodeServicePolicies.OnUpdatePropertiesPolicy.onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef, java.util.Map, java.util.Map)
      • beforeDeleteNode

        public void beforeDeleteNode​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
        Cleans up the rma:identifier property unique triplet.
        Specified by:
        beforeDeleteNode in interface org.alfresco.repo.node.NodeServicePolicies.BeforeDeleteNodePolicy
        See Also:
        NodeServicePolicies.BeforeDeleteNodePolicy.beforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef)
      • getCopyCallback

        public org.alfresco.repo.copy.CopyBehaviourCallback getCopyCallback​(org.alfresco.service.namespace.QName classRef,
                                                                            org.alfresco.repo.copy.CopyDetails copyDetails)
        Record component identifier aspect copy callback