|
||||||||||
| 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 |
checkIndexes()
Ensure that the MongoDB collection has the required indexes associated with this user bean. |
long |
countCreatedUsers()
Get a count of usernames that are created in alfresco |
long |
countUsers()
|
long |
countUsersPendingCreation()
Get a count of usernames that are NOT created in alfresco |
void |
createNewUser(UserData data)
Creates a new user in mongo. |
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> |
getUsersPendingCreation(int startIndex,
int count)
Get a list of usernames that are NOT created in alfresco with paging |
void |
markUserAsCreated(String userName)
Mark the given user as "created in alfresco" |
void |
setTicketForUser(String userName,
String ticket)
Set the ticket value for the user with the given username. |
void |
updateUserNodeId(UserData user,
String nodeId)
Update the alfresco node-id for the given user in mongo and in given object. |
| 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 checkIndexes()
mongo - connection to MongoDBcollectionName - name of DB collection containing datapublic UserData findUserByUserName(String userName)
UserData found. Null, if user doesn't exist.
public void setTicketForUser(String userName,
String ticket)
public void markUserAsCreated(String userName)
userName - the name of the user that is created.public long countUsers()
public long countUsersPendingCreation()
public List<UserData> getUsersPendingCreation(int startIndex,
int count)
startIndex - index to start getting users fromcount - number of users to fetch
public long countCreatedUsers()
public List<UserData> getCreatedUsers(int startIndex,
int count)
startIndex - index to start getting users fromcount - number of users to fetch
public void createNewUser(UserData data)
data - user to create
public void updateUserNodeId(UserData user,
String nodeId)
user - the user that is affected.nodeId - node-id to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||