public abstract class ExpandSelectHelper extends Object
| Constructor and Description |
|---|
ExpandSelectHelper() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.olingo.server.api.uri.queryoption.ExpandItem |
getExpandAll(org.apache.olingo.server.api.uri.queryoption.ExpandOption expand) |
static Set<List<String>> |
getExpandedItemsPath(org.apache.olingo.server.api.uri.queryoption.ExpandOption expand) |
static Set<String> |
getExpandedPropertyNames(List<org.apache.olingo.server.api.uri.queryoption.ExpandItem> expandItems) |
static org.apache.olingo.server.api.uri.queryoption.ExpandItem |
getExpandItem(List<org.apache.olingo.server.api.uri.queryoption.ExpandItem> expandItems,
String propertyName) |
static org.apache.olingo.server.api.uri.queryoption.ExpandItem |
getExpandItemBasedOnType(List<org.apache.olingo.server.api.uri.queryoption.ExpandItem> expandItems,
String propertyName,
org.apache.olingo.commons.api.edm.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<org.apache.olingo.server.api.uri.queryoption.SelectItem> selectItems) |
static Set<List<String>> |
getSelectedPaths(List<org.apache.olingo.server.api.uri.queryoption.SelectItem> selectItems,
String propertyName) |
static Set<List<String>> |
getSelectedPathsWithTypeCasts(List<org.apache.olingo.server.api.uri.queryoption.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<org.apache.olingo.server.api.uri.queryoption.SelectItem> selectItems) |
static boolean |
hasExpand(org.apache.olingo.server.api.uri.queryoption.ExpandOption expand) |
static boolean |
hasSelect(org.apache.olingo.server.api.uri.queryoption.SelectOption select) |
static boolean |
isAll(org.apache.olingo.server.api.uri.queryoption.SelectOption select) |
static boolean |
isSelected(Set<List<String>> selectedPaths,
String propertyName) |
public static boolean hasSelect(org.apache.olingo.server.api.uri.queryoption.SelectOption select)
public static boolean isAll(org.apache.olingo.server.api.uri.queryoption.SelectOption select)
public static Set<String> getSelectedPropertyNames(List<org.apache.olingo.server.api.uri.queryoption.SelectItem> selectItems)
public static Set<List<String>> getSelectedPathsWithTypeCasts(List<org.apache.olingo.server.api.uri.queryoption.SelectItem> selectItems, String propertyName)
selectItems - items in the select clausepropertyName - propertyNamepublic static Set<List<String>> getSelectedPaths(List<org.apache.olingo.server.api.uri.queryoption.SelectItem> selectItems, String propertyName)
public static Set<List<String>> getSelectedPaths(List<org.apache.olingo.server.api.uri.queryoption.SelectItem> selectItems)
public static Set<List<String>> getReducedSelectedPaths(Set<List<String>> selectedPaths, String propertyName)
public static boolean hasExpand(org.apache.olingo.server.api.uri.queryoption.ExpandOption expand)
public static org.apache.olingo.server.api.uri.queryoption.ExpandItem getExpandAll(org.apache.olingo.server.api.uri.queryoption.ExpandOption expand)
public static Set<String> getExpandedPropertyNames(List<org.apache.olingo.server.api.uri.queryoption.ExpandItem> expandItems) throws org.apache.olingo.server.api.serializer.SerializerException
org.apache.olingo.server.api.serializer.SerializerExceptionpublic static org.apache.olingo.server.api.uri.queryoption.ExpandItem getExpandItem(List<org.apache.olingo.server.api.uri.queryoption.ExpandItem> expandItems, String propertyName)
public static Set<List<String>> getExpandedItemsPath(org.apache.olingo.server.api.uri.queryoption.ExpandOption expand)
public static Set<List<String>> getReducedExpandItemsPaths(Set<List<String>> expandItemsPaths, String propertyName)
public static org.apache.olingo.server.api.uri.queryoption.ExpandItem getExpandItemBasedOnType(List<org.apache.olingo.server.api.uri.queryoption.ExpandItem> expandItems, String propertyName, org.apache.olingo.commons.api.edm.EdmStructuredType type, String resourceName)
expandItems - propertyName - type - resourceName - Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.