org.sakaiproject.component.legacy.authzGroup
Class BaseMember

java.lang.Object
  extended byorg.sakaiproject.component.legacy.authzGroup.BaseMember
All Implemented Interfaces:
Comparable, Member, Serializable

public class BaseMember
extends Object
implements Member

BaseMember is an implementation of the AuthzGroup API Member.

Author:
Sakai Software Development Team
See Also:
Serialized Form

Field Summary
protected  boolean active
           
protected  boolean provided
           
protected  Role role
           
protected  String userId
           
 
Constructor Summary
BaseMember(Role role, boolean active, boolean provided, String userId)
           
 
Method Summary
 int compareTo(Object obj)
          
 Role getRole()
          Access the member's Role.
 String getUserId()
          Access the user id of the member.
 boolean isActive()
          Check if the membership is active.
 boolean isProvided()
          Check if the membership is from the external provider.
 void setActive(boolean active)
          Set the active value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

role

protected Role role

provided

protected boolean provided

active

protected boolean active

userId

protected String userId
Constructor Detail

BaseMember

public BaseMember(Role role,
                  boolean active,
                  boolean provided,
                  String userId)
Method Detail

getRole

public Role getRole()
Access the member's Role.

Specified by:
getRole in interface Member
Returns:
The member's Role.

getUserId

public String getUserId()
Access the user id of the member.

Specified by:
getUserId in interface Member
Returns:
The user id of the member.

isProvided

public boolean isProvided()
Check if the membership is from the external provider.

Specified by:
isProvided in interface Member
Returns:
true if the membership is from the external provider, false if not.

isActive

public boolean isActive()
Check if the membership is active.

Specified by:
isActive in interface Member
Returns:
true if the membership is active, false if not.

setActive

public void setActive(boolean active)
Set the active value.

Specified by:
setActive in interface Member
Parameters:
active - The new active value.

compareTo

public int compareTo(Object obj)

Specified by:
compareTo in interface Comparable