org.alfresco.bm.user
Class PrepareUsers
java.lang.Object
org.alfresco.bm.event.AbstractEventProcessor
org.alfresco.bm.user.PrepareUsers
- All Implemented Interfaces:
- EventProcessor, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware
public class PrepareUsers
- extends AbstractEventProcessor
Input
None.
Data
No data requirements.
Actions
Users data objects are created. This data is local only.
Output
EVENT_NAME_USERS_PREPARED: Marker indicating completion
- Since:
- 1.1
- Author:
- Derek Hulley
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EVENT_NAME_USERS_PREPARED
public static final String EVENT_NAME_USERS_PREPARED
- See Also:
- Constant Field Values
PrepareUsers
public PrepareUsers(String userNamePattern,
long numberOfUsers,
UserDataService userDataService)
- Parameters:
userNamePattern - pattern to use for user-name creation.
Should contain placeholder for the user-index,
eg: "testuser-{0}". @see MessageFormat.numberOfUsers - number of users to create in totaluserDataService - service for UserData operations
setEventNameUsersCreated
public void setEventNameUsersCreated(String eventNameUsersPrepared)
- Override the
default event name when users have been prepared.
processEvent
public EventResult processEvent(Event event)
throws Exception
- Description copied from interface:
EventProcessor
- Process an event.
NOTE: All errors are treated as terminal i.e. there will be no
follow-up events published. The event and result services are provided to allow
event processing to be aware of previous and future work. If the service is used
to modify queues, the results could be unexpected e.g. clearing the queue will not
always mean that no more events will be processed.
- Parameters:
event - the event (along with associated data)
- Returns:
- the result of the process (includes errors and next events)
- Throws:
Exception
Copyright © 2012. All Rights Reserved.