Class AuthenticatedUserDataGenerator

  • All Implemented Interfaces:
    DataGenerator, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

    public class AuthenticatedUserDataGenerator
    extends AbstractDataGenerator
    Gives back the currently-authenticated user.
    Since:
    3.2
    Author:
    Derek Hulley
    • Constructor Detail

      • AuthenticatedUserDataGenerator

        public AuthenticatedUserDataGenerator()
    • Method Detail

      • getData

        public Serializable getData()
                             throws Throwable
        Description copied from interface: DataGenerator
        Get the data generated by the instance.
        Returns:
        Returns the currently-authenticated user
        Throws:
        Throwable - All exceptions are handled by the framework