Package com.axelor.meta
Class MetaStore
java.lang.Object
com.axelor.meta.MetaStore
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidclear()findFields(Class<?> modelClass, Collection<String> names) findFields(Class<?> modelClass, Collection<String> names, String jsonModel) static JsonReferenceFieldDTOfindJsonField(String jsonModel, String fieldName) Finds the JSON field metadata on json model.static JsonReferenceFieldDTOfindJsonField(String modelName, String modelField, String fieldName) Finds the JSON field metadata on model.findJsonFields(String jsonModel) findJsonFields(String modelName, String modelField) static Actionstatic Map<String, JsonReferenceFieldDTO> getJsonFields(String jsonModel) static Map<String, JsonReferenceFieldDTO> getJsonFields(String modelName, String modelField) getPermissions(Property property) getPermissions(Class<?> model) static List<JsonReferenceFieldDTO> getReferenceJsonFields(String modelKey) Returns the relational (reference) custom fields owned by the given model.static Selection.OptiongetSelectionItem(String selection, String value) static List<Selection.Option> getSelectionList(Class<?> enumType) static List<Selection.Option> getSelectionList(Class<? extends Model> model, String orderBy, int limit) static List<Selection.Option> getSelectionList(String selection) static List<JsonReferenceFieldDTO> getTargetJsonFields(String targetModel) Returns the custom fields whose target (relational reference) is the given model.static booleanhasJsonField(String jsonModel, String fieldName) Checks if the JSON field exists on json model.static booleanhasJsonField(String modelName, String modelField, String fieldName) Checks if the JSON field exists on model.static voidinvalidate(String name) static void
-
Method Details
-
getAction
-
getPermissions
-
getPermissions
-
findFields
-
findFields
-
findJsonFields
-
findJsonFields
-
findJsonField
@Nullable public static JsonReferenceFieldDTO findJsonField(String modelName, String modelField, String fieldName) Finds the JSON field metadata on model. -
findJsonField
Finds the JSON field metadata on json model. -
hasJsonField
Checks if the JSON field exists on model. -
hasJsonField
Checks if the JSON field exists on json model. -
getJsonFields
@Nullable public static Map<String,JsonReferenceFieldDTO> getJsonFields(String modelName, String modelField) -
getJsonFields
-
getReferenceJsonFields
Returns the relational (reference) custom fields owned by the given model. The key is a fully-qualified class name for real models, or a custom model name forMetaJsonModels.Computed from the json fields cache: for real models, the reference fields of all its json properties are combined, as the json fields cache is keyed per model and json property.
-
getTargetJsonFields
Returns the custom fields whose target (relational reference) is the given model. The key is a fully-qualified class name for real models, or a custom model name forMetaJsonModels. -
getSelectionList
-
getSelectionList
public static List<Selection.Option> getSelectionList(Class<? extends Model> model, String orderBy, int limit) -
getSelectionList
-
getSelectionItem
-
clear
public static void clear() -
invalidate
-
invalidateJsonFields
public static void invalidateJsonFields()
-