Class IncompleteNodeTagger

    • Constructor Detail

      • IncompleteNodeTagger

        public IncompleteNodeTagger()
    • Method Detail

      • setPolicyComponent

        public void setPolicyComponent​(PolicyComponent policyComponent)
        Parameters:
        policyComponent - the component to register behaviour with
      • setDictionaryService

        public void setDictionaryService​(DictionaryService dictionaryService)
        Parameters:
        dictionaryService - the dictionary against which to confirm model details
      • setNodeService

        public void setNodeService​(NodeService nodeService)
        Parameters:
        nodeService - the node service to use for browsing node structures
      • setStoresToIgnore

        public void setStoresToIgnore​(List<String> storesToIgnore)
        Parameters:
        storesToIgnore - stores (eg. workspace://version2Store) which will be ignored by IncompleteNodeTagger. Note: assumes associations are within a store.
      • setPropertiesToIgnore

        public void setPropertiesToIgnore​(List<String> propertiesToIgnore)
        Parameters:
        propertiesToIgnore - a list of property fully-qualified names to ignore
      • setBehaviourFilter

        public void setBehaviourFilter​(BehaviourFilter behaviourFilter)
      • init

        public void init()
        Registers the system-level policy behaviours
      • onAddAspect

        public void onAddAspect​(NodeRef nodeRef,
                                QName aspectTypeQName)
        Called after an aspect has been added to a node

        Save the node for checking of properties. The incomplete aspect is not processed.

        Specified by:
        onAddAspect in interface NodeServicePolicies.OnAddAspectPolicy
        Parameters:
        nodeRef - the node to which the aspect was added
        aspectTypeQName - the type of the aspect
      • onCreateChildAssociation

        public void onCreateChildAssociation​(ChildAssociationRef childAssocRef,
                                             boolean isNew)
        Called after a node child association has been created.

        This only saves the node for checking if it is not new. The create of the node will handle it.

        Specified by:
        onCreateChildAssociation in interface NodeServicePolicies.OnCreateChildAssociationPolicy
        Parameters:
        childAssocRef - the child association that has been created
        isNew - true if the node is new or false if the node is being linked in