Class DynamicModelEntityOperations
java.lang.Object
io.jmix.dynmodelai.modelchange.impl.DynamicModelEntityOperations
@Component("dmagent_DynamicModelEntityOperations")
public class DynamicModelEntityOperations
extends Object
Operations that create or remove the target entity in a Dynamic Model draft.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CorePropertiesprotected final CurrentAuthenticationprotected final DynamicModelToolsprotected final Messagesprotected final Metadata -
Constructor Summary
ConstructorsConstructorDescriptionDynamicModelEntityOperations(CurrentAuthentication currentAuthentication, CoreProperties coreProperties, Metadata metadata, DynamicModelTools dynamicModelTools, Messages messages) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringThe message key of the analyst's language among the application locales: a key with a country, such as en_US, must be written as such, or the old text under it would stay visible.protected @Nullable MutationIssuecaptionLocaleIssue(@Nullable Caption caption) A caption may use only the application's locales: other texts would never be shown.captionMessages(@Nullable Caption caption, String name) Captions by locale.createEntity(DynamicModelDefinition definition, String entityName, @Nullable Caption caption) protected MutationResultprotected MutationIssueAn issue whose guidance has the key of its message followed byGuidance.removeEntity(DynamicModelDefinition definition, String entityName) protected MutationIssueunknownEntity(String entityName, DynamicModelDefinition definition)
-
Field Details
-
metadata
-
dynamicModelTools
-
currentAuthentication
-
coreProperties
-
messages
-
-
Constructor Details
-
DynamicModelEntityOperations
public DynamicModelEntityOperations(CurrentAuthentication currentAuthentication, CoreProperties coreProperties, Metadata metadata, DynamicModelTools dynamicModelTools, Messages messages)
-
-
Method Details
-
createEntity
public MutationResult createEntity(DynamicModelDefinition definition, String entityName, @Nullable Caption caption) -
removeEntity
-
issue
An issue whose guidance has the key of its message followed byGuidance. -
failed
-
captionMessages
Captions by locale. A text without a locale belongs to the language the analyst works in: the current user locale, falling back to the first available locale. A caption derived from the name is the only text there is, so every application locale gets it. -
captionLocaleIssue
A caption may use only the application's locales: other texts would never be shown. -
captionLocale
The message key of the analyst's language among the application locales: a key with a country, such as en_US, must be written as such, or the old text under it would stay visible. -
unknownEntity
-