Package com.onec.ui

Class FieldHintResolver

java.lang.Object
com.onec.ui.FieldHintResolver

public class FieldHintResolver extends Object
Per-entity field hints, authored on each EntityView.fields(com.onec.ui.EntityConfigBuilder) and resolved by class. The source of truth for field order/visibility/widget — what used to live in the layout's section calls. Only the default view (profile()==null) contributes, matching the previously global (profile-agnostic) hint resolution.

Kept separate from UiViewResolver on purpose: that resolver depends on ResolvedMetadataService, which consumes these hints — folding them in would create a cycle. This bean depends only on the views.

  • Constructor Details

    • FieldHintResolver

      public FieldHintResolver(List<EntityView> views)
  • Method Details

    • forEntity

      public Map<String,FieldHint> forEntity(Class<?> entity)
      Field hints for an entity, or an empty map if its view defines none.
    • actionsFor

      public Map<String,String> actionsFor(Class<?> entity)
      Detail-header action placement overrides for an entity (action -> primary|menu|hidden).
    • relatedListsFor

      public List<RelatedList> relatedListsFor(Class<?> entity)
      Related-list panels authored on an entity's view, or an empty list if none.
    • relatedList

      public RelatedList relatedList(Class<?> entity, String name)
      A single related-list panel by name, or null if the entity declares none with that name.