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,
ViewSummaryService viewSummaryService,
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<ViewSummaryDTO> |
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,
ViewSummaryService viewSummaryService,
UserService userService)
public ViewDTO.Type getDTOType()
getDTOType in class ViewFacadepublic ModelType getModelType()
getModelType in class ViewFacadeprotected Stream<ViewSummaryDTO> getNativeViews()
getNativeViews in class ViewFacadepublic NativeEntity<ViewDTO> createNativeEntity(Entity entity, Map<String,ValueReference> parameters, Map<EntityDescriptor,Object> nativeEntities, String username)
EntityWithExcerptFacadeT from an entity model.createNativeEntity in interface EntityWithExcerptFacade<ViewDTO,ViewSummaryDTO>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 entityEntity,
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)
EntityWithExcerptFacaderesolveForInstallation in interface EntityWithExcerptFacade<ViewDTO,ViewSummaryDTO>resolveForInstallation in class ViewFacadeentity - the entity model to resolve dependencies forGraphCopyright © 2012–2022 Graylog, Inc.. All rights reserved.