Package org.graylog.plugins.views.search
Class Search
java.lang.Object
org.graylog.plugins.views.search.Search
- All Implemented Interfaces:
ParameterProvider,ContentPackable<SearchEntity>,MongoEntity
public abstract class Search
extends Object
implements ContentPackable<SearchEntity>, ParameterProvider, MongoEntity
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddStreamsToQueriesWithCategories(Function<Collection<String>, Stream<String>> categoryMappingFunction, StreamPermissions streamPermissions) addStreamsToQueriesWithoutStreams(Supplier<Set<String>> defaultStreamsSupplier) addStreamsToSearchTypesWithCategories(Function<Collection<String>, Stream<String>> categoryMappingFunction, StreamPermissions streamPermissions) applyExecutionState(ExecutionState executionState) static Search.Builderbuilder()abstract org.joda.time.DateTimegetParameter(String parameterName) abstract Stringid()ID of the entity.owner()abstract com.google.common.collect.ImmutableSet<Parameter>abstract com.google.common.collect.ImmutableSet<Query>queries()queryForSearchType(String searchTypeId) abstract Map<String,PluginMetadataSummary> requires()voidresolveNativeEntity(EntityDescriptor entityDescriptor, com.google.common.graph.MutableGraph<EntityDescriptor> mutableGraph) abstract Search.BuildertoContentPackEntity(EntityDescriptorIds entityDescriptorIds) withReferenceDate(org.joda.time.DateTime now) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graylog2.contentpacks.ContentPackable
getContentPackPluginPackage
-
Field Details
-
FIELD_REQUIRES
- See Also:
-
FIELD_CREATED_AT
- See Also:
-
FIELD_OWNER
- See Also:
-
-
Constructor Details
-
Search
public Search()
-
-
Method Details
-
id
Description copied from interface:MongoEntityID of the entity. Will be stored as field "_id" with type ObjectId in MongoDB.- Specified by:
idin interfaceMongoEntity- Returns:
- Hex string representation of the entity's ID
-
queries
-
parameters
-
requires
-
owner
-
withOwner
-
createdAt
public abstract org.joda.time.DateTime createdAt() -
getParameter
- Specified by:
getParameterin interfaceParameterProvider
-
applyExecutionState
-
addStreamsToQueriesWithoutStreams
-
addStreamsToQueriesWithCategories
public Search addStreamsToQueriesWithCategories(Function<Collection<String>, Stream<String>> categoryMappingFunction, StreamPermissions streamPermissions) -
addStreamsToSearchTypesWithCategories
public Search addStreamsToSearchTypesWithCategories(Function<Collection<String>, Stream<String>> categoryMappingFunction, StreamPermissions streamPermissions) -
toBuilder
-
builder
-
usedStreamIds
-
streamIdsForPermissionsCheck
-
queryForSearchType
-
withReferenceDate
-
toContentPackEntity
- Specified by:
toContentPackEntityin interfaceContentPackable<SearchEntity>
-
resolveNativeEntity
public void resolveNativeEntity(EntityDescriptor entityDescriptor, com.google.common.graph.MutableGraph<EntityDescriptor> mutableGraph) - Specified by:
resolveNativeEntityin interfaceContentPackable<SearchEntity>
-