Package com.gooddata.sdk.service.lcm
Class LcmService
- java.lang.Object
-
- com.gooddata.sdk.service.AbstractService
-
- com.gooddata.sdk.service.lcm.LcmService
-
public class LcmService extends AbstractService
Service, which provides access to lifecycle management objects.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.gooddata.sdk.service.AbstractService
AbstractService.OutputStreamResponseExtractor
-
-
Field Summary
Fields Modifier and Type Field Description static org.springframework.web.util.UriTemplateLCM_ENTITIES_TEMPLATE-
Fields inherited from class com.gooddata.sdk.service.AbstractService
mapper, restTemplate
-
-
Constructor Summary
Constructors Constructor Description LcmService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings)Constructs service for GoodData Life Cycle Management.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.gooddata.sdk.common.collections.PageBrowser<com.gooddata.sdk.model.lcm.LcmEntity>listLcmEntities(com.gooddata.sdk.model.account.Account account)Lists allLcmEntitiesfor givenAccount.com.gooddata.sdk.common.collections.PageBrowser<com.gooddata.sdk.model.lcm.LcmEntity>listLcmEntities(com.gooddata.sdk.model.account.Account account, com.gooddata.sdk.common.collections.PageRequest startPage)Lists allLcmEntitiesfor givenAccount.com.gooddata.sdk.common.collections.PageBrowser<com.gooddata.sdk.model.lcm.LcmEntity>listLcmEntities(com.gooddata.sdk.model.account.Account account, com.gooddata.sdk.model.lcm.LcmEntityFilter filter)ListsLcmEntitiesfor givenAccountfiltered according givenLcmEntityFilter.com.gooddata.sdk.common.collections.PageBrowser<com.gooddata.sdk.model.lcm.LcmEntity>listLcmEntities(com.gooddata.sdk.model.account.Account account, com.gooddata.sdk.model.lcm.LcmEntityFilter filter, com.gooddata.sdk.common.collections.PageRequest startPage)ListsLcmEntitiesfor givenAccountfiltered according givenLcmEntityFilter.-
Methods inherited from class com.gooddata.sdk.service.AbstractService
extractData
-
-
-
-
Constructor Detail
-
LcmService
public LcmService(org.springframework.web.client.RestTemplate restTemplate, GoodDataSettings settings)Constructs service for GoodData Life Cycle Management.- Parameters:
restTemplate- RESTful HTTP Spring templatesettings- settings
-
-
Method Detail
-
listLcmEntities
public com.gooddata.sdk.common.collections.PageBrowser<com.gooddata.sdk.model.lcm.LcmEntity> listLcmEntities(com.gooddata.sdk.model.account.Account account)
Lists allLcmEntitiesfor givenAccount. Returns empty list in case there is noLcmEntity. Returns only first page if there's more instances than page limit. UsePageBrowser.allItemsStream()()} to iterate over all pages, orPageBrowser.getAllItems()()} to load the entire list.- Parameters:
account- account to list LCM entities for- Returns:
PageBrowserfirst page of list of lcm entities or empty list
-
listLcmEntities
public com.gooddata.sdk.common.collections.PageBrowser<com.gooddata.sdk.model.lcm.LcmEntity> listLcmEntities(com.gooddata.sdk.model.account.Account account, com.gooddata.sdk.model.lcm.LcmEntityFilter filter)ListsLcmEntitiesfor givenAccountfiltered according givenLcmEntityFilter. Returns empty list in case there is noLcmEntity. Returns only first page if there's more instances than page limit. UsePageBrowser.allItemsStream()()} to iterate over all pages, orPageBrowser.getAllItems()to load the entire list.- Parameters:
account- account to list LCM entities forfilter- filter of the entities- Returns:
PageBrowserfirst page of list of lcm entitiesor empty list
-
listLcmEntities
public com.gooddata.sdk.common.collections.PageBrowser<com.gooddata.sdk.model.lcm.LcmEntity> listLcmEntities(com.gooddata.sdk.model.account.Account account, com.gooddata.sdk.common.collections.PageRequest startPage)Lists allLcmEntitiesfor givenAccount. Returns empty list in case there is noLcmEntity. Returns requested page (by page limit and offset). UselistLcmEntities(Account)to get first page with default setting.- Parameters:
account- account to list LCM entities forstartPage- page to be listed- Returns:
PageBrowserrequested page of list of lcm entities or empty list
-
listLcmEntities
public com.gooddata.sdk.common.collections.PageBrowser<com.gooddata.sdk.model.lcm.LcmEntity> listLcmEntities(com.gooddata.sdk.model.account.Account account, com.gooddata.sdk.model.lcm.LcmEntityFilter filter, com.gooddata.sdk.common.collections.PageRequest startPage)ListsLcmEntitiesfor givenAccountfiltered according givenLcmEntityFilter. Returns empty list in case there is noLcmEntity. Returns requested page (by page limit and offset). UselistLcmEntities(Account)to get first page with default setting.- Parameters:
account- account to list LCM entities forfilter- filter of the entitiesstartPage- page to be listed- Returns:
PageBrowserrequested page of list of lcm entities or empty list
-
-