Enum SortBy
- All Implemented Interfaces:
Serializable
,Comparable<SortBy>
,Constable
Defines the options to sort digital assets and folders.
The possible options to sort are:
- Physical name.
- Creation date.
- Last updated date.
- Digital asset's state
- Digital asset's extension
- Since:
- 1.6.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe creation date.The digital asset type.The extension.The last update date.The physical name. -
Method Summary
Modifier and TypeMethodDescriptioncom.orchestranetworks.schema.Path
Deprecated.com.orchestranetworks.schema.Path
getSortPath
(DAMType damType) Get the sort path depending on DAM Typestatic SortBy
Parses the SortBy.toString()
static SortBy
Returns the enum constant of this type with the specified name.static SortBy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
PHYSICAL_NAME
The physical name. -
CREATION_DATE
The creation date. -
LAST_UPDATE_DATE
The last update date. -
DIGITAL_ASSET_TYPE
The digital asset type. -
EXTENSION
The extension.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
parse
Parses the SortBy.- Parameters:
sortType
- the sort type- Returns:
- the sort by
-
toString
-
getSortPath
Deprecated.Returns the sort path of the Digital asset.- Since:
- 6.1.1, replaced by
getSortPath(DAMType)
-
getSortPath
Get the sort path depending on DAM Type- Parameters:
damType
- DAMType that can be used:DAMType.DIGITAL_ASSET
andDAMType.FOLDER
- Returns:
- Path
- Since:
- 6.1.1
-