Package com.dropbox.core.v2.sharing
Enum SharingFileAccessError
- java.lang.Object
-
- java.lang.Enum<SharingFileAccessError>
-
- com.dropbox.core.v2.sharing.SharingFileAccessError
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SharingFileAccessError>
public enum SharingFileAccessError extends java.lang.Enum<SharingFileAccessError>
User could not access this file.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSIDE_OSX_PACKAGE
A Mac OS X package can't be shared this way.INSIDE_PUBLIC_FOLDER
A file inside a public folder can't be shared this way.INVALID_FILE
File specified was not found.IS_FOLDER
A folder can't be shared this way.NO_PERMISSION
Current user does not have sufficient privileges to perform the desired action.OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SharingFileAccessError
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SharingFileAccessError[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_PERMISSION
public static final SharingFileAccessError NO_PERMISSION
Current user does not have sufficient privileges to perform the desired action.
-
INVALID_FILE
public static final SharingFileAccessError INVALID_FILE
File specified was not found.
-
IS_FOLDER
public static final SharingFileAccessError IS_FOLDER
A folder can't be shared this way. Use folder sharing or a shared link instead.
-
INSIDE_PUBLIC_FOLDER
public static final SharingFileAccessError INSIDE_PUBLIC_FOLDER
A file inside a public folder can't be shared this way. Use a public link instead.
-
INSIDE_OSX_PACKAGE
public static final SharingFileAccessError INSIDE_OSX_PACKAGE
A Mac OS X package can't be shared this way. Use a shared link instead.
-
OTHER
public static final SharingFileAccessError 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 SharingFileAccessError[] 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 (SharingFileAccessError c : SharingFileAccessError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SharingFileAccessError 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
-
-