1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.mobility.user.entity; |
17 | |
|
18 | |
import java.sql.Timestamp; |
19 | |
import java.util.List; |
20 | |
import java.util.Map; |
21 | |
|
22 | |
public interface User { |
23 | |
|
24 | |
String getViewCampus(); |
25 | |
void setViewCampus(String campus); |
26 | |
|
27 | |
boolean isPublicUser(); |
28 | |
|
29 | |
Long getPrincipalId(); |
30 | |
String getPrincipalName(); |
31 | |
String getEmail(); |
32 | |
public String getIpAddress(); |
33 | |
public void setIpAddress(String ipAddress); |
34 | |
void setFirstLogin(Timestamp firstLogin); |
35 | |
void setLastLogin(Timestamp firstLogin); |
36 | |
|
37 | |
void setPrincipalName(String userId); |
38 | |
void setEmail(String email); |
39 | |
|
40 | |
List<String> getGroups(); |
41 | |
List<String> getAffiliations(); |
42 | |
String getPrimaryCampus(); |
43 | |
|
44 | |
void setGroups(List<String> groups); |
45 | |
void setAffiliations(List<String> affiliations); |
46 | |
void setPrimaryCampus(String primaryCampus); |
47 | |
Map<String, String> getUserAttributes(); |
48 | |
void setUserAttributes(Map<String, String> userAttributes); |
49 | |
String getUserAttribute(String key); |
50 | |
void setUserAttribute(String key, String value); |
51 | |
void removeUserAttribute(String key); |
52 | |
|
53 | |
boolean isMember(String groupName); |
54 | |
boolean isStudent(); |
55 | |
boolean isFaculty(); |
56 | |
boolean isStaff(); |
57 | |
boolean isAlumnus(); |
58 | |
|
59 | |
UserCacheObject getFromCache(String key); |
60 | |
void removeFromCache(String key); |
61 | |
void putInCache(String key, Object item); |
62 | |
|
63 | |
} |