public class MemberAccess extends Object
Modifier and Type | Field and Description |
---|---|
protected GroupAccessType |
accessType |
protected UserSelectorArg |
user |
Constructor and Description |
---|
MemberAccess(UserSelectorArg user,
GroupAccessType accessType)
Specify access type a member should have when joined to a group.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
GroupAccessType |
getAccessType()
Access type.
|
UserSelectorArg |
getUser()
Identity of a user.
|
int |
hashCode() |
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final UserSelectorArg user
protected final GroupAccessType accessType
public MemberAccess(UserSelectorArg user, GroupAccessType accessType)
user
- Identity of a user. Must not be null
.accessType
- Access type. Must not be null
.IllegalArgumentException
- If any argument does not meet its
preconditions.public UserSelectorArg getUser()
null
.public GroupAccessType getAccessType()
null
.public String toStringMultiline()
The returned String may contain newlines.