test_class.declarator: NAME_LONGS = "longs"
test_class.modifier: private static final
test_class.original_string: private static final String NAME_LONGS = "longs";
test_class.type: String
test_class.var_name: NAME_LONGS
test_class.declarator: NAME_BOOLEAN = "boolean"
test_class.modifier: private static final
test_class.original_string: private static final String NAME_BOOLEAN = "boolean";
test_class.type: String
test_class.var_name: NAME_BOOLEAN
test_class.declarator: GLOB_RESTRICTION = new RestrictionImpl(PropertyStates.createProperty(REP_GLOB, "*"), false)
test_class.modifier: private static final
test_class.original_string: private static final Restriction GLOB_RESTRICTION = new RestrictionImpl(PropertyStates.createProperty(REP_GLOB, "*"), false);
test_class.type: Restriction
test_class.var_name: GLOB_RESTRICTION
test_class.declarator: NT_PREFIXES_RESTRICTION = new RestrictionImpl(PropertyStates.createProperty(REP_PREFIXES, ImmutableList.of(), Type.STRINGS), false)
test_class.modifier: private static final
test_class.original_string: private static final Restriction NT_PREFIXES_RESTRICTION = new RestrictionImpl(PropertyStates.createProperty(REP_PREFIXES, ImmutableList.of(), Type.STRINGS), false);
test_class.type: Restriction
test_class.var_name: NT_PREFIXES_RESTRICTION
test_class.declarator: MANDATORY_BOOLEAN_RESTRICTION = new RestrictionImpl(PropertyStates.createProperty(NAME_BOOLEAN, true, Type.BOOLEAN), true)
test_class.modifier: private static final
test_class.original_string: private static final Restriction MANDATORY_BOOLEAN_RESTRICTION = new RestrictionImpl(PropertyStates.createProperty(NAME_BOOLEAN, true, Type.BOOLEAN), true);
test_class.type: Restriction
test_class.var_name: MANDATORY_BOOLEAN_RESTRICTION
test_class.declarator: LONGS_RESTRICTION = new RestrictionImpl(PropertyStates.createProperty(NAME_LONGS, ImmutableList.of(Long.MAX_VALUE), Type.LONGS), false)
test_class.modifier: private static final
test_class.original_string: private static final Restriction LONGS_RESTRICTION = new RestrictionImpl(PropertyStates.createProperty(NAME_LONGS, ImmutableList.of(Long.MAX_VALUE), Type.LONGS), false);
test_class.type: Restriction
test_class.var_name: LONGS_RESTRICTION
test_class.declarator: UNKNOWN_RESTRICTION = new RestrictionImpl(PropertyStates.createProperty("unknown", "string"), false)
test_class.modifier: private static final
test_class.original_string: private static final Restriction UNKNOWN_RESTRICTION = new RestrictionImpl(PropertyStates.createProperty("unknown", "string"), false);
test_class.type: Restriction
test_class.var_name: UNKNOWN_RESTRICTION
test_class.declarator: rp1 = spy(createRestrictionProvider(GLOB_RESTRICTION.getDefinition(), NT_PREFIXES_RESTRICTION.getDefinition()))
test_class.modifier: private
test_class.original_string: private RestrictionProvider rp1 = spy(createRestrictionProvider(GLOB_RESTRICTION.getDefinition(), NT_PREFIXES_RESTRICTION.getDefinition()));
test_class.type: RestrictionProvider
test_class.var_name: rp1
test_class.declarator: rp2 = spy(createRestrictionProvider(MANDATORY_BOOLEAN_RESTRICTION.getDefinition(), LONGS_RESTRICTION.getDefinition()))
test_class.modifier: private
test_class.original_string: private RestrictionProvider rp2 = spy(createRestrictionProvider(MANDATORY_BOOLEAN_RESTRICTION.getDefinition(), LONGS_RESTRICTION.getDefinition()));
test_class.type: RestrictionProvider
test_class.var_name: rp2
test_class.declarator: supported = ImmutableSet.of(
              MANDATORY_BOOLEAN_RESTRICTION.getDefinition().getName(),
              LONGS_RESTRICTION.getDefinition().getName(),
              REP_PREFIXES,
              REP_GLOB)
test_class.modifier: private
test_class.original_string: private Set<String> supported = ImmutableSet.of(
              MANDATORY_BOOLEAN_RESTRICTION.getDefinition().getName(),
              LONGS_RESTRICTION.getDefinition().getName(),
              REP_PREFIXES,
              REP_GLOB);
