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