public class AddMember
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AccessLevel |
accessLevel |
protected MemberSelector |
member |
Constructor and Description |
---|
AddMember(MemberSelector member)
The member and type of access the member should have when added to a
shared folder.
|
AddMember(MemberSelector member,
AccessLevel accessLevel)
The member and type of access the member should have when added to a
shared folder.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
AccessLevel |
getAccessLevel()
The access level to grant
getMember() to the shared
folder. |
MemberSelector |
getMember()
The member to add to the shared folder.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final MemberSelector member
protected final AccessLevel accessLevel
public AddMember(MemberSelector member, AccessLevel accessLevel)
member
- The member to add to the shared folder. Must not be null
.accessLevel
- The access level to grant getMember()
to the shared folder. AccessLevel.OWNER
is disallowed. Must
not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public AddMember(MemberSelector member)
The default values for unset fields will be used.
member
- The member to add to the shared folder. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public MemberSelector getMember()
null
.public AccessLevel getAccessLevel()
getMember()
to the shared
folder. AccessLevel.OWNER
is disallowed.null
if not present. Defaults to
AccessLevel.VIEWER.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.