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
Modifier and TypeClassDescriptionstatic enum
The direction of createTime.static class
Static Class that encapsulates an ordering property with a field and its direction.static enum
The field to sort by. -
Field Summary
Modifier and TypeFieldDescriptionprotected static final ExternalTaskClientLogger
protected final List<OrderingConfig.OrderingProperty>
-
Constructor Summary
ModifierConstructorDescriptionprotected
OrderingConfig
(List<OrderingConfig.OrderingProperty> orderingProperties) Constructor using a list of ordering properties -
Method Summary
Modifier and TypeMethodDescriptionvoid
Configures theOrderingConfig.Direction
for the last configured field on thisOrderingConfig
.void
Configures the given field.static OrderingConfig
empty()
Returns an empty config.protected OrderingConfig.OrderingProperty
Returns the last configured field in thisOrderingConfig
.Converts thisOrderingConfig
to a list ofSortingDto
s.protected OrderingConfig.OrderingProperty
Validates the last configured field for its direction and retrieves it.void
Validates 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.Direction
for 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 thisOrderingConfig
to a list ofSortingDto
s. -
getLastConfiguredProperty
Returns the last configured field in thisOrderingConfig
.
-