public class DashboardV1Facade extends ViewFacade
| Modifier and Type | Field and Description |
|---|---|
static ModelType |
TYPE_V1 |
userService| Constructor and Description |
|---|
DashboardV1Facade(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
SearchDbService searchDbService,
EntityConverter entityConverter,
ViewService viewService,
UserService userService) |
| Modifier and Type | Method and Description |
|---|---|
NativeEntity<ViewDTO> |
createNativeEntity(Entity entity,
Map<String,ValueReference> parameters,
Map<EntityDescriptor,Object> nativeEntities,
String username)
Create a native entity of type
T from an entity model. |
protected NativeEntity<ViewDTO> |
decode(EntityV1 entityV1,
Map<String,ValueReference> parameters,
Map<EntityDescriptor,Object> nativeEntities,
User user) |
ViewDTO.Type |
getDTOType() |
ModelType |
getModelType() |
protected Stream<ViewDTO> |
getNativeViews() |
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.
|
createExcerpt, delete, ensureV1, exportEntity, listEntityExcerpts, loadNativeEntity, resolveNativeEntity, resolveViewEntityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindExistingpublic static final ModelType TYPE_V1
@Inject
public DashboardV1Facade(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
SearchDbService searchDbService,
EntityConverter entityConverter,
ViewService viewService,
UserService userService)
public ViewDTO.Type getDTOType()
getDTOType in class ViewFacadepublic ModelType getModelType()
getModelType in class ViewFacadeprotected Stream<ViewDTO> getNativeViews()
getNativeViews in class ViewFacadepublic NativeEntity<ViewDTO> createNativeEntity(Entity entity, Map<String,ValueReference> parameters, Map<EntityDescriptor,Object> nativeEntities, String username)
EntityFacadeT from an entity model.createNativeEntity in interface EntityFacade<ViewDTO>createNativeEntity in class ViewFacadeentity - 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 entityNativeEntityEntity,
NativeEntityprotected NativeEntity<ViewDTO> decode(EntityV1 entityV1, Map<String,ValueReference> parameters, Map<EntityDescriptor,Object> nativeEntities, User user)
decode in class ViewFacadepublic com.google.common.graph.Graph<Entity> resolveForInstallation(Entity entity, Map<String,ValueReference> parameters, Map<EntityDescriptor,Entity> entities)
EntityFacaderesolveForInstallation in interface EntityFacade<ViewDTO>resolveForInstallation in class ViewFacadeentity - the entity model to resolve dependencies forGraphCopyright © 2012–2021 Graylog, Inc.. All rights reserved.