org.sakaiproject.coursemanagement.impl
Class MembershipCmImpl

java.lang.Object
  extended by org.sakaiproject.coursemanagement.impl.AbstractPersistentCourseManagementObjectCmImpl
      extended by org.sakaiproject.coursemanagement.impl.MembershipCmImpl
All Implemented Interfaces:
Serializable, Membership

public class MembershipCmImpl
extends AbstractPersistentCourseManagementObjectCmImpl
implements Membership, Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.sakaiproject.coursemanagement.impl.AbstractPersistentCourseManagementObjectCmImpl
AUTHORITY, createdBy, createdDate, key, lastModifiedBy, lastModifiedDate, version
 
Constructor Summary
MembershipCmImpl()
           
MembershipCmImpl(String userId, String role, AbstractMembershipContainerCmImpl memberContainer, String status)
           
 
Method Summary
 AbstractMembershipContainerCmImpl getMemberContainer()
           
 String getRole()
          The user's role
 String getStatus()
          Gets the status of this Membership.
 String getUserId()
          The user's enterprise id
 void setMemberContainer(AbstractMembershipContainerCmImpl memberContainer)
           
 void setRole(String role)
           
 void setStatus(String status)
           
 void setUserId(String userId)
           
 
Methods inherited from class org.sakaiproject.coursemanagement.impl.AbstractPersistentCourseManagementObjectCmImpl
getAuthority, getCreatedBy, getCreatedDate, getKey, getLastModifiedBy, getLastModifiedDate, getVersion, setAuthority, setCreatedBy, setCreatedDate, setKey, setLastModifiedBy, setLastModifiedDate, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sakaiproject.coursemanagement.api.Membership
getAuthority
 

Constructor Detail

MembershipCmImpl

public MembershipCmImpl()

MembershipCmImpl

public MembershipCmImpl(String userId,
                        String role,
                        AbstractMembershipContainerCmImpl memberContainer,
                        String status)
Method Detail

getRole

public String getRole()
Description copied from interface: Membership
The user's role

Specified by:
getRole in interface Membership
Returns:

setRole

public void setRole(String role)

getUserId

public String getUserId()
Description copied from interface: Membership
The user's enterprise id

Specified by:
getUserId in interface Membership
Returns:

setUserId

public void setUserId(String userId)

getMemberContainer

public AbstractMembershipContainerCmImpl getMemberContainer()

setMemberContainer

public void setMemberContainer(AbstractMembershipContainerCmImpl memberContainer)

getStatus

public String getStatus()
Description copied from interface: Membership
Gets the status of this Membership. This might be active, inactive for example.

Specified by:
getStatus in interface Membership
Returns:

setStatus

public void setStatus(String status)
Specified by:
setStatus in interface Membership


Copyright © 2011 Sakai Project. All Rights Reserved.