Class DynamicModelViewOperations
java.lang.Object
io.jmix.dynmodelai.modelchange.impl.DynamicModelViewOperations
@Component("dmagent_DynamicModelViewOperations")
public class DynamicModelViewOperations
extends Object
Operations that add screens and menu placement to a Dynamic Model draft.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CorePropertiesprotected final CurrentAuthenticationprotected final Messages -
Constructor Summary
ConstructorsConstructorDescriptionDynamicModelViewOperations(CurrentAuthentication currentAuthentication, CoreProperties coreProperties, Metadata metadata, Messages messages) -
Method Summary
Modifier and TypeMethodDescriptionaddMenuItem(DynamicModelDefinition definition, String entityName, @Nullable Caption title, String parentMenu, @Nullable String insertBefore, @Nullable MenuProjection menu) protected 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.protected MutationResultgenerateViews(DynamicModelDefinition definition, String entityName, ViewKind kind, @Nullable Caption title) protected MutationIssueAn issue whose guidance has the key of its message followed byGuidance.moveMenuItem(DynamicModelDefinition definition, String entityName, String parentMenu, @Nullable String insertBefore, @Nullable MenuProjection menu) protected MutationIssueunknownEntity(String entityName, DynamicModelDefinition definition)
-
Field Details
-
currentAuthentication
-
coreProperties
-
messages
-
-
Constructor Details
-
DynamicModelViewOperations
public DynamicModelViewOperations(CurrentAuthentication currentAuthentication, CoreProperties coreProperties, Metadata metadata, Messages messages)
-
-
Method Details
-
generateViews
public MutationResult generateViews(DynamicModelDefinition definition, String entityName, ViewKind kind, @Nullable Caption title) -
addMenuItem
public MutationResult addMenuItem(DynamicModelDefinition definition, String entityName, @Nullable Caption title, String parentMenu, @Nullable String insertBefore, @Nullable MenuProjection menu) -
moveMenuItem
public MutationResult moveMenuItem(DynamicModelDefinition definition, String entityName, String parentMenu, @Nullable String insertBefore, @Nullable MenuProjection menu) -
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
-