test_class.file: core/src/test/java/net/adamcin/oakpal/core/jcrfacade/security/user/UserManagerFacadeTest.java
test_class.identifier: UserManagerFacadeTest
test_case.body: @Test
      public void testGetAuthorizable() throws Exception {
          UserManager delegate = mock(UserManager.class);
          UserManagerFacade facade = getFacade(delegate);
          final User userValue = mock(User.class);
          when(userValue.getID()).thenReturn("foo");
          final Group groupValue = mock(Group.class);
          when(groupValue.getID()).thenReturn("bar");
          when(delegate.getAuthorizable(anyString(), isNull())).thenReturn(null);
          when(delegate.getAuthorizable("foo", User.class)).thenReturn(userValue);
          when(delegate.getAuthorizable("foo", Authorizable.class)).thenReturn(userValue);
          when(delegate.getAuthorizable("bar", Group.class)).thenReturn(groupValue);
          when(delegate.getAuthorizable("bar", Authorizable.class)).thenReturn(groupValue);
  
          assertNull("is null", facade.getAuthorizable("", null));
          Authorizable userFacadeAuthz = facade.getAuthorizable("foo", Authorizable.class);
          assertTrue("is user facade", userFacadeAuthz instanceof UserFacade);
          assertEquals("is same id", "foo", userFacadeAuthz.getID());
          User userFacade = facade.getAuthorizable("foo", User.class);
          assertTrue("is user facade", userFacade instanceof UserFacade);
          assertEquals("is same id", "foo", userFacade.getID());
          Authorizable groupFacadeAuthz = facade.getAuthorizable("bar", Authorizable.class);
          assertTrue("is group facade", groupFacadeAuthz instanceof GroupFacade);
          assertEquals("is same id", "bar", groupFacadeAuthz.getID());
          Group groupFacade = facade.getAuthorizable("bar", Group.class);
          assertTrue("is group facade", groupFacade instanceof GroupFacade);
          assertEquals("is same id", "bar", groupFacade.getID());
      }
