test_class.file: oak-authorization-cug/src/test/java/org/apache/jackrabbit/oak/spi/security/authorization/cug/impl/CugUtilTest.java
test_class.identifier: CugUtilTest
test_class.superclass: extends AbstractCugTest
test_case.body: @Test
      public void testHasCug() throws Exception {
          assertTrue(CugUtil.hasCug(root.getTree(SUPPORTED_PATH)));
  
          for (String path : new String[] {PathUtils.ROOT_PATH, INVALID_PATH, UNSUPPORTED_PATH, SUPPORTED_PATH + "/subtree", SUPPORTED_PATH2, SUPPORTED_PATH3}) {
              assertFalse(CugUtil.hasCug(root.getTree(path)));
          }
  
          Tree t = root.getTree(SUPPORTED_PATH2);
          TreeUtil.addChild(t, REP_CUG_POLICY, NodeTypeConstants.NT_OAK_UNSTRUCTURED);
          assertTrue(CugUtil.hasCug(t));
      }
test_case.class_method_signature: CugUtilTest.testHasCug()
test_case.full_signature: @Test public void testHasCug()
test_case.identifier: testHasCug
test_case.invocations: assertTrue hasCug getTree assertFalse hasCug getTree getTree addChild assertTrue hasCug
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testHasCug()
focal_class.declarator: log = LoggerFactory.getLogger(CugUtil.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(CugUtil.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.file: oak-authorization-cug/src/main/java/org/apache/jackrabbit/oak/spi/security/authorization/cug/impl/CugUtil.java
focal_class.identifier: CugUtil
focal_class.interfaces: implements CugConstants
focal_class.class_method_signature: CugUtil.CugUtil()
focal_class.full_signature: private  CugUtil()
focal_class.identifier: CugUtil
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  CugUtil()
focal_class.class_method_signature: CugUtil.hasCug(@NotNull Tree tree)
focal_class.full_signature: static boolean hasCug(@NotNull Tree tree)
focal_class.identifier: hasCug
focal_class.modifiers: static
focal_class.parameters: (@NotNull Tree tree)
focal_class.return: boolean
focal_class.signature: boolean hasCug(@NotNull Tree tree)
focal_class.class_method_signature: CugUtil.hasCug(@Nullable NodeState state)
focal_class.full_signature: static boolean hasCug(@Nullable NodeState state)
focal_class.identifier: hasCug
focal_class.modifiers: static
focal_class.parameters: (@Nullable NodeState state)
focal_class.return: boolean
focal_class.signature: boolean hasCug(@Nullable NodeState state)
focal_class.class_method_signature: CugUtil.hasCug(@Nullable NodeBuilder builder)
focal_class.full_signature: static boolean hasCug(@Nullable NodeBuilder builder)
focal_class.identifier: hasCug
focal_class.modifiers: static
focal_class.parameters: (@Nullable NodeBuilder builder)
focal_class.return: boolean
focal_class.signature: boolean hasCug(@Nullable NodeBuilder builder)
focal_class.class_method_signature: CugUtil.getCug(@NotNull Tree tree)
focal_class.full_signature: @Nullable static Tree getCug(@NotNull Tree tree)
focal_class.identifier: getCug
focal_class.modifiers: @Nullable static
focal_class.parameters: (@NotNull Tree tree)
focal_class.return: Tree
focal_class.signature: Tree getCug(@NotNull Tree tree)
focal_class.class_method_signature: CugUtil.definesCug(@NotNull Tree tree)
focal_class.full_signature: static boolean definesCug(@NotNull Tree tree)
focal_class.identifier: definesCug
focal_class.modifiers: static
focal_class.parameters: (@NotNull Tree tree)
focal_class.return: boolean
focal_class.signature: boolean definesCug(@NotNull Tree tree)
focal_class.class_method_signature: CugUtil.definesCug(@NotNull String name, @NotNull NodeState state)
focal_class.full_signature: static boolean definesCug(@NotNull String name, @NotNull NodeState state)
focal_class.identifier: definesCug
focal_class.modifiers: static
focal_class.parameters: (@NotNull String name, @NotNull NodeState state)
focal_class.return: boolean
focal_class.signature: boolean definesCug(@NotNull String name, @NotNull NodeState state)
focal_class.class_method_signature: CugUtil.definesCug(@NotNull Tree tree, @NotNull PropertyState property)
focal_class.full_signature: static boolean definesCug(@NotNull Tree tree, @NotNull PropertyState property)
focal_class.identifier: definesCug
focal_class.modifiers: static
focal_class.parameters: (@NotNull Tree tree, @NotNull PropertyState property)
focal_class.return: boolean
focal_class.signature: boolean definesCug(@NotNull Tree tree, @NotNull PropertyState property)
focal_class.class_method_signature: CugUtil.hasNestedCug(@NotNull Tree cugTree)
focal_class.full_signature: static boolean hasNestedCug(@NotNull Tree cugTree)
focal_class.identifier: hasNestedCug
focal_class.modifiers: static
focal_class.parameters: (@NotNull Tree cugTree)
focal_class.return: boolean
focal_class.signature: boolean hasNestedCug(@NotNull Tree cugTree)
focal_class.class_method_signature: CugUtil.isSupportedPath(@Nullable String oakPath, @NotNull Set<String> supportedPaths)
focal_class.full_signature: static boolean isSupportedPath(@Nullable String oakPath, @NotNull Set<String> supportedPaths)
focal_class.identifier: isSupportedPath
focal_class.modifiers: static
focal_class.parameters: (@Nullable String oakPath, @NotNull Set<String> supportedPaths)
focal_class.return: boolean
focal_class.signature: boolean isSupportedPath(@Nullable String oakPath, @NotNull Set<String> supportedPaths)
focal_class.class_method_signature: CugUtil.getSupportedPaths(@NotNull ConfigurationParameters params, @NotNull MountInfoProvider mountInfoProvider)
focal_class.full_signature: static Set<String> getSupportedPaths(@NotNull ConfigurationParameters params, @NotNull MountInfoProvider mountInfoProvider)
focal_class.identifier: getSupportedPaths
focal_class.modifiers: static
focal_class.parameters: (@NotNull ConfigurationParameters params, @NotNull MountInfoProvider mountInfoProvider)
focal_class.return: Set<String>
focal_class.signature: Set<String> getSupportedPaths(@NotNull ConfigurationParameters params, @NotNull MountInfoProvider mountInfoProvider)
focal_class.class_method_signature: CugUtil.getImportBehavior(ConfigurationParameters config)
focal_class.full_signature: static int getImportBehavior(ConfigurationParameters config)
focal_class.identifier: getImportBehavior
focal_class.modifiers: static
focal_class.parameters: (ConfigurationParameters config)
focal_class.return: int
focal_class.signature: int getImportBehavior(ConfigurationParameters config)
focal_method.body: static boolean hasCug(@NotNull Tree tree) {
          return tree.exists() && tree.hasChild(REP_CUG_POLICY);
      }
focal_method.class_method_signature: CugUtil.hasCug(@NotNull Tree tree)
focal_method.full_signature: static boolean hasCug(@NotNull Tree tree)
focal_method.identifier: hasCug
focal_method.invocations: exists hasChild
focal_method.modifiers: static
focal_method.parameters: (@NotNull Tree tree)
focal_method.return: boolean
focal_method.signature: boolean hasCug(@NotNull Tree tree)