public abstract class AbstractPageLayoutActivityHelper
extends java.lang.Object
This class provides the support for the following:
getPageLayoutActivityTemplate(String, String)
for more details.getPageLayoutActivity(List)
for more details.getPageLayoutActivity(AbstractPageLayoutActivityESpot, String, GetType, ShowType)
for more details.saveESpots(Set)
for more details.savePageLayoutActivity(List)
for more details.Constructor and Description |
---|
AbstractPageLayoutActivityHelper()
Constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
void |
deActivateActivity(java.util.List<java.lang.String> activityIdList)
De-activates Activities for the given list of Activity Id's.
|
void |
deleteActivity(java.util.List<java.lang.String> activityIdList)
Deletes Activities for the given list of Activity Id's.
|
java.util.Map<ESpotIdentifier,java.lang.String> |
fetchESpotIds(java.util.Set<ESpotIdentifier> espotIdentifiers)
This method fetches ESpot Ids for the set of ESpot identifier that are passed to this method.
|
java.util.List<java.lang.String> |
fetchESpotIds(java.lang.String espotName)
This method fetches ESpot Ids for given ESpot name.
|
java.util.Map<ESpotIdentifier,java.lang.String> |
saveESpots(java.util.Set<ESpotIdentifier> espotIdentifiers)
Saves ESpots for the given set of ESpot Identifiers.
|
void |
setFetchActivityByCampaignElementAccessProfile(java.lang.String accessProfile)
Sets the access profile for fetching Activity by a Campaign Element.
|
void |
setFetchActivityByIdAccessProfile(java.lang.String accessProfile)
Sets the access profile for fetching Activities by Activity Id's.
|
void |
setFetchActivityElementsByIdAccessProfile(java.lang.String accessProfile)
Sets the access profile for fetching the Campaign Elements of an Activity by Activity Id.
|
void |
setFetchActivityTemplateByNameAccessProfile(java.lang.String accessProfile)
Sets the access profile for fetching Activity Template by Name.
|
void |
setFetchESpotAccessProfile(java.lang.String accessProfile)
Sets the access profile for fetching an ESpot.
|
public AbstractPageLayoutActivityHelper()
It initializes the following:
public final void setFetchActivityTemplateByNameAccessProfile(java.lang.String accessProfile)
accessProfile
- the access profile to set.public final void setFetchActivityByIdAccessProfile(java.lang.String accessProfile)
accessProfile
- the access profile to set.public final void setFetchActivityByCampaignElementAccessProfile(java.lang.String accessProfile)
accessProfile
- the access profile to set.public final void setFetchActivityElementsByIdAccessProfile(java.lang.String accessProfile)
accessProfile
- the access profile to set.public final void setFetchESpotAccessProfile(java.lang.String accessProfile)
accessProfile
- the access profile to set.public java.util.Map<ESpotIdentifier,java.lang.String> fetchESpotIds(java.util.Set<ESpotIdentifier> espotIdentifiers) throws MarketingSpotException
espotIdentifiers
- the given set of ESpot identifiers for which the ESpots need to be fetched.MarketingSpotException
- if any exception occurs while fetching the ESpot Ids.public java.util.List<java.lang.String> fetchESpotIds(java.lang.String espotName) throws MarketingSpotException
espotName
- the given ESpot name.MarketingSpotException
- if any exception occurs while fetching the ESpot Id.public final void deActivateActivity(java.util.List<java.lang.String> activityIdList) throws PageLayoutApplicationException
activityIdList
- the given list of Activity Id's.PageLayoutApplicationException
- if any exception occurs while de-activating the Activities.public final void deleteActivity(java.util.List<java.lang.String> activityIdList) throws PageLayoutApplicationException
activityIdList
- the given list of Activity Id's.PageLayoutApplicationException
- if any exception occurs while deleting the Activities.public final java.util.Map<ESpotIdentifier,java.lang.String> saveESpots(java.util.Set<ESpotIdentifier> espotIdentifiers) throws PageLayoutApplicationException
This method creates ESpots for non-existing ESpots. It returns the ESpot Ids for all the ESpots specified in the given set of ESpot Identifiers.
Note: ESpots set in Page Layout Activities are automatically saved and hence this method is not required to be invoked explicitly. You can use this method in scenarios where you are not using Page Layout Activities but want to directly save ESpots or retrieve the ESpot Ids.
espotIdentifiers
- The given set of ESpot Identifiers.PageLayoutApplicationException
- If any exception occurs while fetching or creating the ESpots.