org.apache.olingo.odata2.api.ep
Class EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder

java.lang.Object
  extended by org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder
Enclosing class:
EntityProviderWriteProperties

public static class EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder
extends Object


Constructor Summary
EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder()
           
 
Method Summary
 EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder additionalLinks(Map<String,Map<String,Object>> links)
          Sets additional links from this entity to other entities.
 EntityProviderWriteProperties build()
          Build properties object.
 EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder callbacks(Map<String,ODataCallback> callbacks)
           
 EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder contentOnly(boolean contentOnly)
           
 EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder expandSelectTree(ExpandSelectTreeNode expandSelectTree)
          Set a expand select tree which results from $expand and $select query parameter.
 EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder fromProperties(EntityProviderWriteProperties properties)
           
 EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder includeSimplePropertyType(boolean includeSimplePropertyType)
           
 EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder inlineCount(Integer inlineCount)
           
 EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder inlineCountType(InlineCount inlineCountType)
           
 EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder nextLink(String nextLink)
           
 EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder omitETag(boolean omitETag)
           
 EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder omitJsonWrapper(boolean omitJsonWrapper)
           
 EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder selfLink(URI selfLink)
           
 EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder serviceRoot(URI serviceRoot)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder

public EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder()
Method Detail

includeSimplePropertyType

public final EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder includeSimplePropertyType(boolean includeSimplePropertyType)
Parameters:
includeSimplePropertyType - true to include simple property type information in the payload

inlineCountType

public final EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder inlineCountType(InlineCount inlineCountType)
Parameters:
inlineCountType - the inlineCountType to set

inlineCount

public final EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder inlineCount(Integer inlineCount)
Parameters:
inlineCount - the inlineCount to set

serviceRoot

public final EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder serviceRoot(URI serviceRoot)
Parameters:
serviceRoot -

nextLink

public EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder nextLink(String nextLink)
Parameters:
nextLink - Next link to render feeds with server side paging. Should usually contain a skiptoken.

build

public final EntityProviderWriteProperties build()
Build properties object.

Returns:
assembled properties object

expandSelectTree

public EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder expandSelectTree(ExpandSelectTreeNode expandSelectTree)
Set a expand select tree which results from $expand and $select query parameter. Usually the data structure is constructed by the URI parser.

Parameters:
expandSelectTree - data structure
Returns:
properties builder

callbacks

public EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder callbacks(Map<String,ODataCallback> callbacks)

selfLink

public EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder selfLink(URI selfLink)

additionalLinks

public EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder additionalLinks(Map<String,Map<String,Object>> links)
Sets additional links from this entity to other entities.

Parameters:
links - a Map where the navigation-property name is the key and a key predicate is the value - a key predicate is a Map from key-property names to their values
Returns:
properties builder

omitJsonWrapper

public EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder omitJsonWrapper(boolean omitJsonWrapper)

contentOnly

public EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder contentOnly(boolean contentOnly)

omitETag

public EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder omitETag(boolean omitETag)

fromProperties

public EntityProviderWriteProperties.ODataEntityProviderPropertiesBuilder fromProperties(EntityProviderWriteProperties properties)


Copyright © 2013-2015 The Apache Software Foundation. All Rights Reserved.