Package com.microstrategy.web.objects
Class WebRecommendationProviderBuilder
- java.lang.Object
-
- com.microstrategy.web.objects.WebRecommendationProviderBuilder
-
public class WebRecommendationProviderBuilder extends java.lang.Object
Build a WebRecommendationProvider using the builder pattern For example you can do WebRecommendationProvider webRecommendationProvider = new WebRecommendationProviderBuilder() .session(iServerSession) .sourceObjectId(OBJECT_ID) .sourceObjectProjectId(PROJECT_ID) .blockBegin(0) .blockCount(10) .build(); Note that build will throw a meaningful WebObjectsException if you did not set a field properly
-
-
Constructor Summary
Constructors Constructor Description WebRecommendationProviderBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebRecommendationProviderBuilder
blockBegin(int blockBegin)
WebRecommendationProviderBuilder
blockCount(int blockCount)
WebRecommendationProvider
build()
Build the WebRecommendationProvider as a immutable objectWebRecommendationProviderBuilder
certifiedStatus(EnumDSSXMLQuickSearchCertifiedStatus certifiedStatus)
WebRecommendationProviderBuilder
session(WebIServerSession session)
WebRecommendationProviderBuilder
sourceObjectId(java.lang.String sourceObjectId)
-
-
-
Method Detail
-
session
public WebRecommendationProviderBuilder session(WebIServerSession session)
-
sourceObjectId
public WebRecommendationProviderBuilder sourceObjectId(java.lang.String sourceObjectId)
-
blockBegin
public WebRecommendationProviderBuilder blockBegin(int blockBegin)
-
blockCount
public WebRecommendationProviderBuilder blockCount(int blockCount)
-
certifiedStatus
public WebRecommendationProviderBuilder certifiedStatus(EnumDSSXMLQuickSearchCertifiedStatus certifiedStatus)
-
build
public WebRecommendationProvider build() throws WebObjectsException
Build the WebRecommendationProvider as a immutable object- Returns:
- the WebRecommendationProvider object created
- Throws:
WebObjectsException
- is there is a field of the object previously not set up properly
-
-