Methods Summary |
---|
public void | addMembership(Group membership)
if (membership == null) {
throw new IllegalArgumentException("Membership to add cannot be null");
}
this.memberships.add(membership);
membership.getMembers().add(this);
|
public java.lang.Long | getId()
return id;
|
public java.util.Set | getMemberships()
return memberships;
|
public java.lang.String | getUsername()
return username;
|
public void | setId(java.lang.Long id)
this.id = id;
|
public void | setMemberships(java.util.Set memberships)
this.memberships = memberships;
|
public void | setUsername(java.lang.String username)
this.username = username;
|