Class MemberRecord
java.lang.Object
uk.ac.manchester.spinnaker.alloc.model.MemberRecord
public class MemberRecord extends Object
Description of the membership of one user in one group.
- Author:
- Donal Fellows
- See Also:
UserRecord
,GroupRecord
-
Constructor Summary
Constructors Constructor Description MemberRecord()
-
Method Summary
Modifier and Type Method Description int
getGroupId()
String
getGroupName()
URI
getGroupUrl()
int
getId()
int
getUserId()
String
getUserName()
URI
getUserUrl()
void
setGroupId(int groupId)
void
setGroupName(String groupName)
void
setGroupUrl(URI groupUrl)
void
setId(int id)
void
setUserId(int userId)
void
setUserName(String userName)
void
setUserUrl(URI userUrl)
-
Constructor Details
-
MemberRecord
public MemberRecord()
-
-
Method Details
-
getId
public int getId()- Returns:
- The ID of this membership. Distinct from both the user and the group.
-
setId
public void setId(int id)- Parameters:
id
- The ID of this membership. Distinct from both the user and the group.
-
getGroupId
public int getGroupId()- Returns:
- The ID of the group that this is a membership of.
-
setGroupId
public void setGroupId(int groupId)- Parameters:
groupId
- The ID of the group that this is a membership of.
-
getGroupName
- Returns:
- The name of the group that this is a membership of.
-
setGroupName
- Parameters:
groupName
- The name of the group that this is a membership of.
-
getGroupUrl
- Returns:
- The URL for the group that this is a membership of.
-
setGroupUrl
- Parameters:
groupUrl
- The URL for the group that this is a membership of.
-
getUserId
public int getUserId()- Returns:
- The ID of the user that this is a membership of.
-
setUserId
public void setUserId(int userId)- Parameters:
userId
- The ID of the user that this is a membership of.
-
getUserName
- Returns:
- The name of the user that this is a membership of.
-
setUserName
- Parameters:
userName
- The name of the user that this is a membership of.
-
getUserUrl
- Returns:
- The URL for the user that this is a membership of.
-
setUserUrl
- Parameters:
userUrl
- The URL for the user that this is a membership of.
-