01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.taskadmin.context;
06:
07: import java.util.Set;
08: import java.util.Map;
09: import java.util.Locale;
10:
11: import javax.servlet.http.HttpServletRequest;
12:
13: import com.sun.portal.taskadmin.TaskAdminException;
14:
15: public interface UserTaskAdminContext {
16: public void init(HttpServletRequest req);
17:
18: public Set getBaseDNs();
19:
20: public Set getAssignableRoles();
21:
22: public Set getUserRoleDNs(String userDN);
23:
24: public String DNToName(String dn);
25:
26: public Locale getLocale();
27:
28: public boolean isValidDN(String dn);
29:
30: public boolean setUserStatus(String userDN, boolean activate);
31:
32: public boolean resetPassword(String userDN, String newpasswd);
33:
34: public boolean assignRole(String userDN, String roleDN);
35:
36: public boolean removeRole(String userDN, String roleDN);
37:
38: public void createRole(String rolename, String description);
39:
40: public void createAdministrativeRole(String rolename,
41: String description, String managedRoleDN,
42: boolean contentAdmin);
43:
44: public Map searchUsers(String wildcard);
45:
46: public void deleteUsers(Set userDNs);
47:
48: public void createUser(String uid, String firstname,
49: String lastname, String fullname, String password);
50:
51: }
|