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 Details

  • Constructor Details

  • Method Details

    • createEntity

      public MutationResult createEntity(DynamicModelDefinition definition, String entityName, @Nullable Caption caption)
    • removeEntity

      public MutationResult removeEntity(DynamicModelDefinition definition, String entityName)
    • issue

      protected MutationIssue issue(String code, String messageKey, Object... arguments)
      An issue whose guidance has the key of its message followed by Guidance.
    • failed

      protected MutationResult failed(String code, String messageKey, Object... arguments)
    • captionMessages

      protected Map<String,String> captionMessages(@Nullable Caption caption, String name)
      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

      protected @Nullable MutationIssue captionLocaleIssue(@Nullable Caption caption)
      A caption may use only the application's locales: other texts would never be shown.
    • captionLocale

      protected String 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

      protected MutationIssue unknownEntity(String entityName, DynamicModelDefinition definition)