Class CustomAggregation
- java.lang.Object
-
- co.mastermindcms.common.extensions.mongodb.CustomAggregation
-
- All Implemented Interfaces:
org.springframework.data.mongodb.core.aggregation.AggregationOperation
public class CustomAggregation extends java.lang.Object implements org.springframework.data.mongodb.core.aggregation.AggregationOperation
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
jsonOperation
-
Constructor Summary
Constructors Constructor Description CustomAggregation(java.lang.String jsonOperation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CustomAggregation
custom(java.lang.String jsonOperation)
org.bson.Document
toDocument(org.springframework.data.mongodb.core.aggregation.AggregationOperationContext aggregationOperationContext)
-
-
-
Method Detail
-
custom
public static CustomAggregation custom(java.lang.String jsonOperation)
-
toDocument
public org.bson.Document toDocument(org.springframework.data.mongodb.core.aggregation.AggregationOperationContext aggregationOperationContext)
- Specified by:
toDocument
in interfaceorg.springframework.data.mongodb.core.aggregation.AggregationOperation
-
-