public interface UserDataService
UserData storage. All UserData returned from and persisted
with this service will be testrun-specific. The testrun-identifier is set in the constructor.| Modifier and Type | Interface and Description |
|---|---|
static interface |
UserDataService.UserCallback |
| Modifier and Type | Method and Description |
|---|---|
long |
countCloudAwareUsers()
Count the number of cloud-enabled users, regardless of signup state
|
long |
countUsers() |
long |
countUsers(boolean created) |
void |
createNewUser(UserData data) |
UserData |
findUserByEmail(String email)
Find a user by email address
|
UserData |
findUserByUsername(String username)
Find a user by username
|
UserData |
findUserByUserName(String userName)
Find a user by it's username.
|
List<UserData> |
getCreatedUsers(int startIndex,
int count)
Get a list of usernames that are created in alfresco with paging
|
List<UserData> |
getUsersInDomain(String domain,
int startIndex,
int count)
Return a maximum of "max" users in the network with id "networkId".
|
List<UserData> |
getUsersPendingCreation(int startIndex,
int count)
Get a list of usernames that are NOT created in alfresco with paging
|
List<UserData> |
getUsersWithoutCloudSignUp(int startIndex,
int count)
Retrieves a selection of users that have no cloud signup details.
|
Iterator<String> |
networksIterator()
An iterator over networks in the users collection.
|
UserData |
randomUser()
Select a random, pre-created user.
|
void |
setUserCloudSignUp(String username,
CloudSignUpData cloudSignUp)
Set the registration data for a user
|
void |
setUserCreated(String username,
boolean created)
Change the 'created' state of the user i.e.
|
void |
setUserNodeId(String username,
String nodeId)
Store a node ID associated with the username
|
void |
setUserPassword(String username,
String password)
Update a user's password
|
void |
setUserTicket(String username,
String ticket)
Store an authentication token (ticket) against a username
|
void createNewUser(UserData data)
void setUserTicket(String username, String ticket)
void setUserNodeId(String username, String nodeId)
void setUserCreated(String username, boolean created)
long countUsers(boolean created)
created - true to only count users present in Alfrescolong countUsers()
UserData findUserByUsername(String username)
UserData found otherwise null.UserData findUserByEmail(String email)
UserData found otherwise null.List<UserData> getUsersPendingCreation(int startIndex, int count)
startIndex - index to start getting users fromcount - number of users to fetchList<UserData> getCreatedUsers(int startIndex, int count)
startIndex - index to start getting users fromcount - number of users to fetchvoid setUserCloudSignUp(String username, CloudSignUpData cloudSignUp)
username - the usernamecloudSignUp - the new registration data to setlong countCloudAwareUsers()
List<UserData> getUsersWithoutCloudSignUp(int startIndex, int count)
List<UserData> getUsersInDomain(String domain, int startIndex, int count)
domain - the user domainstartIndex - the start index for pagingcount - the number of users to retrieveIterator<String> networksIterator()
UserData findUserByUserName(String userName)
UserData found. Null, if user doesn't exist.UserData randomUser()
Copyright © 2012. All Rights Reserved.