Class StorageRequestBuilder
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.persistence.StorageRequestBuilder
-
- Direct Known Subclasses:
StorageRequest.StorageRequestBuilder
public class StorageRequestBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StorageRequestbuild()StorageRequestBuilderfrom(StorageRequest request)StorageRequestBuilderwithAcceptLocale(java.util.Locale locale)StorageRequestBuilderwithContentLocale(java.util.Locale locale)StorageRequestBuilderwithContentType(java.lang.String mimeType)StorageRequestBuilderwithEntitySet(org.apache.olingo.odata2.api.edm.EdmEntitySet set)StorageRequestBuilderwithIntegrationItem(IntegrationItem item)StorageRequestBuilderwithIntegrationKey(java.lang.String key)Deprecated, for removal: This API element is subject to removal in a future version.the method has no effect because the only way to specify an integration key is to specify the integration item, i.e.StorageRequestBuilderwithIntegrationObject(java.lang.String code)StorageRequestBuilderwithItemCanBeCreated(boolean value)StorageRequestBuilderwithODataEntry(org.apache.olingo.odata2.api.ep.entry.ODataEntry entry)Deprecated, for removal: This API element is subject to removal in a future version.since 1905.StorageRequestBuilderwithPostPersistHook(java.lang.String hook)StorageRequestBuilderwithPrePersistHook(java.lang.String hook)StorageRequestBuilderwithReplaceAttributes(boolean flag)StorageRequestBuilderwithRequestUri(java.net.URI uri)StorageRequestBuilderwithServiceRoot(java.net.URI uri)
-
-
-
Method Detail
-
withEntitySet
public StorageRequestBuilder withEntitySet(org.apache.olingo.odata2.api.edm.EdmEntitySet set)
-
withODataEntry
@Deprecated(since="1905", forRemoval=true) public StorageRequestBuilder withODataEntry(org.apache.olingo.odata2.api.ep.entry.ODataEntry entry)Deprecated, for removal: This API element is subject to removal in a future version.since 1905. UsewithIntegrationItem(IntegrationItem)insteadSpecifies OData entry associated with the request- Parameters:
entry- an OData entry to be handled by the request- Returns:
- a builder with the OData entry specified
-
withServiceRoot
public StorageRequestBuilder withServiceRoot(java.net.URI uri)
-
withContentType
public StorageRequestBuilder withContentType(java.lang.String mimeType)
-
withRequestUri
public StorageRequestBuilder withRequestUri(java.net.URI uri)
-
withIntegrationObject
public StorageRequestBuilder withIntegrationObject(java.lang.String code)
-
withIntegrationKey
@Deprecated(since="2105", forRemoval=true) public StorageRequestBuilder withIntegrationKey(java.lang.String key)Deprecated, for removal: This API element is subject to removal in a future version.the method has no effect because the only way to specify an integration key is to specify the integration item, i.e.withIntegrationItem(IntegrationItem)Specifies integration key for the request to build- Parameters:
key- integration key value- Returns:
- a builder with the integration key specified
-
withPrePersistHook
public StorageRequestBuilder withPrePersistHook(java.lang.String hook)
-
withPostPersistHook
public StorageRequestBuilder withPostPersistHook(java.lang.String hook)
-
withIntegrationItem
public StorageRequestBuilder withIntegrationItem(IntegrationItem item)
-
withAcceptLocale
public StorageRequestBuilder withAcceptLocale(java.util.Locale locale)
-
withContentLocale
public StorageRequestBuilder withContentLocale(java.util.Locale locale)
-
withReplaceAttributes
public StorageRequestBuilder withReplaceAttributes(boolean flag)
-
withItemCanBeCreated
public StorageRequestBuilder withItemCanBeCreated(boolean value)
-
from
public StorageRequestBuilder from(StorageRequest request)
-
build
public final StorageRequest build() throws org.apache.olingo.odata2.api.edm.EdmException
- Throws:
org.apache.olingo.odata2.api.edm.EdmException
-
-