Class NodeTypeUtility


  • public class NodeTypeUtility
    extends Object
    Utility class to check if a node type is instance of another type
    Since:
    3.2
    Author:
    Claudia Agache
    • Constructor Detail

      • NodeTypeUtility

        public NodeTypeUtility()
    • Method Detail

      • setDictionaryService

        public void setDictionaryService​(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
        Parameters:
        dictionaryService - dictionary service
      • instanceOf

        public boolean instanceOf​(org.alfresco.service.namespace.QName className,
                                  org.alfresco.service.namespace.QName ofClassName)
        Utility method to quickly determine whether one class is equal to or sub of another.
        Parameters:
        className - class name
        ofClassName - class name to check against
        Returns:
        boolean true if equal to or sub, false otherwise