Class DictionaryModelType

    • Field Detail

      • ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY

        public static final java.lang.String ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY
        See Also:
        Constant Field Values
      • GROUP_ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY

        public static final java.lang.String GROUP_ALFRESCO_MODEL_ADMINISTRATORS_AUTHORITY
        See Also:
        Constant Field Values
    • Constructor Detail

      • DictionaryModelType

        public DictionaryModelType()
    • Method Detail

      • setDictionaryDAO

        public void setDictionaryDAO​(org.alfresco.repo.dictionary.DictionaryDAO dictionaryDAO)
        Set the dictionary DAO
      • setModelValidator

        public void setModelValidator​(ModelValidator modelValidator)
      • setNamespaceDAO

        public void setNamespaceDAO​(org.alfresco.repo.dictionary.NamespaceDAO namespaceDAO)
        Set the namespace DOA
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
        Set the node service
      • setContentService

        public void setContentService​(ContentService contentService)
        Set the content service
      • setPolicyComponent

        public void setPolicyComponent​(PolicyComponent policyComponent)
        Set the policy component
      • setTenantService

        public void setTenantService​(org.alfresco.repo.tenant.TenantService tenantService)
        Set the tenant service
      • setTransactionService

        public void setTransactionService​(TransactionService transactionService)
        Set the transaction service
      • setJobLockService

        public void setJobLockService​(JobLockService jobLockService)
      • setDoValidation

        public void setDoValidation​(boolean doValidation)
      • setAuthorityService

        public void setAuthorityService​(AuthorityService authorityService)
      • init

        public void init()
        The initialise method
      • onContentUpdate

        public void onContentUpdate​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                    boolean newContent)
        On content update behaviour implementation
        Specified by:
        onContentUpdate in interface ContentServicePolicies.OnContentUpdatePolicy
        Parameters:
        nodeRef - the node reference whose content has been updated
      • onUpdateProperties

        public void onUpdateProperties​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                       java.util.Map<org.alfresco.service.namespace.QName,​java.io.Serializable> before,
                                       java.util.Map<org.alfresco.service.namespace.QName,​java.io.Serializable> after)
        On update properties behaviour implementation
        Specified by:
        onUpdateProperties in interface NodeServicePolicies.OnUpdatePropertiesPolicy
        Parameters:
        nodeRef - the node reference
        before - the values of the properties before update
        after - the values of the properties after the update
      • onDeleteNode

        public void onDeleteNode​(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef,
                                 boolean isNodeArchived)
        Description copied from interface: NodeServicePolicies.OnDeleteNodePolicy
        Called after a node is deleted. The reference given is for an association which has been deleted and cannot be used to retrieve node or associaton information from any of the services.
        Specified by:
        onDeleteNode in interface NodeServicePolicies.OnDeleteNodePolicy
        Parameters:
        childAssocRef - the primary parent-child association of the deleted node
        isNodeArchived - indicates whether the node has been archived rather than purged
      • onSetNodeType

        public void onSetNodeType​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                  org.alfresco.service.namespace.QName oldType,
                                  org.alfresco.service.namespace.QName newType)
        Description copied from interface: NodeServicePolicies.OnSetNodeTypePolicy
        Called after the type of a node is set explicitly.
        Specified by:
        onSetNodeType in interface NodeServicePolicies.OnSetNodeTypePolicy
        Parameters:
        nodeRef - the node that has had its type set.
        oldType - the previous type of the node.
        newType - the type the node has been given.
      • beforeCreateNode

        public void beforeCreateNode​(org.alfresco.service.cmr.repository.NodeRef parentRef,
                                     org.alfresco.service.namespace.QName assocTypeQName,
                                     org.alfresco.service.namespace.QName assocQName,
                                     org.alfresco.service.namespace.QName nodeTypeQName)
        Description copied from interface: NodeServicePolicies.BeforeCreateNodePolicy
        Called before a new node is created.
        Specified by:
        beforeCreateNode in interface NodeServicePolicies.BeforeCreateNodePolicy
        Parameters:
        parentRef - the parent node reference
        assocTypeQName - the association type qualified name
        assocQName - the association qualified name
        nodeTypeQName - the node type qualified name