Class ExpandSelectHelper
java.lang.Object
org.apache.olingo.server.core.serializer.utils.ExpandSelectHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExpandItemgetExpandAll(ExpandOption expand) getExpandedItemsPath(ExpandOption expand) getExpandedPropertyNames(List<ExpandItem> expandItems) static ExpandItemgetExpandItem(List<ExpandItem> expandItems, String propertyName) static ExpandItemgetExpandItemBasedOnType(List<ExpandItem> expandItems, String propertyName, EdmStructuredType type, String resourceName) Fetches the expand Item depending upon the typegetReducedExpandItemsPaths(Set<List<String>> expandItemsPaths, String propertyName) getReducedSelectedPaths(Set<List<String>> selectedPaths, String propertyName) getSelectedPaths(List<SelectItem> selectItems) getSelectedPaths(List<SelectItem> selectItems, String propertyName) 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 filtergetSelectedPropertyNames(List<SelectItem> selectItems) static booleanhasExpand(ExpandOption expand) static booleanhasSelect(SelectOption select) static booleanisAll(SelectOption select) static booleanisExpandAll(ExpandOption expand) static booleanisSelected(Set<List<String>> selectedPaths, String propertyName)
-
Constructor Details
-
ExpandSelectHelper
public ExpandSelectHelper()
-
-
Method Details
-
hasSelect
-
isAll
-
getSelectedPropertyNames
-
getSelectedPathsWithTypeCasts
public 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- Parameters:
selectItems- items in the select clausepropertyName- propertyName- Returns:
- Set<List
> return a list of selected paths
-
getSelectedPaths
-
getSelectedPaths
-
isSelected
-
getReducedSelectedPaths
-
hasExpand
-
isExpandAll
-
getExpandAll
-
getExpandedPropertyNames
public static Set<String> getExpandedPropertyNames(List<ExpandItem> expandItems) throws SerializerException - Throws:
SerializerException
-
getExpandItem
-
getExpandedItemsPath
-
getReducedExpandItemsPaths
-
getExpandItemBasedOnType
public static ExpandItem getExpandItemBasedOnType(List<ExpandItem> expandItems, String propertyName, EdmStructuredType type, String resourceName) Fetches the expand Item depending upon the type- Parameters:
expandItems-propertyName-type-resourceName-- Returns:
-