Class InitiativeService
- java.lang.Object
-
- com.hybris.ymkt.segmentation.services.InitiativeService
-
- Direct Known Subclasses:
InitiativeServiceB2B
public class InitiativeService extends java.lang.ObjectService exposing initiatives from CUAN_INITIATIVE_SRV.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInitiativeService.InitiativeQuery
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringAPPLICATION_JSONprotected java.lang.StringcampaignCategoryIdprotected java.lang.StringcampaignOrderByprotected static java.lang.StringINITIATIVESprotected static org.apache.olingo.odata2.api.ep.EntityProviderReadPropertiesNO_READ_PROPERTIESprotected ODataServiceoDataServiceprotected static java.lang.StringSELECT_FIELDSprotected static java.lang.StringTARGET_GROUPprotected UserContextServiceuserContextServiceprotected static java.lang.String[]ZERO_STRINGSprotected static InitiativeService.InitiativeQuery.TileFilterCategory[]ZERO_TILE_FILTER_CATEGORIES
-
Constructor Summary
Constructors Constructor Description InitiativeService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringbuildFilterOption(InitiativeService.InitiativeQuery query)java.util.Optional<SAPInitiative>getInitiative(java.lang.String id)Provide theSAPInitiativeby id if found.java.util.List<SAPInitiative>getInitiatives(InitiativeService.InitiativeQuery query)ProvideSAPInitiatives according toInitiativeService.InitiativeQuery.java.util.List<SAPInitiative>getInitiatives(InitiativeService.InitiativeQuery query, java.lang.String skip, java.lang.String top)Provide pagedSAPInitiatives according toInitiativeService.InitiativeQuery.java.lang.StringgetInteractionContactId()protected SAPInitiativemapODataEntryToSAPInitiative(org.apache.olingo.odata2.api.ep.entry.ODataEntry entry)voidsetCampaignCategoryId(java.lang.String campaignCategoryId)voidsetCampaignOrderBy(java.lang.String campaignOrderBy)voidsetODataService(ODataService oDataService)voidsetUserContextService(UserContextService userContextService)
-
-
-
Field Detail
-
APPLICATION_JSON
protected static final java.lang.String APPLICATION_JSON
- See Also:
- Constant Field Values
-
INITIATIVES
protected static final java.lang.String INITIATIVES
- See Also:
- Constant Field Values
-
NO_READ_PROPERTIES
protected static final org.apache.olingo.odata2.api.ep.EntityProviderReadProperties NO_READ_PROPERTIES
-
SELECT_FIELDS
protected static final java.lang.String SELECT_FIELDS
- See Also:
- Constant Field Values
-
TARGET_GROUP
protected static final java.lang.String TARGET_GROUP
- See Also:
- Constant Field Values
-
ZERO_STRINGS
protected static final java.lang.String[] ZERO_STRINGS
-
ZERO_TILE_FILTER_CATEGORIES
protected static final InitiativeService.InitiativeQuery.TileFilterCategory[] ZERO_TILE_FILTER_CATEGORIES
-
campaignCategoryId
protected java.lang.String campaignCategoryId
-
campaignOrderBy
protected java.lang.String campaignOrderBy
-
oDataService
protected ODataService oDataService
-
userContextService
protected UserContextService userContextService
-
-
Method Detail
-
buildFilterOption
protected java.lang.String buildFilterOption(InitiativeService.InitiativeQuery query) throws org.apache.olingo.odata2.api.edm.EdmException, java.io.IOException
- Throws:
org.apache.olingo.odata2.api.edm.EdmExceptionjava.io.IOException
-
getInitiative
public java.util.Optional<SAPInitiative> getInitiative(java.lang.String id) throws java.io.IOException
Provide theSAPInitiativeby id if found.- Parameters:
id- Initiative ID- Returns:
OptionalofSAPInitiative- Throws:
java.io.IOException- If any communication errors.
-
getInitiatives
public java.util.List<SAPInitiative> getInitiatives(InitiativeService.InitiativeQuery query) throws java.io.IOException
ProvideSAPInitiatives according toInitiativeService.InitiativeQuery.- Parameters:
query-InitiativeService.InitiativeQuery- Returns:
ListofSAPInitiative- Throws:
java.io.IOException- If any communication errors.
-
getInitiatives
public java.util.List<SAPInitiative> getInitiatives(InitiativeService.InitiativeQuery query, java.lang.String skip, java.lang.String top) throws java.io.IOException
Provide pagedSAPInitiatives according toInitiativeService.InitiativeQuery.- Parameters:
query-InitiativeService.InitiativeQueryskip- number of initiatives to excludetop- number of initiatives to return- Returns:
ListofSAPInitiative- Throws:
java.io.IOException- If any communication errors.
-
getInteractionContactId
public java.lang.String getInteractionContactId()
-
mapODataEntryToSAPInitiative
protected SAPInitiative mapODataEntryToSAPInitiative(org.apache.olingo.odata2.api.ep.entry.ODataEntry entry)
-
setCampaignCategoryId
public void setCampaignCategoryId(java.lang.String campaignCategoryId)
-
setCampaignOrderBy
public void setCampaignOrderBy(java.lang.String campaignOrderBy)
-
setODataService
public void setODataService(ODataService oDataService)
-
setUserContextService
public void setUserContextService(UserContextService userContextService)
-
-