Class DefaultResourceEntityDelegate
java.lang.Object
com.inductiveautomation.ignition.gateway.config.DefaultResourceEntityDelegate
- All Implemented Interfaces:
ResourceEntityDelegate
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A ratio gauge that shows active/total resources for a given resource type, where "active" is defined as having a healthcheck named "status" that is healthystatic class
protected static class
A ratio gauge that shows enabled/total resources for a given resource typeprotected static class
-
Field Summary
Fields inherited from interface com.inductiveautomation.ignition.gateway.config.ResourceEntityDelegate
NONE
-
Constructor Summary
ConstructorsConstructorDescriptionThis constructor will decide to include or exclude the entity from the section overview based on whether the resource type is a singletonDefaultResourceEntityDelegate
(Boolean includeInSectionOverview) DefaultResourceEntityDelegate
(Boolean includeInSectionOverview, boolean includeInDiagnosticOverview) -
Method Summary
Modifier and TypeMethodDescriptionprotected Entity
buildChildEntity
(GatewayContext context, ResourceTypeMeta<?> meta, Resource resource) protected Entity
buildEntity
(GatewayContext context, ResourceTypeMeta<?> meta) protected void
configureChildren
(GatewayContext context, ResourceTypeMeta<?> meta, EntityBuilder builder) protected void
configureDescription
(ResourceTypeMeta<?> meta, EntityBuilder.DescriptionComponentBuilder descriptionBuilder) protected void
configureDiagnostics
(GatewayContext context, ResourceTypeMeta<?> meta, EntityBuilder builder) protected void
configureNavigation
(ResourceTypeMeta<?> meta, NavLocation location, EntityBuilder.NavigationComponentBuilder navBuilder) getEntity
(GatewayContext context, ResourceTypeMeta<?> meta) protected boolean
includeInSectionOverview
(ResourceTypeMeta<?> meta) If this returns true, the "section-overview" tag will be added to the entity's navigation component.
-
Constructor Details
-
DefaultResourceEntityDelegate
public DefaultResourceEntityDelegate()This constructor will decide to include or exclude the entity from the section overview based on whether the resource type is a singleton -
DefaultResourceEntityDelegate
- Parameters:
includeInSectionOverview
- Whether to include this resource type in the section overview page.
-
DefaultResourceEntityDelegate
public DefaultResourceEntityDelegate(@Nullable Boolean includeInSectionOverview, boolean includeInDiagnosticOverview) - Parameters:
includeInSectionOverview
- Whether to include this resource type in the section overview page.includeInDiagnosticOverview
- Whether to include this resource type in the diagnostic overview page.
-
-
Method Details
-
getEntity
- Specified by:
getEntity
in interfaceResourceEntityDelegate
- Returns:
- An
Entity
that represents this resource type, or empty if no entity is associated with this resource type.
-
buildEntity
-
configureDescription
protected void configureDescription(ResourceTypeMeta<?> meta, EntityBuilder.DescriptionComponentBuilder descriptionBuilder) -
includeInSectionOverview
If this returns true, the "section-overview" tag will be added to the entity's navigation component. -
configureDiagnostics
protected void configureDiagnostics(GatewayContext context, ResourceTypeMeta<?> meta, EntityBuilder builder) -
configureChildren
protected void configureChildren(GatewayContext context, ResourceTypeMeta<?> meta, EntityBuilder builder) -
buildChildEntity
protected Entity buildChildEntity(GatewayContext context, ResourceTypeMeta<?> meta, Resource resource)
-