org.alfresco.bm.user
Class PrepareUsers
java.lang.Object
org.alfresco.bm.event.AbstractEventProcessor
org.alfresco.bm.user.PrepareUsers
- All Implemented Interfaces:
- org.alfresco.bm.event.EventProcessor, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware
public class PrepareUsers
- extends org.alfresco.bm.event.AbstractEventProcessor
Prepare a specific number of users for interaction with Alfresco.
This does not actually create users in Alfresco but merely creates
a population of users (email addresses, names, etc) that can be used
by subsequent operations.
Input
No input requirements
Data
A MongoDB collection containing existing users.
Actions
The MongoDB collection is examined to to determine how many users currently exist.
If the number of users is less than the required number, the user data collection
is topped up using the required distribution of the users/domain.
Output
EVENT_NAME_USERS_CREATED: No data
- Since:
- 1.0
- Author:
- Derek Hulley
| Fields inherited from class org.alfresco.bm.event.AbstractEventProcessor |
DEFAULT_WARN_DELAY, logger |
|
Constructor Summary |
PrepareUsers(org.springframework.data.mongodb.core.MongoTemplate mongo,
String userData,
long maxActiveUsers)
|
| Methods inherited from class org.alfresco.bm.event.AbstractEventProcessor |
getWarnDelay, register, setBeanName, setEventName, setEventNames, setRegistry, setWarnDelay |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_USERS_PER_DOMAIN
public static final long DEFAULT_USERS_PER_DOMAIN
- See Also:
- Constant Field Values
EVENT_NAME_USERS_CREATED
public static final String EVENT_NAME_USERS_CREATED
- See Also:
- Constant Field Values
PrepareUsers
public PrepareUsers(org.springframework.data.mongodb.core.MongoTemplate mongo,
String userData,
long maxActiveUsers)
- Parameters:
mongo - connection to MongoDBuserData - name of DB collection containing user detailsmaxActiveUsers - total number of users subscribed or invited
setUsersPerDomain
public void setUsersPerDomain(long usersPerDomain)
- Override the
default users per domain
setEventNameUsersCreated
public void setEventNameUsersCreated(String eventNameUsersCreated)
- Override the
default event name when users have been created.
processEvent
public org.alfresco.bm.event.EventResult processEvent(org.alfresco.bm.event.Event event)
throws Exception
- Throws:
Exception
Copyright © 2012. All Rights Reserved.