test_class.declarator: acMgr
test_class.modifier: private
test_class.original_string: private PrincipalBasedAccessControlManager acMgr;
test_class.type: PrincipalBasedAccessControlManager
test_class.var_name: acMgr
test_class.declarator: validPrincipal
test_class.modifier: private
test_class.original_string: private ItemBasedPrincipal validPrincipal;
test_class.type: ItemBasedPrincipal
test_class.var_name: validPrincipal
test_class.file: oak-authorization-principalbased/src/test/java/org/apache/jackrabbit/oak/spi/security/authorization/principalbased/impl/PrincipalBasedAccessControlManagerTest.java
test_class.identifier: PrincipalBasedAccessControlManagerTest
test_class.superclass: extends AbstractPrincipalBasedTest
test_case.body: @Test
      public void testGetEffectivePoliciesNothingSet() throws Exception {
          assertEquals(0, acMgr.getEffectivePolicies(ImmutableSet.of(validPrincipal)).length);
      }
test_case.class_method_signature: PrincipalBasedAccessControlManagerTest.testGetEffectivePoliciesNothingSet()
test_case.full_signature: @Test public void testGetEffectivePoliciesNothingSet()
test_case.identifier: testGetEffectivePoliciesNothingSet
test_case.invocations: assertEquals getEffectivePolicies of
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetEffectivePoliciesNothingSet()
focal_class.declarator: log = LoggerFactory.getLogger(PrincipalBasedAccessControlManager.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(PrincipalBasedAccessControlManager.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: mgrProvider
focal_class.modifier: private final
focal_class.original_string: private final MgrProvider mgrProvider;
focal_class.type: MgrProvider
focal_class.var_name: mgrProvider
focal_class.declarator: importBehavior
focal_class.modifier: private final
focal_class.original_string: private final int importBehavior;
focal_class.type: int
focal_class.var_name: importBehavior
focal_class.declarator: readPaths
focal_class.modifier: private final
focal_class.original_string: private final Set<String> readPaths;
focal_class.type: Set<String>
focal_class.var_name: readPaths
focal_class.declarator: principalManager
focal_class.modifier: private final
focal_class.original_string: private final PrincipalManager principalManager;
focal_class.type: PrincipalManager
focal_class.var_name: principalManager
focal_class.declarator: privilegeBitsProvider
focal_class.modifier: private final
focal_class.original_string: private final PrivilegeBitsProvider privilegeBitsProvider;
focal_class.type: PrivilegeBitsProvider
focal_class.var_name: privilegeBitsProvider
focal_class.declarator: filterProvider
focal_class.modifier: private final
focal_class.original_string: private final FilterProvider filterProvider;
focal_class.type: FilterProvider
focal_class.var_name: filterProvider
focal_class.declarator: filter
focal_class.modifier: private final
focal_class.original_string: private final Filter filter;
focal_class.type: Filter
focal_class.var_name: filter
focal_class.file: oak-authorization-principalbased/src/main/java/org/apache/jackrabbit/oak/spi/security/authorization/principalbased/impl/PrincipalBasedAccessControlManager.java
focal_class.identifier: PrincipalBasedAccessControlManager
focal_class.interfaces: implements PolicyOwner, Constants
focal_class.class_method_signature: PrincipalBasedAccessControlManager.PrincipalBasedAccessControlManager(@NotNull MgrProvider mgrProvider,
                                         @NotNull FilterProvider filterProvider)
focal_class.full_signature:   PrincipalBasedAccessControlManager(@NotNull MgrProvider mgrProvider,
                                         @NotNull FilterProvider filterProvider)
focal_class.identifier: PrincipalBasedAccessControlManager
focal_class.parameters: (@NotNull MgrProvider mgrProvider,
                                         @NotNull FilterProvider filterProvider)
focal_class.signature:  PrincipalBasedAccessControlManager(@NotNull MgrProvider mgrProvider,
                                         @NotNull FilterProvider filterProvider)
focal_class.class_method_signature: PrincipalBasedAccessControlManager.getApplicablePolicies(@NotNull Principal principal)
focal_class.full_signature: @NotNull @Override public JackrabbitAccessControlPolicy[] getApplicablePolicies(@NotNull Principal principal)
focal_class.identifier: getApplicablePolicies
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@NotNull Principal principal)
focal_class.return: JackrabbitAccessControlPolicy[]
focal_class.signature: JackrabbitAccessControlPolicy[] getApplicablePolicies(@NotNull Principal principal)
focal_class.class_method_signature: PrincipalBasedAccessControlManager.getPolicies(@NotNull Principal principal)
focal_class.full_signature: @NotNull @Override public JackrabbitAccessControlPolicy[] getPolicies(@NotNull Principal principal)
focal_class.identifier: getPolicies
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@NotNull Principal principal)
focal_class.return: JackrabbitAccessControlPolicy[]
focal_class.signature: JackrabbitAccessControlPolicy[] getPolicies(@NotNull Principal principal)
focal_class.class_method_signature: PrincipalBasedAccessControlManager.getEffectivePolicies(@NotNull Set<Principal> principals)
focal_class.full_signature: @NotNull @Override public AccessControlPolicy[] getEffectivePolicies(@NotNull Set<Principal> principals)
focal_class.identifier: getEffectivePolicies
focal_class.modifiers: @NotNull @Override public
focal_class.parameters: (@NotNull Set<Principal> principals)
focal_class.return: AccessControlPolicy[]
focal_class.signature: AccessControlPolicy[] getEffectivePolicies(@NotNull Set<Principal> principals)
focal_class.class_method_signature: PrincipalBasedAccessControlManager.getPolicies(String absPath)
focal_class.full_signature: @Override public AccessControlPolicy[] getPolicies(String absPath)
focal_class.identifier: getPolicies
focal_class.modifiers: @Override public
focal_class.parameters: (String absPath)
focal_class.return: AccessControlPolicy[]
focal_class.signature: AccessControlPolicy[] getPolicies(String absPath)
focal_class.class_method_signature: PrincipalBasedAccessControlManager.getEffectivePolicies(String absPath)
focal_class.full_signature: @Override public AccessControlPolicy[] getEffectivePolicies(String absPath)
focal_class.identifier: getEffectivePolicies
focal_class.modifiers: @Override public
focal_class.parameters: (String absPath)
focal_class.return: AccessControlPolicy[]
focal_class.signature: AccessControlPolicy[] getEffectivePolicies(String absPath)
focal_class.class_method_signature: PrincipalBasedAccessControlManager.getApplicablePolicies(String absPath)
focal_class.full_signature: @Override public AccessControlPolicyIterator getApplicablePolicies(String absPath)
focal_class.identifier: getApplicablePolicies
focal_class.modifiers: @Override public
focal_class.parameters: (String absPath)
focal_class.return: AccessControlPolicyIterator
focal_class.signature: AccessControlPolicyIterator getApplicablePolicies(String absPath)
focal_class.class_method_signature: PrincipalBasedAccessControlManager.setPolicy(String absPath, AccessControlPolicy policy)
focal_class.full_signature: @Override public void setPolicy(String absPath, AccessControlPolicy policy)
focal_class.identifier: setPolicy
focal_class.modifiers: @Override public
focal_class.parameters: (String absPath, AccessControlPolicy policy)
focal_class.return: void
focal_class.signature: void setPolicy(String absPath, AccessControlPolicy policy)
focal_class.class_method_signature: PrincipalBasedAccessControlManager.removePolicy(String absPath, AccessControlPolicy policy)
focal_class.full_signature: @Override public void removePolicy(String absPath, AccessControlPolicy policy)
focal_class.identifier: removePolicy
focal_class.modifiers: @Override public
focal_class.parameters: (String absPath, AccessControlPolicy policy)
focal_class.return: void
focal_class.signature: void removePolicy(String absPath, AccessControlPolicy policy)
focal_class.class_method_signature: PrincipalBasedAccessControlManager.defines(@Nullable String absPath, @NotNull AccessControlPolicy accessControlPolicy)
focal_class.full_signature: @Override public boolean defines(@Nullable String absPath, @NotNull AccessControlPolicy accessControlPolicy)
focal_class.identifier: defines
focal_class.modifiers: @Override public
focal_class.parameters: (@Nullable String absPath, @NotNull AccessControlPolicy accessControlPolicy)
focal_class.return: boolean
focal_class.signature: boolean defines(@Nullable String absPath, @NotNull AccessControlPolicy accessControlPolicy)
focal_class.class_method_signature: PrincipalBasedAccessControlManager.canHandle(@Nullable Principal principal)
focal_class.full_signature: private boolean canHandle(@Nullable Principal principal)
focal_class.identifier: canHandle
focal_class.modifiers: private
focal_class.parameters: (@Nullable Principal principal)
focal_class.return: boolean
focal_class.signature: boolean canHandle(@Nullable Principal principal)
focal_class.class_method_signature: PrincipalBasedAccessControlManager.canHandle(@NotNull Set<Principal> principals)
focal_class.full_signature:  boolean canHandle(@NotNull Set<Principal> principals)
focal_class.identifier: canHandle
focal_class.parameters: (@NotNull Set<Principal> principals)
focal_class.return: boolean
focal_class.signature: boolean canHandle(@NotNull Set<Principal> principals)
focal_class.class_method_signature: PrincipalBasedAccessControlManager.checkValidPolicy(@Nullable String absPath, @NotNull AccessControlPolicy policy)
focal_class.full_signature: private PrincipalPolicyImpl checkValidPolicy(@Nullable String absPath, @NotNull AccessControlPolicy policy)
focal_class.identifier: checkValidPolicy
focal_class.modifiers: private
focal_class.parameters: (@Nullable String absPath, @NotNull AccessControlPolicy policy)
focal_class.return: PrincipalPolicyImpl
focal_class.signature: PrincipalPolicyImpl checkValidPolicy(@Nullable String absPath, @NotNull AccessControlPolicy policy)
focal_class.class_method_signature: PrincipalBasedAccessControlManager.getPolicyTree(@NotNull Tree accessControlledTree)
focal_class.full_signature: @NotNull private static Tree getPolicyTree(@NotNull Tree accessControlledTree)
focal_class.identifier: getPolicyTree
focal_class.modifiers: @NotNull private static
focal_class.parameters: (@NotNull Tree accessControlledTree)
focal_class.return: Tree
focal_class.signature: Tree getPolicyTree(@NotNull Tree accessControlledTree)
focal_class.class_method_signature: PrincipalBasedAccessControlManager.createPolicy(@NotNull Principal principal,
                                                         boolean isEffectivePolicy)
