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.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns The ID of the group that this is a membership of.
    Returns The name of the group that this is a membership of.
    Returns The URL for the group that this is a membership of.
    int
    Returns The ID of this membership. Distinct from both the user and the group.
    int
    Returns The ID of the user that this is a membership of.
    Returns The name of the user that this is a membership of.
    Returns The URL for the user that this is a membership of.
    void
    setGroupId(int groupId)
    Sets the ID of the group that this is a membership of.
    void
    setGroupName(String groupName)
    Sets the name of the group that this is a membership of.
    void
    setGroupUrl(URI groupUrl)
    Sets the URL for the group that this is a membership of.
    void
    setId(int id)
    Sets the ID of this membership.
    void
    setUserId(int userId)
    Sets the ID of the user that this is a membership of.
    void
    setUserName(String userName)
    Set the name of the user that this is a membership of.
    void
    setUserUrl(URI userUrl)
    Sets the URL for the user that this is a membership of.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.
      Returns:
      The ID of this membership. Distinct from both the user and the group
    • setId

      public void setId(int id)
      Sets the ID of this membership.
      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.
      Returns:
      The ID of the group that this is a membership of
    • setGroupId

      public void setGroupId(int groupId)
      Sets the ID of the group that this is a membership of.
      Parameters:
      groupId - The ID of the group that this is a membership of.
    • getGroupName

      public String getGroupName()
      Returns The name of the group that this is a membership of.
      Returns:
      The name of the group that this is a membership of
    • setGroupName

      public void setGroupName(String groupName)
      Sets the name of the group that this is a membership of.
      Parameters:
      groupName - The name of the group that this is a membership of.
    • getGroupUrl

      public URI getGroupUrl()
      Returns The URL for the group that this is a membership of.
      Returns:
      The URL for the group that this is a membership of
    • setGroupUrl

      public void setGroupUrl(URI groupUrl)
      Sets the URL for the group that this is a membership of.
      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.
      Returns:
      The ID of the user that this is a membership of
    • setUserId

      public void setUserId(int userId)
      Sets the ID of the user that this is a membership of.
      Parameters:
      userId - The ID of the user that this is a membership of.
    • getUserName

      public String getUserName()
      Returns The name of the user that this is a membership of.
      Returns:
      The name of the user that this is a membership of
    • setUserName

      public void setUserName(String userName)
      Set the name of the user that this is a membership of.
      Parameters:
      userName - The name of the user that this is a membership of.
    • getUserUrl

      public URI getUserUrl()
      Returns The URL for the user that this is a membership of.
      Returns:
      The URL for the user that this is a membership of
    • setUserUrl

      public void setUserUrl(URI userUrl)
      Sets the URL for the user that this is a membership of.
      Parameters:
      userUrl - The URL for the user that this is a membership of.