Package com.dropbox.core.v2.sharing
Enum PermissionDeniedReason.Tag
- java.lang.Object
-
- java.lang.Enum<PermissionDeniedReason.Tag>
-
- com.dropbox.core.v2.sharing.PermissionDeniedReason.Tag
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PermissionDeniedReason.Tag>
- Enclosing class:
- PermissionDeniedReason
public static enum PermissionDeniedReason.Tag extends java.lang.Enum<PermissionDeniedReason.Tag>
Discriminating tag type forPermissionDeniedReason
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FOLDER_IS_INSIDE_SHARED_FOLDER
Folder is inside of another shared folder.FOLDER_IS_LIMITED_TEAM_FOLDER
Folder is team folder for a limited team.INSUFFICIENT_PLAN
OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.OWNER_NOT_ON_TEAM
The content owner needs to be on a Dropbox team to perform this action.PERMISSION_DENIED
The user does not have permission to perform this action on the link.RESTRICTED_BY_PARENT_FOLDER
Policy cannot be changed due to restrictions from parent folder.RESTRICTED_BY_TEAM
The user's team policy prevents performing this action on the link.TARGET_IS_INDIRECT_MEMBER
Target is indirectly a member of the folder, for example by being part of a group.TARGET_IS_OWNER
Target is the owner of the folder.TARGET_IS_SELF
Target is the user itself.TARGET_NOT_ACTIVE
Target is not an active member of the team.USER_ACCOUNT_TYPE
The user's account type does not support this action.USER_NOT_ALLOWED_BY_OWNER
User is prohibited by the owner from taking the action.USER_NOT_ON_TEAM
The user needs to be on a Dropbox team to perform this action.USER_NOT_SAME_TEAM_AS_OWNER
User is not on the same team as the folder owner.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PermissionDeniedReason.Tag
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PermissionDeniedReason.Tag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
USER_NOT_SAME_TEAM_AS_OWNER
public static final PermissionDeniedReason.Tag USER_NOT_SAME_TEAM_AS_OWNER
User is not on the same team as the folder owner.
-
USER_NOT_ALLOWED_BY_OWNER
public static final PermissionDeniedReason.Tag USER_NOT_ALLOWED_BY_OWNER
User is prohibited by the owner from taking the action.
-
TARGET_IS_INDIRECT_MEMBER
public static final PermissionDeniedReason.Tag TARGET_IS_INDIRECT_MEMBER
Target is indirectly a member of the folder, for example by being part of a group.
-
TARGET_IS_OWNER
public static final PermissionDeniedReason.Tag TARGET_IS_OWNER
Target is the owner of the folder.
-
TARGET_IS_SELF
public static final PermissionDeniedReason.Tag TARGET_IS_SELF
Target is the user itself.
-
TARGET_NOT_ACTIVE
public static final PermissionDeniedReason.Tag TARGET_NOT_ACTIVE
Target is not an active member of the team.
-
FOLDER_IS_LIMITED_TEAM_FOLDER
public static final PermissionDeniedReason.Tag FOLDER_IS_LIMITED_TEAM_FOLDER
Folder is team folder for a limited team.
-
OWNER_NOT_ON_TEAM
public static final PermissionDeniedReason.Tag OWNER_NOT_ON_TEAM
The content owner needs to be on a Dropbox team to perform this action.
-
PERMISSION_DENIED
public static final PermissionDeniedReason.Tag PERMISSION_DENIED
The user does not have permission to perform this action on the link.
-
RESTRICTED_BY_TEAM
public static final PermissionDeniedReason.Tag RESTRICTED_BY_TEAM
The user's team policy prevents performing this action on the link.
-
USER_ACCOUNT_TYPE
public static final PermissionDeniedReason.Tag USER_ACCOUNT_TYPE
The user's account type does not support this action.
-
USER_NOT_ON_TEAM
public static final PermissionDeniedReason.Tag USER_NOT_ON_TEAM
The user needs to be on a Dropbox team to perform this action.
-
FOLDER_IS_INSIDE_SHARED_FOLDER
public static final PermissionDeniedReason.Tag FOLDER_IS_INSIDE_SHARED_FOLDER
Folder is inside of another shared folder.
-
RESTRICTED_BY_PARENT_FOLDER
public static final PermissionDeniedReason.Tag RESTRICTED_BY_PARENT_FOLDER
Policy cannot be changed due to restrictions from parent folder.
-
INSUFFICIENT_PLAN
public static final PermissionDeniedReason.Tag INSUFFICIENT_PLAN
-
OTHER
public static final PermissionDeniedReason.Tag OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.Receiving a catch-all value typically indicates this SDK version is not up to date. Consider updating your SDK version to handle the new tags.
-
-
Method Detail
-
values
public static PermissionDeniedReason.Tag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PermissionDeniedReason.Tag c : PermissionDeniedReason.Tag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PermissionDeniedReason.Tag valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-