@Test(expected = UnsupportedRepositoryOperationException.class) public void testChangePassword2() throws Exception { User user = createUser(null); user.changePassword("pw", "newPw"); }
@Override public void changePassword(@Nullable String password) throws RepositoryException { throw new UnsupportedRepositoryOperationException("system user"); }
SystemUserImpl extends UserImpl { @Override public void changePassword(@Nullable String password) throws RepositoryException { throw new UnsupportedRepositoryOperationException("system user"); } }
SystemUserImpl extends UserImpl { @Override public void changePassword(@Nullable String password) throws RepositoryException { throw new UnsupportedRepositoryOperationException("system user"); } SystemUserImpl(@NotNull String id, @NotNull Tree tree, @NotNull UserManagerImpl userManager); }
SystemUserImpl extends UserImpl { @Override public void changePassword(@Nullable String password) throws RepositoryException { throw new UnsupportedRepositoryOperationException("system user"); } SystemUserImpl(@NotNull String id, @NotNull Tree tree, @NotNull UserManagerImpl userManager); @NotNull @Override Principal getPrincipal(); @Override boolean isSystemUser(); @Override void changePassword(@Nullable String password); @Override void changePassword(@Nullable String password, @NotNull String oldPassword); }
SystemUserImpl extends UserImpl { @Override public void changePassword(@Nullable String password) throws RepositoryException { throw new UnsupportedRepositoryOperationException("system user"); } SystemUserImpl(@NotNull String id, @NotNull Tree tree, @NotNull UserManagerImpl userManager); @NotNull @Override Principal getPrincipal(); @Override boolean isSystemUser(); @Override void changePassword(@Nullable String password); @Override void changePassword(@Nullable String password, @NotNull String oldPassword);  }