focal_class.full_signature: @Nullable private JackrabbitAccessControlPolicy createPolicy(@NotNull Principal principal,
                                                         boolean isEffectivePolicy)
focal_class.identifier: createPolicy
focal_class.modifiers: @Nullable private
focal_class.parameters: (@NotNull Principal principal,
                                                         boolean isEffectivePolicy)
focal_class.return: JackrabbitAccessControlPolicy
focal_class.signature: JackrabbitAccessControlPolicy createPolicy(@NotNull Principal principal,
                                                         boolean isEffectivePolicy)
focal_class.class_method_signature: PrincipalBasedAccessControlManager.isAccessControlled(@NotNull Tree tree)
focal_class.full_signature: private boolean isAccessControlled(@NotNull Tree tree)
focal_class.identifier: isAccessControlled
focal_class.modifiers: private
focal_class.parameters: (@NotNull Tree tree)
focal_class.return: boolean
focal_class.signature: boolean isAccessControlled(@NotNull Tree tree)
focal_class.class_method_signature: PrincipalBasedAccessControlManager.getEffectivePaths(@Nullable String oakPath)
focal_class.full_signature: private Iterable<String> getEffectivePaths(@Nullable String oakPath)
focal_class.identifier: getEffectivePaths
focal_class.modifiers: private
focal_class.parameters: (@Nullable String oakPath)
focal_class.return: Iterable<String>
focal_class.signature: Iterable<String> getEffectivePaths(@Nullable String oakPath)
focal_class.class_method_signature: PrincipalBasedAccessControlManager.createEffectiveEntry(@NotNull Tree entryTree)
focal_class.full_signature: @Nullable private AbstractEntry createEffectiveEntry(@NotNull Tree entryTree)
focal_class.identifier: createEffectiveEntry
focal_class.modifiers: @Nullable private
focal_class.parameters: (@NotNull Tree entryTree)
focal_class.return: AbstractEntry
focal_class.signature: AbstractEntry createEffectiveEntry(@NotNull Tree entryTree)
focal_class.class_method_signature: PrincipalBasedAccessControlManager.isReadablePath(@Nullable String oakPath)
focal_class.full_signature: private boolean isReadablePath(@Nullable String oakPath)
focal_class.identifier: isReadablePath
focal_class.modifiers: private
focal_class.parameters: (@Nullable String oakPath)
focal_class.return: boolean
focal_class.signature: boolean isReadablePath(@Nullable String oakPath)
focal_class.superclass: extends AbstractAccessControlManager
focal_method.body: @NotNull
      @Override
      public AccessControlPolicy[] getEffectivePolicies(@NotNull Set<Principal> principals) throws RepositoryException {
          // this implementation only takes effect if the complete set of principals can be handled. see also
          // PrincipalBasedAuthorizationConfiguration.getPermissionProvider
          if (canHandle(principals)) {
              Set<AccessControlPolicy> effective = new HashSet<>(principals.size());
              for (Principal principal : principals) {
                  AccessControlPolicy policy = createPolicy(principal, true);
                  if (policy != null) {
                      effective.add(policy);
                  }
              }
              return effective.toArray(new AccessControlPolicy[0]);
          } else {
              return new JackrabbitAccessControlPolicy[0];
          }
      }
focal_method.class_method_signature: PrincipalBasedAccessControlManager.getEffectivePolicies(@NotNull Set<Principal> principals)
focal_method.full_signature: @NotNull @Override public AccessControlPolicy[] getEffectivePolicies(@NotNull Set<Principal> principals)
focal_method.identifier: getEffectivePolicies
focal_method.invocations: canHandle size createPolicy add toArray
focal_method.modifiers: @NotNull @Override public
focal_method.parameters: (@NotNull Set<Principal> principals)
focal_method.return: AccessControlPolicy[]
focal_method.signature: AccessControlPolicy[] getEffectivePolicies(@NotNull Set<Principal> principals)