|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.alfresco.bm.user.UserDataService
public class UserDataService
Service providing access to UserData storage. All UserData returned from and persisted
with this service will be testrun-specific. The testrun-identifier is set in the constructor.
| Constructor Summary | |
|---|---|
UserDataService(org.springframework.data.mongodb.core.MongoTemplate mongo,
String collectionName)
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
long |
countCloudAwareUsers()
Count the number of cloud-enabled users, regardless of signup state |
long |
countUsers()
|
long |
countUsers(boolean created)
|
void |
createNewUser(UserData data)
Creates a new user in mongo. |
UserData |
findUserByEmail(String email)
Find a user by email address |
UserData |
findUserByUsername(String username)
Find a user by username |
List<UserData> |
getCreatedUsers(int startIndex,
int count)
Get a list of usernames that are created in alfresco with paging |
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. |
void |
setUserCloudSignUp(String username,
CloudSignUpData cloudSignUp)
Set the registration data for a user |
boolean |
setUserCreated(String username,
boolean created)
Change the 'created' state of the user i.e. |
boolean |
setUserNodeId(String username,
String nodeId)
Store a node ID associated with the username |
boolean |
setUserPassword(String username,
String password)
Update a user's password |
boolean |
setUserTicket(String username,
String ticket)
Store an authentication token (ticket) against a username |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserDataService(org.springframework.data.mongodb.core.MongoTemplate mongo,
String collectionName)
| Method Detail |
|---|
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void createNewUser(UserData data)
data - user to create
public boolean setUserTicket(String username,
String ticket)
public boolean setUserPassword(String username,
String password)
public boolean setUserNodeId(String username,
String nodeId)
public boolean setUserCreated(String username,
boolean created)
public long countUsers(boolean created)
created - true to only count users present in Alfrescopublic long countUsers()
public UserData findUserByUsername(String username)
UserData found otherwise null
public UserData findUserByEmail(String email)
UserData found otherwise null
public List<UserData> getUsersPendingCreation(int startIndex,
int count)
startIndex - index to start getting users fromcount - number of users to fetch
public List<UserData> getCreatedUsers(int startIndex,
int count)
startIndex - index to start getting users fromcount - number of users to fetch
public void setUserCloudSignUp(String username,
CloudSignUpData cloudSignUp)
username - the usernamecloudSignUp - the new registration data to setpublic long countCloudAwareUsers()
public List<UserData> getUsersWithoutCloudSignUp(int startIndex,
int count)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||