@ReflectIgnoreClassFields(value="role") public class EntityMember extends Object implements org.sakaiproject.authz.api.Member
| Modifier and Type | Class and Description |
|---|---|
static class |
EntityMember.MemberDisplayName |
static class |
EntityMember.MemberEmail |
static class |
EntityMember.MemberLastLogin |
static class |
EntityMember.MemberSortName |
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
EntityMember() |
EntityMember(org.sakaiproject.authz.api.Member member,
String locationReference,
EntityUser user) |
EntityMember(String userId,
String locationReference,
String memberRole,
boolean active,
EntityUser user) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object obj) |
String |
getId() |
Date |
getLastLoginTime() |
String |
getLocationReference() |
String |
getMemberRole() |
org.sakaiproject.authz.api.Role |
getRole() |
String |
getUserDisplayId() |
String |
getUserDisplayName() |
String |
getUserEid() |
String |
getUserEmail() |
String |
getUserId() |
String |
getUserSortName() |
boolean |
isActive() |
boolean |
isProvided() |
static String |
makeId(String userId,
String locationReference)
Constructs a membership id from the user and member references
|
static String[] |
parseId(String membershipId)
Tries to parse a membershipId into three parts:
1) the userId
2) the location reference
3) the location entity prefix
|
void |
setActive(boolean active) |
void |
setLocationReference(String locationReference) |
void |
setMemberRole(String memberRole) |
void |
setProvided(boolean provided) |
void |
setUserId(String userId) |
public static final long serialVersionUID
public EntityMember()
public EntityMember(String userId, String locationReference, String memberRole, boolean active, EntityUser user)
userId - a unique user id (not the username), e.g. 59307d75-7863-4560-9abc-6d1c4e62a63e or 'admin'locationReference - the reference to the location (e.g. site or group) this is a membership in (e.g. '/site/mysite', '/site/mysite/group/mygroup')memberRole - the id of the membership role (e.g. maintain, access, etc.)active - true if this membership should be active, false otherwiseuser - the user object for this membershippublic EntityMember(org.sakaiproject.authz.api.Member member,
String locationReference,
EntityUser user)
member - a legacy Member objectlocationReference - the reference to the location (e.g. site or group) this is a membership in (e.g. '/site/mysite', '/site/mysite/group/mygroup')user - the user object for this membershippublic static String makeId(String userId, String locationReference)
userId - a unique user id (not the username), e.g. 59307d75-7863-4560-9abc-6d1c4e62a63e or 'admin'locationReference - the reference to the thing this is a membership in, site or group (e.g. '/site/mysite', '/site/mysite/group/mygroup')public static String[] parseId(String membershipId)
membershipId - an id structured like 'userId::site:siteId'public String getId()
public String getUserId()
getUserId in interface org.sakaiproject.authz.api.Memberpublic void setUserId(String userId)
public String getLocationReference()
public void setLocationReference(String locationReference)
public String getMemberRole()
public void setMemberRole(String memberRole)
public String getUserEid()
getUserEid in interface org.sakaiproject.authz.api.Memberpublic boolean isProvided()
isProvided in interface org.sakaiproject.authz.api.Memberpublic void setProvided(boolean provided)
public boolean isActive()
isActive in interface org.sakaiproject.authz.api.Memberpublic String getUserDisplayName()
public String getUserSortName()
public String getUserEmail()
public Date getLastLoginTime()
public org.sakaiproject.authz.api.Role getRole()
getRole in interface org.sakaiproject.authz.api.Memberpublic String getUserDisplayId()
getUserDisplayId in interface org.sakaiproject.authz.api.Memberpublic void setActive(boolean active)
setActive in interface org.sakaiproject.authz.api.Memberpublic int compareTo(Object obj)
compareTo in interface ComparableCopyright © 2007-2015 Sakai Project. All Rights Reserved.