public class MarketingHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright field.
|
Constructor and Description |
---|
MarketingHelper() |
Modifier and Type | Method and Description |
---|---|
static void | activateActivity(java.lang.String activityId)
This method activates a Marketing Activity.
|
static void | addEMarketingSpotToActivity(java.lang.String activityId, java.lang.String spotId)
This methods adds an e-Marketing Spot to the View E-Marketing Spot element in an activity.
|
static boolean | checkForExistingMarketingContentDescription(java.lang.String contentId, java.lang.Integer langId)
Checks if a Marketing Content Description already exists for the content's language.
|
static java.lang.String | createEMarketingSpotNameForWidget(java.lang.String widgetIdentifier, java.lang.String widgetId)
Returns the generated E-Marketing Spot name of a widget according to widget identifier and widget unique id.
|
static java.lang.String | createMarketingContent(java.lang.String name, java.lang.String text, java.lang.String url, java.lang.Integer storeId, java.lang.Integer langId, boolean displayable)
This method creates a new marketing content.
|
static void | createMarketingContentDescription(java.lang.String contentId, java.lang.String text, java.lang.Integer langId)
This method creates a new Marketing Content Description for the specified content and language.
|
static java.lang.String | createMarketingContentImageMapArea(java.lang.String contentId, java.lang.Integer langId, AreaShapeEnumerationType shape, java.lang.String coordinates, java.lang.String url, java.lang.String title, double sequence, java.util.Map<java.lang.String,java.lang.String> otherProperties)
This method creates a new image map area for the specified marketing content.
|
static java.lang.String | createMarketingContentNameForWidget(java.lang.String widgetId)
Returns the generated marketing content name for a widget according to widget identifier and widget unique id.
|
static java.lang.String | createMarketingContentWithImageMap(java.lang.String name, java.lang.Integer storeId, java.lang.Integer langId, boolean displayable)
This method creates a new marketing content with image map.
|
static java.lang.String | createMarketingSpot(java.lang.String name, java.lang.Integer storeId, boolean displayable)
This method creates a new e-Marketing spot.
|
static java.lang.String | createMarketingSpotDefaultContent(java.lang.String spotId, java.lang.String contentType, java.lang.String contentId, java.lang.String sequence, java.lang.Integer storeId)
This method creates a new marketing default content.
|
static java.lang.String | createMarketingSpotDefaultTitle(java.lang.String spotId, java.lang.String contentId, java.lang.Integer storeId)
This method creates a new marketing default title.
|
static void | deactivateActivity(java.lang.String activityId)
This method deactivates a Marketing Activity.
|
static void | deleteActivity(java.util.List<java.lang.String> activityIdList)
This method deletes a list of existing marketing activities.
|
static void | deleteAllMarketingContentForEspot(java.lang.String spotId)
This method deletes all MarketingContent associated with an Espot.
|
static void | deleteMarketingContent(java.lang.String contentId)
This method deletes an existing marketing content.
|
static void | deleteMarketingContentImageMapArea(java.lang.String contentId, java.lang.String imageMapAreaId)
This method delete an existing image map area for the specified marketing content.
|
static void | deleteMarketingSpot(java.util.List<java.lang.String> emspotIdList)
This method deletes a list of existing e-Marketing spots.
|
static void | deleteMarketingSpot(java.lang.String emspotId)
This method deletes an existing e-Marketing spot.
|
static void | deleteMarketingSpotDefaultContent(java.lang.String dmemspotdef_id, java.lang.String spotId, java.lang.String contentId, java.lang.Integer storeId)
This method deletes marketing default content.
|
static java.util.List<ActivityType> | getActivityForEMarketingSpot(java.lang.String spotId)
This methods gets the activities for a given e-marketing spot.
|
static java.lang.String | getActivityForEMarketingSpotInAllRelatedStores(java.lang.String spotId, java.lang.Integer storeId)
This methods gets the first found activity for an e-marketing spot.
|
static MarketingContentType | getMarketingContent(java.lang.String contentId, java.lang.Integer[] langIds)
This method returns the marketing content noun according to the specified content id.
|
static java.lang.String | getMarketingContentText(java.lang.String contentId, java.lang.String languageId)
This method returns the text of the marketing content according to the specified content id and language id.
|
protected static MarketingFacadeClient | getMarketingFacadeClient()
Returns the marketing facade client.
|
static java.lang.String | getMarketingSpotDefaultContent(java.lang.String spotId, java.lang.Integer storeId)
This method returns the first default content id of a e-Marketing spot in the specified store.
|
static java.util.List<java.lang.String> | getMarketingSpotDefaultContents(java.lang.String spotId, java.lang.Integer storeId)
This method returns list of default content id of a e-Marketing spot in the specified store.
|
static java.lang.String | getMarketingSpotDefaultTitle(java.lang.String spotId, java.lang.Integer storeId)
This method returns the default title of the marketing spot in specified store.
|
static void | removeActivityForEMarketingSpot(java.util.List<ActivityType> activities, java.lang.String eSpotId)
This method will remove a list of activities from an e-Marketing spot.
|
static void | removeEMarketingSpotFromActivity(java.lang.String activityId, java.lang.String spotId)
This methods removes an e-Marketing Spot from the View E-Marketing Spot element in an activity.
|
static void | updateMarketingContent(java.lang.String contentId, java.lang.String text, java.lang.String url, java.lang.Integer langId)
This method updates an existing marketing content.
|
static java.lang.String | updateMarketingContentImageMapArea(java.lang.String contentId, java.lang.String imageMapAreaId, java.lang.Integer langId, AreaShapeEnumerationType shape, java.lang.String coordinates, java.lang.String url, java.lang.String title, double sequence, java.util.Map<java.lang.String,java.lang.String> otherProperties)
This method updates an existing image map area for the specified marketing content.
|
static java.lang.String | updateMarketingSpotDefaultContent(java.lang.String dmemspotdef_id, java.lang.String spotId, java.lang.String contentType, java.lang.String contentId, java.lang.String sequence, java.lang.Integer storeId)
This method updates existing marketing default content.
|
public static final java.lang.String COPYRIGHT
protected static MarketingFacadeClient getMarketingFacadeClient()
public static java.lang.String createEMarketingSpotNameForWidget(java.lang.String widgetIdentifier, java.lang.String widgetId)
public static java.lang.String createMarketingContentNameForWidget(java.lang.String widgetId)
public static java.lang.String createMarketingSpot(java.lang.String name, java.lang.Integer storeId, boolean displayable) throws MarketingSpotException
public static void deleteMarketingSpot(java.lang.String emspotId) throws MarketingSpotException
public static void deleteMarketingSpot(java.util.List<java.lang.String> emspotIdList) throws MarketingSpotException
public static void activateActivity(java.lang.String activityId) throws ActivityException
public static void deactivateActivity(java.lang.String activityId) throws ActivityException
public static java.lang.String createMarketingContent(java.lang.String name, java.lang.String text, java.lang.String url, java.lang.Integer storeId, java.lang.Integer langId, boolean displayable) throws MarketingContentException
public static void deleteMarketingContent(java.lang.String contentId) throws MarketingContentException
public static java.lang.String createMarketingContentWithImageMap(java.lang.String name, java.lang.Integer storeId, java.lang.Integer langId, boolean displayable) throws MarketingContentException
public static java.lang.String createMarketingContentImageMapArea(java.lang.String contentId, java.lang.Integer langId, AreaShapeEnumerationType shape, java.lang.String coordinates, java.lang.String url, java.lang.String title, double sequence, java.util.Map<java.lang.String,java.lang.String> otherProperties) throws MarketingContentException
public static java.lang.String updateMarketingContentImageMapArea(java.lang.String contentId, java.lang.String imageMapAreaId, java.lang.Integer langId, AreaShapeEnumerationType shape, java.lang.String coordinates, java.lang.String url, java.lang.String title, double sequence, java.util.Map<java.lang.String,java.lang.String> otherProperties) throws MarketingContentException
public static void deleteMarketingContentImageMapArea(java.lang.String contentId, java.lang.String imageMapAreaId) throws MarketingContentException
public static void updateMarketingContent(java.lang.String contentId, java.lang.String text, java.lang.String url, java.lang.Integer langId) throws MarketingContentException
public static java.lang.String createMarketingSpotDefaultContent(java.lang.String spotId, java.lang.String contentType, java.lang.String contentId, java.lang.String sequence, java.lang.Integer storeId) throws MarketingSpotException
public static java.lang.String updateMarketingSpotDefaultContent(java.lang.String dmemspotdef_id, java.lang.String spotId, java.lang.String contentType, java.lang.String contentId, java.lang.String sequence, java.lang.Integer storeId) throws MarketingSpotException
public static void deleteMarketingSpotDefaultContent(java.lang.String dmemspotdef_id, java.lang.String spotId, java.lang.String contentId, java.lang.Integer storeId) throws MarketingSpotException
public static java.lang.String createMarketingSpotDefaultTitle(java.lang.String spotId, java.lang.String contentId, java.lang.Integer storeId) throws MarketingSpotException
public static java.lang.String getMarketingSpotDefaultTitle(java.lang.String spotId, java.lang.Integer storeId)
public static java.util.List<java.lang.String> getMarketingSpotDefaultContents(java.lang.String spotId, java.lang.Integer storeId)
public static java.lang.String getMarketingSpotDefaultContent(java.lang.String spotId, java.lang.Integer storeId)
public static java.lang.String getMarketingContentText(java.lang.String contentId, java.lang.String languageId)
public static MarketingContentType getMarketingContent(java.lang.String contentId, java.lang.Integer[] langIds)
public static void deleteActivity(java.util.List<java.lang.String> activityIdList) throws ActivityException
public static void deleteAllMarketingContentForEspot(java.lang.String spotId) throws MarketingContentException
public static void createMarketingContentDescription(java.lang.String contentId, java.lang.String text, java.lang.Integer langId) throws MarketingContentException
public static boolean checkForExistingMarketingContentDescription(java.lang.String contentId, java.lang.Integer langId) throws DataMediatorException, java.lang.NumberFormatException
public static void addEMarketingSpotToActivity(java.lang.String activityId, java.lang.String spotId) throws ActivityException
public static void removeEMarketingSpotFromActivity(java.lang.String activityId, java.lang.String spotId) throws ActivityException
public static java.util.List<ActivityType> getActivityForEMarketingSpot(java.lang.String spotId) throws ActivityException
This methods gets the activities for a given e-marketing spot.
If there is more than one, only the first activity ID will be returned.
public static void removeActivityForEMarketingSpot(java.util.List<ActivityType> activities, java.lang.String eSpotId) throws ActivityException
This method will remove a list of activities from an e-Marketing spot.
public static java.lang.String getActivityForEMarketingSpotInAllRelatedStores(java.lang.String spotId, java.lang.Integer storeId)
This methods gets the first found activity for an e-marketing spot. This method searches all children and parent stores of the passed in storeId.
If there is more than one, only the first activity ID will be returned.