test_class.file: core/src/test/java/net/adamcin/oakpal/core/jcrfacade/security/AccessControlManagerFacadeTest.java
test_class.identifier: AccessControlManagerFacadeTest
test_case.body: @Test
      public void testFindBestWrapper() {
          assertNull("just null", AccessControlManagerFacade.findBestWrapper(null));
          AccessControlManager jcrDelegate = mock(AccessControlManager.class);
          AccessControlManager jcrFacade = AccessControlManagerFacade.findBestWrapper(jcrDelegate);
          assertTrue("is facade", jcrFacade instanceof AccessControlManagerFacade);
          assertFalse("is not jackrabbit facade", jcrFacade instanceof JackrabbitAccessControlManagerFacade);
          AccessControlManager jackDelegate = mock(JackrabbitAccessControlManager.class);
          AccessControlManager jackFacade = AccessControlManagerFacade.findBestWrapper(jackDelegate);
          assertTrue("is jackrabbit facade", jackFacade instanceof JackrabbitAccessControlManagerFacade);
      }
test_case.class_method_signature: AccessControlManagerFacadeTest.testFindBestWrapper()
test_case.full_signature: @Test public void testFindBestWrapper()
test_case.identifier: testFindBestWrapper
test_case.invocations: assertNull findBestWrapper mock findBestWrapper assertTrue assertFalse mock findBestWrapper assertTrue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFindBestWrapper()
focal_class.declarator: delegate
focal_class.modifier: protected final @NotNull
focal_class.original_string: protected final @NotNull M delegate;
focal_class.type: M
focal_class.var_name: delegate
focal_class.file: core/src/main/java/net/adamcin/oakpal/core/jcrfacade/security/AccessControlManagerFacade.java
focal_class.identifier: AccessControlManagerFacade
focal_class.interfaces: implements AccessControlManager
focal_class.class_method_signature: AccessControlManagerFacade.AccessControlManagerFacade(final @NotNull M delegate)
focal_class.full_signature: @SuppressWarnings("WeakerAccess") public  AccessControlManagerFacade(final @NotNull M delegate)
focal_class.identifier: AccessControlManagerFacade
focal_class.modifiers: @SuppressWarnings("WeakerAccess") public
focal_class.parameters: (final @NotNull M delegate)
focal_class.signature:  AccessControlManagerFacade(final @NotNull M delegate)
focal_class.class_method_signature: AccessControlManagerFacade.findBestWrapper(final @Nullable AccessControlManager manager)
focal_class.full_signature: public static @Nullable AccessControlManager findBestWrapper(final @Nullable AccessControlManager manager)
focal_class.identifier: findBestWrapper
focal_class.modifiers: public static @Nullable
focal_class.parameters: (final @Nullable AccessControlManager manager)
focal_class.return: AccessControlManager
focal_class.signature: AccessControlManager findBestWrapper(final @Nullable AccessControlManager manager)
focal_class.class_method_signature: AccessControlManagerFacade.getSupportedPrivileges(String absPath)
focal_class.full_signature: @Override public final Privilege[] getSupportedPrivileges(String absPath)
focal_class.identifier: getSupportedPrivileges
focal_class.modifiers: @Override public final
focal_class.parameters: (String absPath)
focal_class.return: Privilege[]
focal_class.signature: Privilege[] getSupportedPrivileges(String absPath)
focal_class.class_method_signature: AccessControlManagerFacade.privilegeFromName(String privilegeName)
focal_class.full_signature: @Override public final Privilege privilegeFromName(String privilegeName)
focal_class.identifier: privilegeFromName
focal_class.modifiers: @Override public final
focal_class.parameters: (String privilegeName)
focal_class.return: Privilege
focal_class.signature: Privilege privilegeFromName(String privilegeName)
focal_class.class_method_signature: AccessControlManagerFacade.hasPrivileges(String absPath, Privilege[] privileges)
focal_class.full_signature: @Override public final boolean hasPrivileges(String absPath, Privilege[] privileges)
focal_class.identifier: hasPrivileges
focal_class.modifiers: @Override public final
focal_class.parameters: (String absPath, Privilege[] privileges)
focal_class.return: boolean
focal_class.signature: boolean hasPrivileges(String absPath, Privilege[] privileges)
focal_class.class_method_signature: AccessControlManagerFacade.getPrivileges(String absPath)
focal_class.full_signature: @Override public final Privilege[] getPrivileges(String absPath)
focal_class.identifier: getPrivileges
focal_class.modifiers: @Override public final
focal_class.parameters: (String absPath)
focal_class.return: Privilege[]
focal_class.signature: Privilege[] getPrivileges(String absPath)
focal_class.class_method_signature: AccessControlManagerFacade.getPolicies(String absPath)
focal_class.full_signature: @Override public final AccessControlPolicy[] getPolicies(String absPath)
focal_class.identifier: getPolicies
focal_class.modifiers: @Override public final
focal_class.parameters: (String absPath)
focal_class.return: AccessControlPolicy[]
focal_class.signature: AccessControlPolicy[] getPolicies(String absPath)
focal_class.class_method_signature: AccessControlManagerFacade.getEffectivePolicies(String absPath)
focal_class.full_signature: @Override public final AccessControlPolicy[] getEffectivePolicies(String absPath)
focal_class.identifier: getEffectivePolicies
focal_class.modifiers: @Override public final
focal_class.parameters: (String absPath)
focal_class.return: AccessControlPolicy[]
focal_class.signature: AccessControlPolicy[] getEffectivePolicies(String absPath)
focal_class.class_method_signature: AccessControlManagerFacade.getApplicablePolicies(String absPath)
focal_class.full_signature: @Override public final AccessControlPolicyIterator getApplicablePolicies(String absPath)
focal_class.identifier: getApplicablePolicies
focal_class.modifiers: @Override public final
focal_class.parameters: (String absPath)
focal_class.return: AccessControlPolicyIterator
focal_class.signature: AccessControlPolicyIterator getApplicablePolicies(String absPath)
focal_class.class_method_signature: AccessControlManagerFacade.setPolicy(String absPath, AccessControlPolicy policy)
focal_class.full_signature: @Override public final void setPolicy(String absPath, AccessControlPolicy policy)
focal_class.identifier: setPolicy
focal_class.modifiers: @Override public final
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: AccessControlManagerFacade.removePolicy(String absPath, AccessControlPolicy policy)
focal_class.full_signature: @Override public final void removePolicy(String absPath, AccessControlPolicy policy)
focal_class.identifier: removePolicy
focal_class.modifiers: @Override public final
focal_class.parameters: (String absPath, AccessControlPolicy policy)
focal_class.return: void
focal_class.signature: void removePolicy(String absPath, AccessControlPolicy policy)
focal_method.body: public static @Nullable AccessControlManager
      findBestWrapper(final @Nullable AccessControlManager manager) {
          if (manager instanceof JackrabbitAccessControlManager) {
              return new JackrabbitAccessControlManagerFacade((JackrabbitAccessControlManager) manager);
          } else if (manager != null) {
              return new AccessControlManagerFacade<>(manager);
          } else {
              return null;
          }
      }
focal_method.class_method_signature: AccessControlManagerFacade.findBestWrapper(final @Nullable AccessControlManager manager)
focal_method.full_signature: public static @Nullable AccessControlManager findBestWrapper(final @Nullable AccessControlManager manager)
focal_method.identifier: findBestWrapper
focal_method.modifiers: public static @Nullable
focal_method.parameters: (final @Nullable AccessControlManager manager)
focal_method.return: AccessControlManager
focal_method.signature: AccessControlManager findBestWrapper(final @Nullable AccessControlManager manager)