Package org.camunda.bpm.client.task
Class OrderingConfig
java.lang.Object
org.camunda.bpm.client.task.OrderingConfig
Class that encapsulates the client's configuration of createTime ordering.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe direction of createTime.static classStatic Class that encapsulates an ordering property with a field and its direction.static enumThe field to sort by. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final ExternalTaskClientLoggerprotected final List<OrderingConfig.OrderingProperty> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOrderingConfig(List<OrderingConfig.OrderingProperty> orderingProperties) Constructor using a list of ordering properties -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigures theOrderingConfig.Directionfor the last configured field on thisOrderingConfig.voidConfigures the given field.static OrderingConfigempty()Returns an empty config.protected OrderingConfig.OrderingPropertyReturns the last configured field in thisOrderingConfig.Converts thisOrderingConfigto a list ofSortingDtos.protected OrderingConfig.OrderingPropertyValidates the last configured field for its direction and retrieves it.voidValidates ordering properties all have a non-null direction.
-
Field Details
-
LOG
-
orderingProperties
-
-
Constructor Details
-
OrderingConfig
Constructor using a list of ordering properties- Parameters:
orderingProperties- the list of ordering properties
-
-
Method Details
-
empty
Returns an empty config. -
configureField
Configures the given field.- Parameters:
field- the sorting field to configure
-
configureDirectionOnLastField
Configures theOrderingConfig.Directionfor the last configured field on thisOrderingConfig.- Parameters:
direction- the given direction, nullable.
-
validateAndGetLastConfiguredProperty
Validates the last configured field for its direction and retrieves it. -
validateOrderingProperties
public void validateOrderingProperties()Validates ordering properties all have a non-null direction. -
toSortingDtos
Converts thisOrderingConfigto a list ofSortingDtos. -
getLastConfiguredProperty
Returns the last configured field in thisOrderingConfig.
-