Class ResourcePolicyViewUtils

java.lang.Object
io.jmix.securityflowui.view.resourcepolicy.ResourcePolicyViewUtils

@Component("sec_ResourcePolicyViewUtils") public class ResourcePolicyViewUtils extends Object
  • Constructor Details

  • Method Details

    • getEntityOptionsMap

      public Map<String,String> getEntityOptionsMap()
    • getEntityAttributeOptionsMap

      public Map<String,String> getEntityAttributeOptionsMap(@Nullable String entityName)
    • getMenuItemOptionsMap

      public Map<String,String> getMenuItemOptionsMap()
    • getViewsOptionsMap

      public Map<String,String> getViewsOptionsMap()
    • findMenuItemById

      @Nullable public MenuItem findMenuItemById(String menuItemId)
    • findMenuItemByView

      @Nullable public MenuItem findMenuItemByView(String viewId)
    • getDetailedViewTitle

      protected String getDetailedViewTitle(ViewInfo viewInfo)
    • getViewTitle

      public String getViewTitle(String viewId)
    • getViewTitle

      protected String getViewTitle(ViewInfo viewInfo, boolean detailed)
    • getMenuTitle

      public String getMenuTitle(MenuItem menuItem)
    • getEntityCaption

      protected String getEntityCaption(MetaClass metaClass)
    • getEntityAttributeCaption

      protected String getEntityAttributeCaption(MetaProperty metaProperty)
    • walkMenuItem

      protected void walkMenuItem(MenuItem menuItem, Map<String,String> collectedMenus)
    • findMenuItemByView

      @Nullable protected MenuItem findMenuItemByView(MenuItem rootItem, String screenId)
    • throwDuplicateException

      protected String throwDuplicateException(String v1, String v2)
    • setEnumItemsAsString

      public <T extends Enum<T> & EnumClass<String>> void setEnumItemsAsString(com.vaadin.flow.component.combobox.ComboBox<String> comboBox, Class<T> enumClass)
    • setEnumItemsAsString

      public <T extends Enum<T> & EnumClass<String>> void setEnumItemsAsString(com.vaadin.flow.component.select.Select<String> select, Class<T> enumClass)
    • setEnumItemsAsStringInternal

      protected <T extends Enum<T> & EnumClass<String>> void setEnumItemsAsStringInternal(com.vaadin.flow.data.provider.HasListDataView<String,?> component, Class<T> enumClass)
    • createItemLabelGenerator

      protected <T extends Enum<T> & EnumClass<String>> com.vaadin.flow.component.ItemLabelGenerator<String> createItemLabelGenerator(Class<T> enumClass)