| Modifier and Type | Class and Description |
|---|---|
static class |
ShareFolderError.Tag
Discriminating tag type for
ShareFolderError. |
| Modifier and Type | Field and Description |
|---|---|
static ShareFolderError |
DISALLOWED_SHARED_LINK_POLICY
The current user's account is not allowed to select the specified the
sharedLinkPolicy argument to DbxUserSharingRequests.shareFolder(String). |
static ShareFolderError |
EMAIL_UNVERIFIED
The current user's e-mail address is unverified.
|
static ShareFolderError |
NO_PERMISSION
The current user does not have permission to perform this action.
|
static ShareFolderError |
OTHER |
static ShareFolderError |
TEAM_POLICY_DISALLOWS_MEMBER_POLICY
Team policy is more restrictive than the
memberPolicy argument to
DbxUserSharingRequests.shareFolder(String). |
| Modifier and Type | Method and Description |
|---|---|
static ShareFolderError |
badPath(SharePathError value)
Returns an instance of
ShareFolderError that has its tag set to
ShareFolderError.Tag.BAD_PATH. |
boolean |
equals(Object obj) |
SharePathError |
getBadPathValue()
the
path argument to DbxUserSharingRequests.shareFolder(String) is invalid. |
int |
hashCode() |
boolean |
isBadPath()
|
boolean |
isDisallowedSharedLinkPolicy()
Returns
true if this instance has the tag ShareFolderError.Tag.DISALLOWED_SHARED_LINK_POLICY, false otherwise. |
boolean |
isEmailUnverified()
|
boolean |
isNoPermission()
|
boolean |
isOther()
|
boolean |
isTeamPolicyDisallowsMemberPolicy()
Returns
true if this instance has the tag ShareFolderError.Tag.TEAM_POLICY_DISALLOWS_MEMBER_POLICY, false otherwise. |
ShareFolderError.Tag |
tag()
Returns the tag for this instance.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
public static final ShareFolderError EMAIL_UNVERIFIED
public static final ShareFolderError TEAM_POLICY_DISALLOWS_MEMBER_POLICY
memberPolicy argument to
DbxUserSharingRequests.shareFolder(String).public static final ShareFolderError DISALLOWED_SHARED_LINK_POLICY
sharedLinkPolicy argument to DbxUserSharingRequests.shareFolder(String).public static final ShareFolderError OTHER
public static final ShareFolderError NO_PERMISSION
public ShareFolderError.Tag tag()
This class is a tagged union. Tagged unions instances are always
associated to a specific tag. This means only one of the isXyz()
methods will return true. Callers are recommended to use the tag
value in a switch statement to properly handle the different
values for this ShareFolderError.
public boolean isEmailUnverified()
true if this instance is tagged as ShareFolderError.Tag.EMAIL_UNVERIFIED, false otherwise.public boolean isBadPath()
true if this instance is tagged as ShareFolderError.Tag.BAD_PATH,
false otherwise.public static ShareFolderError badPath(SharePathError value)
ShareFolderError that has its tag set to
ShareFolderError.Tag.BAD_PATH.
the path argument to DbxUserSharingRequests.shareFolder(String) is invalid.
value - value to assign to this instance.ShareFolderError with its tag set to ShareFolderError.Tag.BAD_PATH.IllegalArgumentException - if value is null.public SharePathError getBadPathValue()
path argument to DbxUserSharingRequests.shareFolder(String) is invalid.
This instance must be tagged as ShareFolderError.Tag.BAD_PATH.
badPath(com.dropbox.core.v2.sharing.SharePathError) value associated with this
instance if isBadPath() is true.IllegalStateException - If isBadPath() is false.public boolean isTeamPolicyDisallowsMemberPolicy()
true if this instance has the tag ShareFolderError.Tag.TEAM_POLICY_DISALLOWS_MEMBER_POLICY, false otherwise.true if this instance is tagged as ShareFolderError.Tag.TEAM_POLICY_DISALLOWS_MEMBER_POLICY, false otherwise.public boolean isDisallowedSharedLinkPolicy()
true if this instance has the tag ShareFolderError.Tag.DISALLOWED_SHARED_LINK_POLICY, false otherwise.true if this instance is tagged as ShareFolderError.Tag.DISALLOWED_SHARED_LINK_POLICY, false otherwise.public boolean isOther()
true if this instance is tagged as ShareFolderError.Tag.OTHER,
false otherwise.public boolean isNoPermission()
true if this instance is tagged as ShareFolderError.Tag.NO_PERMISSION, false otherwise.public String toStringMultiline()
The returned String may contain newlines.