public abstract class ExpandSelectHelper extends Object
| Constructor and Description |
|---|
ExpandSelectHelper() |
| Modifier and Type | Method and Description |
|---|---|
static ExpandItem |
getExpandAll(ExpandOption expand) |
static Set<List<String>> |
getExpandedItemsPath(ExpandOption expand) |
static Set<String> |
getExpandedPropertyNames(List<ExpandItem> expandItems) |
static ExpandItem |
getExpandItem(List<ExpandItem> expandItems,
String propertyName) |
static ExpandItem |
getExpandItemBasedOnType(List<ExpandItem> expandItems,
String propertyName,
EdmStructuredType type,
String resourceName)
Fetches the expand Item depending upon the type
|
static Set<List<String>> |
getReducedExpandItemsPaths(Set<List<String>> expandItemsPaths,
String propertyName) |
static Set<List<String>> |
getReducedSelectedPaths(Set<List<String>> selectedPaths,
String propertyName) |
static Set<List<String>> |
getSelectedPaths(List<SelectItem> selectItems) |
static Set<List<String>> |
getSelectedPaths(List<SelectItem> selectItems,
String propertyName) |
static Set<List<String>> |
getSelectedPathsWithTypeCasts(List<SelectItem> selectItems,
String propertyName)
This method creates selectedPath list checking if the resource has entity type filter,
complex type filter, or if resource is navigation property and if it has type filter
|
static Set<String> |
getSelectedPropertyNames(List<SelectItem> selectItems) |
static boolean |
hasExpand(ExpandOption expand) |
static boolean |
hasSelect(SelectOption select) |
static boolean |
isAll(SelectOption select) |
static boolean |
isExpandAll(ExpandOption expand) |
static boolean |
isSelected(Set<List<String>> selectedPaths,
String propertyName) |
public static boolean hasSelect(SelectOption select)
public static boolean isAll(SelectOption select)
public static Set<String> getSelectedPropertyNames(List<SelectItem> selectItems)
public static Set<List<String>> getSelectedPathsWithTypeCasts(List<SelectItem> selectItems, String propertyName)
selectItems - items in the select clausepropertyName - propertyNamepublic static Set<List<String>> getSelectedPaths(List<SelectItem> selectItems, String propertyName)
public static Set<List<String>> getSelectedPaths(List<SelectItem> selectItems)
public static Set<List<String>> getReducedSelectedPaths(Set<List<String>> selectedPaths, String propertyName)
public static boolean hasExpand(ExpandOption expand)
public static boolean isExpandAll(ExpandOption expand)
public static ExpandItem getExpandAll(ExpandOption expand)
public static Set<String> getExpandedPropertyNames(List<ExpandItem> expandItems) throws SerializerException
SerializerExceptionpublic static ExpandItem getExpandItem(List<ExpandItem> expandItems, String propertyName)
public static Set<List<String>> getExpandedItemsPath(ExpandOption expand)
public static Set<List<String>> getReducedExpandItemsPaths(Set<List<String>> expandItemsPaths, String propertyName)
public static ExpandItem getExpandItemBasedOnType(List<ExpandItem> expandItems, String propertyName, EdmStructuredType type, String resourceName)
expandItems - propertyName - type - resourceName - Copyright © 2023. All rights reserved.