Package org.keycloak.test.tools.jobs

Examples of org.keycloak.test.tools.jobs.UsersJobInitializer


    public void createUsers(@PathParam("realm") String realmName, @QueryParam("count") Integer count,
                            @QueryParam("batch") Integer batch, @QueryParam("start") Integer start, @QueryParam("prefix") String prefix,
                            @QueryParam("async") Boolean async, @QueryParam("roles") String roles) throws InterruptedException {
        final String[] rolesArray = roles != null ? roles.split(",") : new String[0];

        createAndRunJob(realmName, count, batch, start, prefix, async, "Create users", new UsersJobInitializer() {

            @Override
            public UsersJob instantiateJob() {
                return new CreateUsersJob(rolesArray);
            }
View Full Code Here


    @GET
    @Path("{realm}/delete-users")
    public void deleteUsers(@PathParam("realm") String realmName, @QueryParam("count") Integer count,
                            @QueryParam("batch") Integer batch, @QueryParam("start") Integer start, @QueryParam("prefix") String prefix,
                            @QueryParam("async") Boolean async) throws InterruptedException {
        createAndRunJob(realmName, count, batch, start, prefix, async, "Delete users", new UsersJobInitializer() {

            @Override
            public UsersJob instantiateJob() {
                return new DeleteUsersJob();
            }
View Full Code Here

    public void updateUsers(@PathParam("realm") String realmName, @QueryParam("count") Integer count,
                            @QueryParam("batch") Integer batch, @QueryParam("start") Integer start, @QueryParam("prefix") String prefix,
                            @QueryParam("async") Boolean async, @QueryParam("roles") String roles) throws InterruptedException {
        final String[] rolesArray = roles != null ? roles.split(",") : new String[0];

        createAndRunJob(realmName, count, batch, start, prefix, async, "Update users", new UsersJobInitializer() {

            @Override
            public UsersJob instantiateJob() {
                return new UpdateUsersJob(rolesArray);
            }
View Full Code Here

TOP

Related Classes of org.keycloak.test.tools.jobs.UsersJobInitializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.