org.alfresco.repo.audit.generator
Class AuthenticatedPersonDataGenerator

java.lang.Object
  extended by org.alfresco.repo.audit.generator.AbstractDataGenerator
      extended by org.alfresco.repo.audit.generator.AuthenticatedPersonDataGenerator
All Implemented Interfaces:
DataGenerator, 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

Field Summary
 
Fields inherited from class org.alfresco.repo.audit.generator.AbstractDataGenerator
logger
 
Constructor Summary
AuthenticatedPersonDataGenerator()
           
 
Method Summary
 void afterPropertiesSet()
          Registers the instance
 java.io.Serializable getData()
          Get the data generated by the instance.
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
          Set the service to retrieve the user's full name
 void setPersonService(PersonService personService)
          Set the service used to discover the user's person node
 
Methods inherited from class org.alfresco.repo.audit.generator.AbstractDataGenerator
equals, setBeanName, setRegistry
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the service to retrieve the user's full name


afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Description copied from class: AbstractDataGenerator
Registers the instance

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class AbstractDataGenerator
Throws:
java.lang.Exception

getData

public java.io.Serializable getData()
                             throws java.lang.Throwable
Description copied from interface: DataGenerator
Get the data generated by the instance.

Returns:
Returns the full name of the currently-authenticated user
Throws:
java.lang.Throwable - All exceptions are handled by the framework


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.