public class SharedContentChangeMemberRoleDetails
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AccessLevel |
newAccessLevel |
protected AccessLevel |
previousAccessLevel |
Constructor and Description |
---|
SharedContentChangeMemberRoleDetails(AccessLevel newAccessLevel)
Changed access type of shared file/folder member.
|
SharedContentChangeMemberRoleDetails(AccessLevel newAccessLevel,
AccessLevel previousAccessLevel)
Changed access type of shared file/folder member.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
AccessLevel |
getNewAccessLevel()
New access level.
|
AccessLevel |
getPreviousAccessLevel()
Previous access level.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final AccessLevel previousAccessLevel
protected final AccessLevel newAccessLevel
public SharedContentChangeMemberRoleDetails(AccessLevel newAccessLevel, AccessLevel previousAccessLevel)
newAccessLevel
- New access level. Must not be null
.previousAccessLevel
- Previous access level. Might be missing due
to historical data gap.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public SharedContentChangeMemberRoleDetails(AccessLevel newAccessLevel)
The default values for unset fields will be used.
newAccessLevel
- New access level. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public AccessLevel getNewAccessLevel()
null
.public AccessLevel getPreviousAccessLevel()
null
if not present.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.