test_class.declarator: provider
test_class.modifier: private
test_class.original_string: private RestrictionProviderImpl provider;
test_class.type: RestrictionProviderImpl
test_class.var_name: provider
test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/restriction/RestrictionProviderImplTest.java
test_class.identifier: RestrictionProviderImplTest
test_class.interfaces: implements AccessControlConstants
test_class.superclass: extends AbstractSecurityTest
test_case.body: @Test(expected = AccessControlException.class)
      public void testValidateGlobRestriction() throws Exception {
          Tree t = TreeUtil.getOrAddChild(root.getTree("/"), "testTree", JcrConstants.NT_UNSTRUCTURED);
          String path = t.getPath();
  
          AccessControlManager acMgr = getAccessControlManager(root);
  
          List<String> globs = ImmutableList.of(
                  "/1*/2*/3*/4*/5*/6*/7*/8*/9*/10*/11*/12*/13*/14*/15*/16*/17*/18*/19*/20*/21*",
                  "*********************");
          for (String glob : globs) {
              JackrabbitAccessControlList acl = AccessControlUtils.getAccessControlList(acMgr, path);
              acl.addEntry(getTestUser().getPrincipal(),
                      AccessControlUtils.privilegesFromNames(acMgr, PrivilegeConstants.JCR_READ),
                      true, Collections.singletonMap(REP_GLOB, getValueFactory().createValue(glob)));
              acMgr.setPolicy(path, acl);
  
              try {
                  provider.validateRestrictions(path, t.getChild(REP_POLICY).getChild("allow"));
              } finally {
                  acMgr.removePolicy(path, acl);
              }
          }
      }
test_case.class_method_signature: RestrictionProviderImplTest.testValidateGlobRestriction()
test_case.full_signature: @Test(expected = AccessControlException.class) public void testValidateGlobRestriction()
test_case.identifier: testValidateGlobRestriction
test_case.invocations: getOrAddChild getTree getPath getAccessControlManager of getAccessControlList addEntry getPrincipal getTestUser privilegesFromNames singletonMap createValue getValueFactory setPolicy validateRestrictions getChild getChild removePolicy
test_case.modifiers: @Test(expected = AccessControlException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidateGlobRestriction()
focal_class.declarator: log = LoggerFactory.getLogger(RestrictionProviderImpl.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(RestrictionProviderImpl.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: NUMBER_OF_DEFINITIONS = 3
focal_class.modifier: private static final
focal_class.original_string: private static final int NUMBER_OF_DEFINITIONS = 3;
focal_class.type: int
focal_class.var_name: NUMBER_OF_DEFINITIONS
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/security/authorization/restriction/RestrictionProviderImpl.java
focal_class.identifier: RestrictionProviderImpl
focal_class.class_method_signature: RestrictionProviderImpl.RestrictionProviderImpl()
focal_class.full_signature: public  RestrictionProviderImpl()
focal_class.identifier: RestrictionProviderImpl
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  RestrictionProviderImpl()
focal_class.class_method_signature: RestrictionProviderImpl.supportedRestrictions()
focal_class.full_signature: private static Map<String, RestrictionDefinition> supportedRestrictions()
focal_class.identifier: supportedRestrictions
focal_class.modifiers: private static
focal_class.parameters: ()
focal_class.return: Map<String, RestrictionDefinition>
focal_class.signature: Map<String, RestrictionDefinition> supportedRestrictions()
focal_class.class_method_signature: RestrictionProviderImpl.getPattern(String oakPath, @NotNull Tree tree)
focal_class.full_signature: @NotNull @Override public RestrictionPattern getPattern(String oakPath, @NotNull Tree tree)
focal_class.identifier: getPattern
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (String oakPath, @NotNull Tree tree)
focal_class.return: RestrictionPattern
focal_class.signature: RestrictionPattern getPattern(String oakPath, @NotNull Tree tree)
focal_class.class_method_signature: RestrictionProviderImpl.getPattern(@Nullable String oakPath, @NotNull Set<Restriction> restrictions)
focal_class.full_signature: @NotNull @Override public RestrictionPattern getPattern(@Nullable String oakPath, @NotNull Set<Restriction> restrictions)
focal_class.identifier: getPattern
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@Nullable String oakPath, @NotNull Set<Restriction> restrictions)
focal_class.return: RestrictionPattern
focal_class.signature: RestrictionPattern getPattern(@Nullable String oakPath, @NotNull Set<Restriction> restrictions)
focal_class.class_method_signature: RestrictionProviderImpl.validateRestrictions(String oakPath, @NotNull Tree aceTree)
focal_class.full_signature: @Override public void validateRestrictions(String oakPath, @NotNull Tree aceTree)
focal_class.identifier: validateRestrictions
focal_class.modifiers: @Override public
focal_class.parameters: (String oakPath, @NotNull Tree aceTree)
focal_class.return: void
focal_class.signature: void validateRestrictions(String oakPath, @NotNull Tree aceTree)
focal_class.superclass: extends AbstractRestrictionProvider
focal_method.body: @Override
      public void validateRestrictions(String oakPath, @NotNull Tree aceTree) throws AccessControlException {
          super.validateRestrictions(oakPath, aceTree);
  
          Tree restrictionsTree = getRestrictionsTree(aceTree);
          PropertyState glob = restrictionsTree.getProperty(REP_GLOB);
          if (glob != null) {
              GlobPattern.validate(glob.getValue(Type.STRING));
          }
      }
focal_method.class_method_signature: RestrictionProviderImpl.validateRestrictions(String oakPath, @NotNull Tree aceTree)
focal_method.full_signature: @Override public void validateRestrictions(String oakPath, @NotNull Tree aceTree)
focal_method.identifier: validateRestrictions
focal_method.invocations: validateRestrictions getRestrictionsTree getProperty validate getValue
focal_method.modifiers: @Override public
focal_method.parameters: (String oakPath, @NotNull Tree aceTree)
focal_method.return: void
focal_method.signature: void validateRestrictions(String oakPath, @NotNull Tree aceTree)