Class IdDecorator
java.lang.Object
org.graylog.plugins.views.search.rest.scriptingapi.response.decorators.IdDecorator
- All Implemented Interfaces:
FieldDecorator
This decorator is needed to support field.id format for messages and aggregations. The ID is the actual
content of the fields below, but since we default to outputting name, we need some logic that will
return the raw IDs if requested.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(RequestedField field) decorate(RequestedField field, Object value, SearchUser searchUser)
-
Constructor Details
-
IdDecorator
public IdDecorator()
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceFieldDecorator
-
decorate
- Specified by:
decoratein interfaceFieldDecorator
-