test_class.type: Set<String>
test_class.var_name: supported
test_class.declarator: provider = CompositeRestrictionProvider.newInstance(rp1, rp2)
test_class.modifier: private
test_class.original_string: private RestrictionProvider provider = CompositeRestrictionProvider.newInstance(rp1, rp2);
test_class.type: RestrictionProvider
test_class.var_name: provider
test_class.declarator: vf = new ValueFactoryImpl(mock(Root.class), NamePathMapper.DEFAULT)
test_class.modifier: private
test_class.original_string: private ValueFactory vf = new ValueFactoryImpl(mock(Root.class), NamePathMapper.DEFAULT);
test_class.type: ValueFactory
test_class.var_name: vf
test_class.file: oak-security-spi/src/test/java/org/apache/jackrabbit/oak/spi/security/authorization/restriction/CompositeRestrictionProviderTest.java
test_class.identifier: CompositeRestrictionProviderTest
test_class.interfaces: implements AccessControlConstants
test_case.body: @Test
      public void testWriteEmptyRestrictions() throws Exception {
          provider.writeRestrictions("/test", getAceTree(), Collections.emptySet());
      }
test_case.class_method_signature: CompositeRestrictionProviderTest.testWriteEmptyRestrictions()
test_case.full_signature: @Test public void testWriteEmptyRestrictions()
test_case.identifier: testWriteEmptyRestrictions
test_case.invocations: writeRestrictions getAceTree emptySet
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testWriteEmptyRestrictions()
focal_class.declarator: providers
focal_class.modifier: private final
focal_class.original_string: private final RestrictionProvider[] providers;
focal_class.type: RestrictionProvider[]
focal_class.var_name: providers
focal_class.file: oak-security-spi/src/main/java/org/apache/jackrabbit/oak/spi/security/authorization/restriction/CompositeRestrictionProvider.java
focal_class.identifier: CompositeRestrictionProvider
focal_class.interfaces: implements RestrictionProvider
focal_class.class_method_signature: CompositeRestrictionProvider.CompositeRestrictionProvider(@NotNull Collection<? extends RestrictionProvider> providers)
focal_class.full_signature: private  CompositeRestrictionProvider(@NotNull Collection<? extends RestrictionProvider> providers)
focal_class.identifier: CompositeRestrictionProvider
focal_class.modifiers: private
focal_class.parameters: (@NotNull Collection<? extends RestrictionProvider> providers)
focal_class.signature:  CompositeRestrictionProvider(@NotNull Collection<? extends RestrictionProvider> providers)
focal_class.class_method_signature: CompositeRestrictionProvider.newInstance(@NotNull RestrictionProvider... providers)
focal_class.full_signature: public static RestrictionProvider newInstance(@NotNull RestrictionProvider... providers)
focal_class.identifier: newInstance
focal_class.modifiers: public static
focal_class.parameters: (@NotNull RestrictionProvider... providers)
focal_class.return: RestrictionProvider
focal_class.signature: RestrictionProvider newInstance(@NotNull RestrictionProvider... providers)
focal_class.class_method_signature: CompositeRestrictionProvider.newInstance(@NotNull Collection<? extends RestrictionProvider> providers)
focal_class.full_signature: public static RestrictionProvider newInstance(@NotNull Collection<? extends RestrictionProvider> providers)
focal_class.identifier: newInstance
focal_class.modifiers: public static
focal_class.parameters: (@NotNull Collection<? extends RestrictionProvider> providers)
focal_class.return: RestrictionProvider
focal_class.signature: RestrictionProvider newInstance(@NotNull Collection<? extends RestrictionProvider> providers)
focal_class.class_method_signature: CompositeRestrictionProvider.getSupportedRestrictions(@Nullable String oakPath)
focal_class.full_signature: @NotNull @Override public Set<RestrictionDefinition> getSupportedRestrictions(@Nullable String oakPath)
focal_class.identifier: getSupportedRestrictions
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@Nullable String oakPath)
focal_class.return: Set<RestrictionDefinition>
focal_class.signature: Set<RestrictionDefinition> getSupportedRestrictions(@Nullable String oakPath)
focal_class.class_method_signature: CompositeRestrictionProvider.createRestriction(@Nullable String oakPath, @NotNull String oakName, @NotNull Value value)
focal_class.full_signature: @NotNull @Override public Restriction createRestriction(@Nullable String oakPath, @NotNull String oakName, @NotNull Value value)
focal_class.identifier: createRestriction
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@Nullable String oakPath, @NotNull String oakName, @NotNull Value value)
focal_class.return: Restriction
focal_class.signature: Restriction createRestriction(@Nullable String oakPath, @NotNull String oakName, @NotNull Value value)
focal_class.class_method_signature: CompositeRestrictionProvider.createRestriction(@Nullable String oakPath, @NotNull String oakName, @NotNull Value... values)
focal_class.full_signature: @NotNull @Override public Restriction createRestriction(@Nullable String oakPath, @NotNull String oakName, @NotNull Value... values)
focal_class.identifier: createRestriction
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@Nullable String oakPath, @NotNull String oakName, @NotNull Value... values)
focal_class.return: Restriction
focal_class.signature: Restriction createRestriction(@Nullable String oakPath, @NotNull String oakName, @NotNull Value... values)
focal_class.class_method_signature: CompositeRestrictionProvider.readRestrictions(@Nullable String oakPath, @NotNull Tree aceTree)
focal_class.full_signature: @NotNull @Override public Set<Restriction> readRestrictions(@Nullable String oakPath, @NotNull Tree aceTree)
focal_class.identifier: readRestrictions
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@Nullable String oakPath, @NotNull Tree aceTree)
focal_class.return: Set<Restriction>
focal_class.signature: Set<Restriction> readRestrictions(@Nullable String oakPath, @NotNull Tree aceTree)
focal_class.class_method_signature: CompositeRestrictionProvider.writeRestrictions(String oakPath, Tree aceTree, Set<Restriction> restrictions)
focal_class.full_signature: @Override public void writeRestrictions(String oakPath, Tree aceTree, Set<Restriction> restrictions)
focal_class.identifier: writeRestrictions
focal_class.modifiers: @Override public
focal_class.parameters: (String oakPath, Tree aceTree, Set<Restriction> restrictions)
focal_class.return: void
focal_class.signature: void writeRestrictions(String oakPath, Tree aceTree, Set<Restriction> restrictions)
focal_class.class_method_signature: CompositeRestrictionProvider.validateRestrictions(@Nullable String oakPath, @NotNull Tree aceTree)
focal_class.full_signature: @Override public void validateRestrictions(@Nullable String oakPath, @NotNull Tree aceTree)
focal_class.identifier: validateRestrictions
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable String oakPath, @NotNull Tree aceTree)
focal_class.return: void
focal_class.signature: void validateRestrictions(@Nullable String oakPath, @NotNull Tree aceTree)
focal_class.class_method_signature: CompositeRestrictionProvider.getPattern(@Nullable String oakPath, @NotNull Tree tree)
focal_class.full_signature: @NotNull @Override public RestrictionPattern getPattern(@Nullable String oakPath, @NotNull Tree tree)
focal_class.identifier: getPattern
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@Nullable String oakPath, @NotNull Tree tree)
focal_class.return: RestrictionPattern
focal_class.signature: RestrictionPattern getPattern(@Nullable String oakPath, @NotNull Tree tree)
focal_class.class_method_signature: CompositeRestrictionProvider.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: CompositeRestrictionProvider.getProvider(@Nullable String oakPath, @NotNull String oakName)
focal_class.full_signature: private RestrictionProvider getProvider(@Nullable String oakPath, @NotNull String oakName)
focal_class.identifier: getProvider
focal_class.modifiers: private
focal_class.parameters: (@Nullable String oakPath, @NotNull String oakName)
focal_class.return: RestrictionProvider
focal_class.signature: RestrictionProvider getProvider(@Nullable String oakPath, @NotNull String oakName)
focal_class.class_method_signature: CompositeRestrictionProvider.getSupported(@Nullable String oakPath)
focal_class.full_signature: private Map<String, RestrictionDefinition> getSupported(@Nullable String oakPath)
focal_class.identifier: getSupported
focal_class.modifiers: private
focal_class.parameters: (@Nullable String oakPath)
focal_class.return: Map<String, RestrictionDefinition>
focal_class.signature: Map<String, RestrictionDefinition> getSupported(@Nullable String oakPath)
focal_class.class_method_signature: CompositeRestrictionProvider.hasRestrictionProperty(Tree aceTree, String name)
focal_class.full_signature: private static boolean hasRestrictionProperty(Tree aceTree, String name)
focal_class.identifier: hasRestrictionProperty
focal_class.modifiers: private static
focal_class.parameters: (Tree aceTree, String name)
focal_class.return: boolean
focal_class.signature: boolean hasRestrictionProperty(Tree aceTree, String name)
focal_class.class_method_signature: CompositeRestrictionProvider.getName(Restriction restriction)
focal_class.full_signature: private static String getName(Restriction restriction)
focal_class.identifier: getName
focal_class.modifiers: private static
focal_class.parameters: (Restriction restriction)
focal_class.return: String
focal_class.signature: String getName(Restriction restriction)
focal_method.body: @Override
      public void writeRestrictions(String oakPath, Tree aceTree, Set<Restriction> restrictions) throws RepositoryException {
          for (Restriction r : restrictions) {
              RestrictionProvider rp = getProvider(oakPath, getName(r));
              rp.writeRestrictions(oakPath, aceTree, Collections.singleton(r));
          }
      }
focal_method.class_method_signature: CompositeRestrictionProvider.writeRestrictions(String oakPath, Tree aceTree, Set<Restriction> restrictions)
focal_method.full_signature: @Override public void writeRestrictions(String oakPath, Tree aceTree, Set<Restriction> restrictions)
focal_method.identifier: writeRestrictions
focal_method.invocations: getProvider getName writeRestrictions singleton
focal_method.modifiers: @Override public
focal_method.parameters: (String oakPath, Tree aceTree, Set<Restriction> restrictions)
focal_method.return: void
focal_method.signature: void writeRestrictions(String oakPath, Tree aceTree, Set<Restriction> restrictions)