|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbpm.userprofile.UserProfileManager
@Scope(value=APPLICATION) @Startup @Name(value="userProfileManager") public class UserProfileManager
userProfileManager retrieves and update user profile using a pluggable UserProfileRepository.
UserProfileRepository is normally implemented by application users based on the persistent mechanism
(for example property file based, RMDB based, LDAP based etc) as well as the data schema that
is used by users' application.
Following snippet shows how to configure UserProfileRepository in components.xml.
Constructor Summary | |
---|---|
UserProfileManager()
|
Method Summary | |
---|---|
List<Group> |
getFlattenedGroupsForUser(String userId)
Return a list of all the direct groups and all the sub groups that the user belongs to. |
String[] |
getGroupIds()
Return a list of Ids of all registered groups instead of fully populated Group classes. |
List<Group> |
getGroups()
Return all registered users |
List<Group> |
getGroupsForUser(String userId)
Return a list of all the groups that the user belongs to. |
User |
getUser()
Return current user. |
User |
getUser(String userId)
Return the user according to the userId. |
String[] |
getUserIds()
Return a list of Ids of all registered users instead of fully populated User classes. |
UserProfileRepository |
getUserProfileRepository()
|
List<User> |
getUsers()
Return all registered users |
void |
setUserProfileRepository(UserProfileRepository userProfileRepository)
|
void |
updateUser(User user)
Update user info |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserProfileManager()
Method Detail |
---|
public User getUser()
public User getUser(String userId)
public void updateUser(User user)
public List<User> getUsers()
public String[] getUserIds()
public List<Group> getGroups()
public String[] getGroupIds()
public List<Group> getGroupsForUser(String userId)
userId
- Id of the user.
public List<Group> getFlattenedGroupsForUser(String userId)
userId
- Id of the user.
public UserProfileRepository getUserProfileRepository()
public void setUserProfileRepository(UserProfileRepository userProfileRepository)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |