Class InitiativeService
java.lang.Object
com.hybris.ymkt.segmentation.services.InitiativeService
- Direct Known Subclasses:
InitiativeServiceB2B
Service exposing initiatives from CUAN_INITIATIVE_SRV.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected Stringprotected Stringprotected static final Stringprotected static final org.apache.olingo.odata2.api.ep.EntityProviderReadPropertiesprotected ODataServiceprotected static final Stringprotected static final Stringprotected UserContextServiceprotected static final String[]protected static final InitiativeService.InitiativeQuery.TileFilterCategory[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetInitiative(String id) Provide theSAPInitiativeby id if found.ProvideSAPInitiatives according toInitiativeService.InitiativeQuery.getInitiatives(InitiativeService.InitiativeQuery query, String skip, String top) Provide pagedSAPInitiatives according toInitiativeService.InitiativeQuery.protected SAPInitiativemapODataEntryToSAPInitiative(org.apache.olingo.odata2.api.ep.entry.ODataEntry entry) voidsetCampaignCategoryId(String campaignCategoryId) voidsetCampaignOrderBy(String campaignOrderBy) voidsetODataService(ODataService oDataService) voidsetUserContextService(UserContextService userContextService)
-
Field Details
-
APPLICATION_JSON
- See Also:
-
INITIATIVES
- See Also:
-
NO_READ_PROPERTIES
protected static final org.apache.olingo.odata2.api.ep.EntityProviderReadProperties NO_READ_PROPERTIES -
SELECT_FIELDS
- See Also:
-
TARGET_GROUP
- See Also:
-
ZERO_STRINGS
-
ZERO_TILE_FILTER_CATEGORIES
protected static final InitiativeService.InitiativeQuery.TileFilterCategory[] ZERO_TILE_FILTER_CATEGORIES -
campaignCategoryId
-
campaignOrderBy
-
oDataService
-
userContextService
-
-
Constructor Details
-
InitiativeService
public InitiativeService()
-
-
Method Details
-
buildFilterOption
protected String buildFilterOption(InitiativeService.InitiativeQuery query) throws org.apache.olingo.odata2.api.edm.EdmException, IOException - Throws:
org.apache.olingo.odata2.api.edm.EdmExceptionIOException
-
getInitiative
Provide theSAPInitiativeby id if found.- Parameters:
id- Initiative ID- Returns:
OptionalofSAPInitiative- Throws:
IOException- If any communication errors.
-
getInitiatives
public List<SAPInitiative> getInitiatives(InitiativeService.InitiativeQuery query) throws IOException ProvideSAPInitiatives according toInitiativeService.InitiativeQuery.- Parameters:
query-InitiativeService.InitiativeQuery- Returns:
ListofSAPInitiative- Throws:
IOException- If any communication errors.
-
getInitiatives
public List<SAPInitiative> getInitiatives(InitiativeService.InitiativeQuery query, String skip, String top) throws IOException Provide pagedSAPInitiatives according toInitiativeService.InitiativeQuery.- Parameters:
query-InitiativeService.InitiativeQueryskip- number of initiatives to excludetop- number of initiatives to return- Returns:
ListofSAPInitiative- Throws:
IOException- If any communication errors.
-
getInteractionContactId
-
mapODataEntryToSAPInitiative
protected SAPInitiative mapODataEntryToSAPInitiative(org.apache.olingo.odata2.api.ep.entry.ODataEntry entry) -
setCampaignCategoryId
-
setCampaignOrderBy
-
setODataService
-
setUserContextService
-