com.ibm.commerce.pagelayout.facade.server.helpers.activity

Class AbstractPageLayoutActivityHelper

  • java.lang.Object
    • com.ibm.commerce.pagelayout.facade.server.helpers.activity.AbstractPageLayoutActivityHelper
    • Constructor Detail

      • AbstractPageLayoutActivityHelper

        public AbstractPageLayoutActivityHelper()
        Constructor for this class.

        It initializes the following:

        • The access profile for fetching Activity by Activity Name.
        • The access profile for fetching Activities by Activity Id's.
        • The access profile for fetching Activity by a Campaign Element.
        • The access profile for fetching the Campaign Elements of an Activity by Activity Id.
        • The access profile for fetching an ESpot.
        • The Marketing Facade Client instance used by this class.
        • The Page Location Mediation Helper instance used by this class.

    • Method Detail

      • setFetchActivityTemplateByNameAccessProfile

        public final void setFetchActivityTemplateByNameAccessProfile(java.lang.String accessProfile)
        Sets the access profile for fetching Activity Template by Name.
        Parameters:
        accessProfile - the access profile to set.
      • setFetchActivityByIdAccessProfile

        public final void setFetchActivityByIdAccessProfile(java.lang.String accessProfile)
        Sets the access profile for fetching Activities by Activity Id's.
        Parameters:
        accessProfile - the access profile to set.
      • setFetchActivityByCampaignElementAccessProfile

        public final void setFetchActivityByCampaignElementAccessProfile(java.lang.String accessProfile)
        Sets the access profile for fetching Activity by a Campaign Element.
        Parameters:
        accessProfile - the access profile to set.
      • setFetchActivityElementsByIdAccessProfile

        public final void setFetchActivityElementsByIdAccessProfile(java.lang.String accessProfile)
        Sets the access profile for fetching the Campaign Elements of an Activity by Activity Id.
        Parameters:
        accessProfile - the access profile to set.
      • setFetchESpotAccessProfile

        public final void setFetchESpotAccessProfile(java.lang.String accessProfile)
        Sets the access profile for fetching an ESpot.
        Parameters:
        accessProfile - the access profile to set.
      • fetchESpotIds

        public java.util.Map<ESpotIdentifier,java.lang.String> fetchESpotIds(java.util.Set<ESpotIdentifier> espotIdentifiers)
                                                                      throws MarketingSpotException
        This method fetches ESpot Ids for the set of ESpot identifier that are passed to this method. This method delegates the operation to the Marketing Component through Web Service call using the Marketing Facade Client instance. This method returns a Map of fetched ESpot Ids using the ESpot identifier as the key. If an ESpot for a given espotIdentifier does not exist, then the espotIdentifier is discarded and is not returned in the map.
        Parameters:
        espotIdentifiers - the given set of ESpot identifiers for which the ESpots need to be fetched.
        Returns:
        a Map of fetched ESpot Ids using the ESpot identifier as the key.
        Throws:
        MarketingSpotException - if any exception occurs while fetching the ESpot Ids.
      • fetchESpotIds

        public java.util.List<java.lang.String> fetchESpotIds(java.lang.String espotName)
                                                       throws MarketingSpotException
        This method fetches ESpot Ids for given ESpot name. This method delegates the operation to the Marketing Component through Web Service call using the Marketing Facade Client instance. This method returns the List of ESpot Ids. If the ESpot for the given ESpot name does not exist, null is returned.
        Parameters:
        espotName - the given ESpot name.
        Returns:
        the List of ESpot Ids. If the ESpot for the given ESpot name does not exist, null is returned.
        Throws:
        MarketingSpotException - if any exception occurs while fetching the ESpot Id.
      • deActivateActivity

        public final void deActivateActivity(java.util.List<java.lang.String> activityIdList)
                                      throws PageLayoutApplicationException
        De-activates Activities for the given list of Activity Id's. This method delegates the operation to the Marketing Component through Web Service call using the Marketing Facade Client instance.
        Parameters:
        activityIdList - the given list of Activity Id's.
        Throws:
        PageLayoutApplicationException - if any exception occurs while de-activating the Activities.
      • deleteActivity

        public final void deleteActivity(java.util.List<java.lang.String> activityIdList)
                                  throws PageLayoutApplicationException
        Deletes Activities for the given list of Activity Id's. This method delegates the operation to the Marketing Component through Web Service call using the Marketing Facade Client instance.
        Parameters:
        activityIdList - the given list of Activity Id's.
        Throws:
        PageLayoutApplicationException - if any exception occurs while deleting the Activities.
      • saveESpots

        public final java.util.Map<ESpotIdentifier,java.lang.String> saveESpots(java.util.Set<ESpotIdentifier> espotIdentifiers)
                                                                         throws PageLayoutApplicationException
        Saves ESpots for the given set of ESpot Identifiers.

        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.

        Parameters:
        espotIdentifiers - The given set of ESpot Identifiers.
        Returns:
        A Map of ESpots Ids with the given ESpot Identifier as the key.
        Throws:
        PageLayoutApplicationException - If any exception occurs while fetching or creating the ESpots.