public class UserCache
extends java.lang.Object
implements com.serotonin.util.ILifecycle
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<User> |
activeUsers |
private org.apache.commons.logging.Log |
LOG |
private java.util.List<User> |
permissionedUsers |
private UsersProfileDao |
profileDao |
private UserDao |
userDao |
| Constructor and Description |
|---|
UserCache() |
| Modifier and Type | Method and Description |
|---|---|
private java.util.List<User> |
filterActiveUsers(java.util.List<User> users) |
java.util.List<User> |
getActiveUsers() |
java.util.List<User> |
getPermissionedUsers() |
private java.util.List<User> |
getPermissionedUsers(java.util.List<User> users) |
User |
getUpdatedPermissions(User user) |
User |
getUser(int userId) |
User |
getUser(java.lang.String username) |
UserDao |
getUserDao() |
void |
initialize() |
void |
joinTermination() |
void |
saveProfile(UsersProfileVO profile) |
void |
setUserDao(UserDao userDao) |
void |
terminate() |
void |
updateUser(User user) |
private final org.apache.commons.logging.Log LOG
private UserDao userDao
private UsersProfileDao profileDao
private java.util.List<User> permissionedUsers
private java.util.List<User> activeUsers
public java.util.List<User> getActiveUsers()
public java.util.List<User> getPermissionedUsers()
public User getUser(int userId)
public User getUser(java.lang.String username)
public void updateUser(User user)
public void saveProfile(UsersProfileVO profile)
public UserDao getUserDao()
public void setUserDao(UserDao userDao)
public void initialize()
initialize in interface com.serotonin.util.ILifecyclepublic void terminate()
throws com.serotonin.util.LifecycleException
terminate in interface com.serotonin.util.ILifecyclecom.serotonin.util.LifecycleExceptionpublic void joinTermination()
joinTermination in interface com.serotonin.util.ILifecycle