Package org.nuxeo.ecm.core.blob
Enum BlobManager.UsageHint
- java.lang.Object
-
- java.lang.Enum<BlobManager.UsageHint>
-
- org.nuxeo.ecm.core.blob.BlobManager.UsageHint
-
- All Implemented Interfaces:
Serializable
,Comparable<BlobManager.UsageHint>
- Enclosing interface:
- BlobManager
public static enum BlobManager.UsageHint extends Enum<BlobManager.UsageHint>
Hints for returningURI
s appropriate for the expected usage.- Since:
- 7.3
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BlobManager.UsageHint
valueOf(String name)
Returns the enum constant of this type with the specified name.static BlobManager.UsageHint[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STREAM
public static final BlobManager.UsageHint STREAM
Obtaining anInputStream
.
-
DOWNLOAD
public static final BlobManager.UsageHint DOWNLOAD
Downloading.
-
VIEW
public static final BlobManager.UsageHint VIEW
Viewing.
-
EDIT
public static final BlobManager.UsageHint EDIT
Editing.
-
EMBED
public static final BlobManager.UsageHint EMBED
Embedding / previewing.
-
-
Method Detail
-
values
public static BlobManager.UsageHint[] 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 (BlobManager.UsageHint c : BlobManager.UsageHint.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BlobManager.UsageHint valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-