Class AuthenticatedPersonDataGenerator
java.lang.Object
org.alfresco.repo.audit.generator.AbstractDataGenerator
org.alfresco.repo.audit.generator.AuthenticatedPersonDataGenerator
- All Implemented Interfaces:
DataGenerator,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
Gives back the full name (person details) of the currently-authenticated user.
- Since:
- 3.2
- Author:
- Derek Hulley
-
Field Summary
Fields inherited from class org.alfresco.repo.audit.generator.AbstractDataGenerator
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters the instancegetData()Get the data generated by the instance.voidsetNodeService(NodeService nodeService) Set the service to retrieve the user's full namevoidsetPersonService(PersonService personService) Set the service used to discover the user's person nodeMethods inherited from class org.alfresco.repo.audit.generator.AbstractDataGenerator
equals, setBeanName, setRegistry
-
Constructor Details
-
AuthenticatedPersonDataGenerator
public AuthenticatedPersonDataGenerator()
-
-
Method Details
-
setPersonService
Set the service used to discover the user's person node -
setNodeService
Set the service to retrieve the user's full name -
afterPropertiesSet
Description copied from class:AbstractDataGeneratorRegisters the instance- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classAbstractDataGenerator- Throws:
Exception
-
getData
Description copied from interface:DataGeneratorGet 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
-