Class TMFeatureTypeHelper
java.lang.Object
org.tailormap.api.persistence.helper.TMFeatureTypeHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Map<String,
org.apache.commons.lang3.tuple.Pair<TMAttributeDescriptor, AttributeSettings>> getConfiguredAttributes
(@NotNull TMFeatureType featureType, @NotNull AppLayerSettings appLayerSettings) Return a map of attribute names (in order, using a LinkedHashMap implementation) to an attribute descriptor and configured settings pair, taking into account the configured attribute order and hidden attributes.getHiddenAttributes
(@NotNull TMFeatureType featureType, @NotNull AppLayerSettings appLayerSettings) getNonHiddenAttributeNames
(@NotNull TMFeatureType featureType, @NotNull AppLayerSettings appLayerSettings) Get the non-hidden attribute names for a feature type.static Set<TMAttributeDescriptor>
getNonHiddenAttributes
(@NotNull TMFeatureType featureType, @NotNull AppLayerSettings appLayerSettings) Get the non-hidden attribute descriptors for a feature type.getReadOnlyAttributes
(@NotNull TMFeatureType featureType, @NotNull AppLayerSettings appLayerSettings) static boolean
isEditable
(Application application, AppTreeLayerNode appTreeLayerNode, TMFeatureType featureType)
-
Constructor Details
-
TMFeatureTypeHelper
public TMFeatureTypeHelper()
-
-
Method Details
-
isEditable
public static boolean isEditable(Application application, AppTreeLayerNode appTreeLayerNode, TMFeatureType featureType) -
getHiddenAttributes
public static Set<String> getHiddenAttributes(@NotNull @NotNull TMFeatureType featureType, @NotNull @NotNull AppLayerSettings appLayerSettings) -
getReadOnlyAttributes
public static Set<String> getReadOnlyAttributes(@NotNull @NotNull TMFeatureType featureType, @NotNull @NotNull AppLayerSettings appLayerSettings) -
getConfiguredAttributes
public static Map<String,org.apache.commons.lang3.tuple.Pair<TMAttributeDescriptor, getConfiguredAttributesAttributeSettings>> (@NotNull @NotNull TMFeatureType featureType, @NotNull @NotNull AppLayerSettings appLayerSettings) Return a map of attribute names (in order, using a LinkedHashMap implementation) to an attribute descriptor and configured settings pair, taking into account the configured attribute order and hidden attributes.- Parameters:
featureType
- The feature typeappLayerSettings
- The app layer settings- Returns:
- A sorted map as described
-
getNonHiddenAttributes
public static Set<TMAttributeDescriptor> getNonHiddenAttributes(@NotNull @NotNull TMFeatureType featureType, @NotNull @NotNull AppLayerSettings appLayerSettings) Get the non-hidden attribute descriptors for a feature type.- Parameters:
featureType
- The feature typeappLayerSettings
- The app layer settings- Returns:
- Unordered set of attribute descriptors
-
getNonHiddenAttributeNames
public static Set<String> getNonHiddenAttributeNames(@NotNull @NotNull TMFeatureType featureType, @NotNull @NotNull AppLayerSettings appLayerSettings) Get the non-hidden attribute names for a feature type.- Parameters:
featureType
- The feature typeappLayerSettings
- The app layer settings- Returns:
- Unordered set of attribute names
-