test_case.class_method_signature: UserManagerFacadeTest.testGetAuthorizable()
test_case.full_signature: @Test public void testGetAuthorizable()
test_case.identifier: testGetAuthorizable
test_case.invocations: mock getFacade mock thenReturn when getID mock thenReturn when getID thenReturn when getAuthorizable anyString isNull thenReturn when getAuthorizable thenReturn when getAuthorizable thenReturn when getAuthorizable thenReturn when getAuthorizable assertNull getAuthorizable getAuthorizable assertTrue assertEquals getID getAuthorizable assertTrue assertEquals getID getAuthorizable assertTrue assertEquals getID getAuthorizable assertTrue assertEquals getID
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetAuthorizable()
focal_class.declarator: delegate
focal_class.modifier: private final @NotNull
focal_class.original_string: private final @NotNull UserManager delegate;
focal_class.type: UserManager
focal_class.var_name: delegate
focal_class.file: core/src/main/java/net/adamcin/oakpal/core/jcrfacade/security/user/UserManagerFacade.java
focal_class.identifier: UserManagerFacade
focal_class.interfaces: implements UserManager
focal_class.class_method_signature: UserManagerFacade.UserManagerFacade(final @NotNull UserManager delegate)
focal_class.full_signature: public  UserManagerFacade(final @NotNull UserManager delegate)
focal_class.identifier: UserManagerFacade
focal_class.modifiers: public
focal_class.parameters: (final @NotNull UserManager delegate)
focal_class.signature:  UserManagerFacade(final @NotNull UserManager delegate)
focal_class.class_method_signature: UserManagerFacade.isAutoSave()
focal_class.full_signature: @Override public boolean isAutoSave()
focal_class.identifier: isAutoSave
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isAutoSave()
focal_class.class_method_signature: UserManagerFacade.getAuthorizable(final String id)
focal_class.full_signature: @Override public Authorizable getAuthorizable(final String id)
focal_class.identifier: getAuthorizable
focal_class.modifiers: @Override public
focal_class.parameters: (final String id)
focal_class.return: Authorizable
focal_class.signature: Authorizable getAuthorizable(final String id)
focal_class.class_method_signature: UserManagerFacade.getAuthorizable(final String id, final Class<T> authorizableClass)
focal_class.full_signature: @Override public T getAuthorizable(final String id, final Class<T> authorizableClass)
focal_class.identifier: getAuthorizable
focal_class.modifiers: @Override public
focal_class.parameters: (final String id, final Class<T> authorizableClass)
focal_class.return: T
focal_class.signature: T getAuthorizable(final String id, final Class<T> authorizableClass)
focal_class.class_method_signature: UserManagerFacade.getAuthorizable(final Principal principal)
focal_class.full_signature: @Override public Authorizable getAuthorizable(final Principal principal)
focal_class.identifier: getAuthorizable
focal_class.modifiers: @Override public
focal_class.parameters: (final Principal principal)
focal_class.return: Authorizable
focal_class.signature: Authorizable getAuthorizable(final Principal principal)
focal_class.class_method_signature: UserManagerFacade.getAuthorizableByPath(final String path)
focal_class.full_signature: @Override public Authorizable getAuthorizableByPath(final String path)
focal_class.identifier: getAuthorizableByPath
focal_class.modifiers: @Override public
focal_class.parameters: (final String path)
focal_class.return: Authorizable
focal_class.signature: Authorizable getAuthorizableByPath(final String path)
focal_class.class_method_signature: UserManagerFacade.findAuthorizables(final String relPath, final String value)
focal_class.full_signature: @Override public Iterator<Authorizable> findAuthorizables(final String relPath, final String value)
focal_class.identifier: findAuthorizables
focal_class.modifiers: @Override public
focal_class.parameters: (final String relPath, final String value)
focal_class.return: Iterator<Authorizable>
focal_class.signature: Iterator<Authorizable> findAuthorizables(final String relPath, final String value)
focal_class.class_method_signature: UserManagerFacade.findAuthorizables(final String relPath, final String value, final int searchType)
focal_class.full_signature: @Override public Iterator<Authorizable> findAuthorizables(final String relPath, final String value, final int searchType)
focal_class.identifier: findAuthorizables
focal_class.modifiers: @Override public
focal_class.parameters: (final String relPath, final String value, final int searchType)
focal_class.return: Iterator<Authorizable>
focal_class.signature: Iterator<Authorizable> findAuthorizables(final String relPath, final String value, final int searchType)
focal_class.class_method_signature: UserManagerFacade.findAuthorizables(final Query query)
focal_class.full_signature: @Override public Iterator<Authorizable> findAuthorizables(final Query query)
focal_class.identifier: findAuthorizables
focal_class.modifiers: @Override public
focal_class.parameters: (final Query query)
focal_class.return: Iterator<Authorizable>
focal_class.signature: Iterator<Authorizable> findAuthorizables(final Query query)
focal_class.class_method_signature: UserManagerFacade.createUser(final String userID, final String password)
focal_class.full_signature: @Override public User createUser(final String userID, final String password)
focal_class.identifier: createUser
focal_class.modifiers: @Override public
focal_class.parameters: (final String userID, final String password)
focal_class.return: User
focal_class.signature: User createUser(final String userID, final String password)
focal_class.class_method_signature: UserManagerFacade.createUser(final String userID, final String password, final Principal principal, final String intermediatePath)
focal_class.full_signature: @Override public User createUser(final String userID, final String password, final Principal principal, final String intermediatePath)
focal_class.identifier: createUser
focal_class.modifiers: @Override public
focal_class.parameters: (final String userID, final String password, final Principal principal, final String intermediatePath)
focal_class.return: User
focal_class.signature: User createUser(final String userID, final String password, final Principal principal, final String intermediatePath)
focal_class.class_method_signature: UserManagerFacade.createSystemUser(final String userID, final String intermediatePath)
focal_class.full_signature: @Override public User createSystemUser(final String userID, final String intermediatePath)
focal_class.identifier: createSystemUser
focal_class.modifiers: @Override public
focal_class.parameters: (final String userID, final String intermediatePath)
focal_class.return: User
focal_class.signature: User createSystemUser(final String userID, final String intermediatePath)
focal_class.class_method_signature: UserManagerFacade.createGroup(final String groupID)
focal_class.full_signature: @Override public Group createGroup(final String groupID)
focal_class.identifier: createGroup
focal_class.modifiers: @Override public
focal_class.parameters: (final String groupID)
focal_class.return: Group
focal_class.signature: Group createGroup(final String groupID)
focal_class.class_method_signature: UserManagerFacade.createGroup(final Principal principal)
focal_class.full_signature: @Override public Group createGroup(final Principal principal)
focal_class.identifier: createGroup
focal_class.modifiers: @Override public
focal_class.parameters: (final Principal principal)
focal_class.return: Group
focal_class.signature: Group createGroup(final Principal principal)
focal_class.class_method_signature: UserManagerFacade.createGroup(final Principal principal, final String intermediatePath)
focal_class.full_signature: @Override public Group createGroup(final Principal principal, final String intermediatePath)
focal_class.identifier: createGroup
focal_class.modifiers: @Override public
focal_class.parameters: (final Principal principal, final String intermediatePath)
focal_class.return: Group
focal_class.signature: Group createGroup(final Principal principal, final String intermediatePath)
focal_class.class_method_signature: UserManagerFacade.createGroup(final String groupID, final Principal principal, final String intermediatePath)
focal_class.full_signature: @Override public Group createGroup(final String groupID, final Principal principal, final String intermediatePath)
focal_class.identifier: createGroup
focal_class.modifiers: @Override public
focal_class.parameters: (final String groupID, final Principal principal, final String intermediatePath)
focal_class.return: Group
focal_class.signature: Group createGroup(final String groupID, final Principal principal, final String intermediatePath)
focal_class.class_method_signature: UserManagerFacade.autoSave(final boolean enable)
focal_class.full_signature: @Override public void autoSave(final boolean enable)
focal_class.identifier: autoSave
focal_class.modifiers: @Override public
focal_class.parameters: (final boolean enable)
focal_class.return: void
focal_class.signature: void autoSave(final boolean enable)
focal_method.body: @Override
      public Authorizable getAuthorizable(final String id) throws RepositoryException {
          Authorizable internal = delegate.getAuthorizable(id);
          return AuthorizableFacade.ensureBestWrapper(internal);
      }
focal_method.class_method_signature: UserManagerFacade.getAuthorizable(final String id)
focal_method.full_signature: @Override public Authorizable getAuthorizable(final String id)
focal_method.identifier: getAuthorizable
focal_method.invocations: getAuthorizable ensureBestWrapper
focal_method.modifiers: @Override public
focal_method.parameters: (final String id)
focal_method.return: Authorizable
focal_method.signature: Authorizable getAuthorizable(final String id)