Class DashboardV1Facade
java.lang.Object
org.graylog2.contentpacks.facades.ViewFacade
org.graylog2.contentpacks.facades.dashboardV1.DashboardV1Facade
- All Implemented Interfaces:
EntityWithExcerptFacade<ViewDTO,ViewSummaryDTO>
-
Field Summary
FieldsFields inherited from class org.graylog2.contentpacks.facades.ViewFacade
userService -
Constructor Summary
ConstructorsConstructorDescriptionDashboardV1Facade(com.fasterxml.jackson.databind.ObjectMapper objectMapper, SearchDbService searchDbService, EntityConverter entityConverter, ViewService viewService, ViewSummaryService viewSummaryService, UserService userService) -
Method Summary
Modifier and TypeMethodDescriptioncreateNativeEntity(Entity entity, Map<String, ValueReference> parameters, Map<EntityDescriptor, Object> nativeEntities, String username) Create a native entity of typeTfrom an entity model.protected NativeEntity<ViewDTO>decode(EntityV1 entityV1, Map<String, ValueReference> parameters, Map<EntityDescriptor, Object> nativeEntities, User user) protected Stream<ViewSummaryDTO>com.google.common.graph.Graph<Entity>resolveForInstallation(Entity entity, Map<String, ValueReference> parameters, Map<EntityDescriptor, Entity> entities) Create the dependency graph of an entity described by the given entity model during content pack installation.Methods inherited from class org.graylog2.contentpacks.facades.ViewFacade
createExcerpt, delete, ensureV1, exportEntity, listEntityExcerpts, loadNativeEntity, resolveNativeEntity, resolveViewEntityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graylog2.contentpacks.facades.EntityWithExcerptFacade
findExisting, usesScopedEntities
-
Field Details
-
TYPE_V1
-
-
Constructor Details
-
Method Details
-
getDTOType
- Specified by:
getDTOTypein classViewFacade
-
getModelType
- Specified by:
getModelTypein classViewFacade
-
getNativeViews
- Overrides:
getNativeViewsin classViewFacade
-
createNativeEntity
public NativeEntity<ViewDTO> createNativeEntity(Entity entity, Map<String, ValueReference> parameters, Map<EntityDescriptor, Object> nativeEntities, String username) Description copied from interface:EntityWithExcerptFacadeCreate a native entity of typeTfrom an entity model.- Specified by:
createNativeEntityin interfaceEntityWithExcerptFacade<ViewDTO,ViewSummaryDTO> - Overrides:
createNativeEntityin classViewFacade- Parameters:
entity- the entity model from which a native entity should be createdparameters- user-provided parameters to resolve parameters in the entity modelnativeEntities- existing native entities to reference during the creation of the native entityusername- the name of the user creating the entity- Returns:
- the created native entity wrapped in
- See Also:
-
decode
protected NativeEntity<ViewDTO> decode(EntityV1 entityV1, Map<String, ValueReference> parameters, Map<EntityDescriptor, Object> nativeEntities, User user) - Overrides:
decodein classViewFacade
-
resolveForInstallation
public com.google.common.graph.Graph<Entity> resolveForInstallation(Entity entity, Map<String, ValueReference> parameters, Map<EntityDescriptor, Entity> entities) Description copied from interface:EntityWithExcerptFacadeCreate the dependency graph of an entity described by the given entity model during content pack installation.- Specified by:
resolveForInstallationin interfaceEntityWithExcerptFacade<ViewDTO,ViewSummaryDTO> - Overrides:
resolveForInstallationin classViewFacade- Parameters:
entity- the entity model to resolve dependencies for- Returns:
- A directed graph of the native entity with entity models as nodes.
- See Also:
-
Graph
-