Class AuthenticatedPersonDataGenerator

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

    public class AuthenticatedPersonDataGenerator
    extends AbstractDataGenerator
    Gives back the full name (person details) of the currently-authenticated user.
    Since:
    3.2
    Author:
    Derek Hulley
    • Constructor Detail

      • AuthenticatedPersonDataGenerator

        public AuthenticatedPersonDataGenerator()
    • Method Detail

      • setPersonService

        public void setPersonService​(PersonService personService)
        Set the service used to discover the user's person node
      • setNodeService

        public void setNodeService​(NodeService nodeService)
        Set the service to retrieve the user's full name
      • getData

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