@Test public void testGetAuthorizable() throws RepositoryException { Authorizable a = autosaveMgr.getAuthorizable(UserConstants.DEFAULT_ANONYMOUS_ID); assertNotNull(a); assertTrue(a instanceof AuthorizableImpl); assertTrue(a instanceof UserImpl); a = autosaveMgr.getAuthorizableByPath(a.getPath()); assertNotNull(a); assertTrue(a instanceof AuthorizableImpl); assertTrue(a instanceof UserImpl); a = autosaveMgr.getAuthorizable(a.getPrincipal()); assertNotNull(a); assertTrue(a instanceof AuthorizableImpl); assertTrue(a instanceof UserImpl); assertNull(autosaveMgr.getAuthorizable("unknown")); }
@Nullable @Override public Authorizable getAuthorizable(@NotNull String id) throws RepositoryException { return wrap(dlg.getAuthorizable(id)); }
AutoSaveEnabledManager implements UserManager { @Nullable @Override public Authorizable getAuthorizable(@NotNull String id) throws RepositoryException { return wrap(dlg.getAuthorizable(id)); } }
AutoSaveEnabledManager implements UserManager { @Nullable @Override public Authorizable getAuthorizable(@NotNull String id) throws RepositoryException { return wrap(dlg.getAuthorizable(id)); } AutoSaveEnabledManager(UserManager dlg, Root root); }
AutoSaveEnabledManager implements UserManager { @Nullable @Override public Authorizable getAuthorizable(@NotNull String id) throws RepositoryException { return wrap(dlg.getAuthorizable(id)); } AutoSaveEnabledManager(UserManager dlg, Root root); @Nullable @Override Authorizable getAuthorizable(@NotNull String id); @Nullable @Override T getAuthorizable(@NotNull String id, @NotNull Class<T> authorizableClass); @Nullable @Override Authorizable getAuthorizable(@NotNull Principal principal); @Nullable @Override Authorizable getAuthorizableByPath(@NotNull String path); @NotNull @Override Iterator<Authorizable> findAuthorizables(@NotNull String relPath, @Nullable String value); @NotNull @Override Iterator<Authorizable> findAuthorizables(@NotNull String relPath, @Nullable String value, int searchType); @NotNull @Override Iterator<Authorizable> findAuthorizables(@NotNull Query query); @NotNull @Override User createUser(@NotNull String userID, @Nullable String password); @NotNull @Override User createUser(@NotNull String userID, @Nullable String password, @NotNull Principal principal, @Nullable String intermediatePath); @NotNull @Override User createSystemUser(@NotNull String userID, @Nullable String intermediatePath); @NotNull @Override Group createGroup(@NotNull String groupId); @NotNull @Override Group createGroup(@NotNull Principal principal); @NotNull @Override Group createGroup(@NotNull Principal principal, @Nullable String intermediatePath); @NotNull @Override Group createGroup(@NotNull String groupID, @NotNull Principal principal, @Nullable String intermediatePath); @Override boolean isAutoSave(); @Override void autoSave(boolean enable); }
AutoSaveEnabledManager implements UserManager { @Nullable @Override public Authorizable getAuthorizable(@NotNull String id) throws RepositoryException { return wrap(dlg.getAuthorizable(id)); } AutoSaveEnabledManager(UserManager dlg, Root root); @Nullable @Override Authorizable getAuthorizable(@NotNull String id); @Nullable @Override T getAuthorizable(@NotNull String id, @NotNull Class<T> authorizableClass); @Nullable @Override Authorizable getAuthorizable(@NotNull Principal principal); @Nullable @Override Authorizable getAuthorizableByPath(@NotNull String path); @NotNull @Override Iterator<Authorizable> findAuthorizables(@NotNull String relPath, @Nullable String value); @NotNull @Override Iterator<Authorizable> findAuthorizables(@NotNull String relPath, @Nullable String value, int searchType); @NotNull @Override Iterator<Authorizable> findAuthorizables(@NotNull Query query); @NotNull @Override User createUser(@NotNull String userID, @Nullable String password); @NotNull @Override User createUser(@NotNull String userID, @Nullable String password, @NotNull Principal principal, @Nullable String intermediatePath); @NotNull @Override User createSystemUser(@NotNull String userID, @Nullable String intermediatePath); @NotNull @Override Group createGroup(@NotNull String groupId); @NotNull @Override Group createGroup(@NotNull Principal principal); @NotNull @Override Group createGroup(@NotNull Principal principal, @Nullable String intermediatePath); @NotNull @Override Group createGroup(@NotNull String groupID, @NotNull Principal principal, @Nullable String intermediatePath); @Override boolean isAutoSave(); @Override void autoSave(boolean enable);  }