Package io.jmix.datatools
Class DatatoolsProperties.DataModelDiagram
java.lang.Object
io.jmix.datatools.DatatoolsProperties.DataModelDiagram
- Enclosing class:
DatatoolsProperties
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final EngineTypeEngine type.protected final StringThe server address.protected final StringThe path under which the diagramming server serves its endpoints, appended tohost.protected final booleanWhether the public PlantUML server (https://www.plantuml.com) may be used to render data model diagrams when no privatehostis configured.protected final DurationThe maximum time to wait for a response from the diagramming server. -
Constructor Summary
ConstructorsConstructorDescriptionDataModelDiagram(@Nullable String host, String path, EngineType engineType, boolean publicServerEnabled, Duration readTimeout) -
Method Summary
-
Field Details
-
host
The server address. This can be either an IP address with custom port or not. It could also be a domain name. -
path
The path under which the diagramming server serves its endpoints, appended tohost. Set the property to an empty value when the server is deployed at the root context or whenhostalready contains the path: the path of the host is not replaced but prepended, so keeping both results in a doubled prefix. -
engineType
Engine type. PlantUML by default -
publicServerEnabled
protected final boolean publicServerEnabledWhether the public PlantUML server (https://www.plantuml.com) may be used to render data model diagrams when no privatehostis configured. When a private host is set, this property has no effect. This is also gated by the globaljmix.core.unsafe-runtime-features-enabledswitch: if that switch is disabled, the public server is not used regardless of this property. -
readTimeout
The maximum time to wait for a response from the diagramming server. Rendering a large data model may take the server longer than the default.
-
-
Constructor Details
-
DataModelDiagram
public DataModelDiagram(@Nullable String host, @DefaultValue("plantuml") String path, @DefaultValue("PLANTUML") EngineType engineType, @DefaultValue("true") boolean publicServerEnabled, @DefaultValue("10s") Duration readTimeout)
-
-
Method Details
-
getEngineType
-
getHost
-
getPath
- See Also:
-
getReadTimeout
- See Also:
-
isPublicServerEnabled
public boolean isPublicServerEnabled()- See Also:
-