@Shareable public class UserListUserDAO extends java.lang.Object implements UserDAO, java.io.Serializable
| Constructor and Description |
|---|
UserListUserDAO(java.util.Collection<java.lang.Long> users) |
| Modifier and Type | Method and Description |
|---|---|
static UserListUserDAO |
fromFile(java.io.File file)
Read a user list DAO from a file.
|
LongSet |
getUserIds()
Get all known user IDs.
|
public UserListUserDAO(java.util.Collection<java.lang.Long> users)
public LongSet getUserIds()
UserDAOgetUserIds in interface UserDAOpublic static UserListUserDAO fromFile(java.io.File file) throws java.io.IOException
file - A file of user IDs, one per line.java.io.IOException - if there is an error reading the list of users.