Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package ca.nrc.cadc.ac.admin;
import java.security.AccessControlException;
import java.security.Principal;
import java.util.Collection;
import org.apache.log4j.Logger;
import ca.nrc.cadc.ac.User;
import ca.nrc.cadc.ac.server.UserPersistence;
import ca.nrc.cadc.net.TransientException;
/**
* This class provides a list of all active users in the LDAP server.
* The users' nsaccountlocked attribute is not set. Active users are users
* in the main tree.
* @author yeunga
*
*/
public class ListActiveUsers extends AbstractListUsers
{
private static final Logger log = Logger.getLogger(ListActiveUsers.class);
/**
* Constructor
*/
public ListActiveUsers()
{
}
protected Collection<User<Principal>> getUsers()
throws AccessControlException, TransientException
{
final UserPersistence<Principal> userPersistence = getUserPersistence();
return userPersistence.getUsers();
}
}