All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.redhat.lightblue.migrator.features.TogglzRandomUserProvider Maven / Gradle / Ivy

There is a newer version: 2.56.1
Show newest version
package com.redhat.lightblue.migrator.features;

import org.togglz.core.user.FeatureUser;
import org.togglz.core.user.SimpleFeatureUser;
import org.togglz.core.user.UserProvider;

/**
 * Call {@link TogglzRandomUsername#init()} to generate new random username before
 * this provider is used. {@link DAOFacadeBase} apis already handle that.
 *
 * @author mpatercz
 *
 */
public class TogglzRandomUserProvider implements UserProvider {

    @Override
    public FeatureUser getCurrentUser() {
        return new SimpleFeatureUser(TogglzRandomUsername.get(), false);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy