com.ibm.commerce.marketing.content.resources

Class InitiativeResourceManager

  • java.lang.Object
    • com.ibm.commerce.context.content.resources.AbstractResourceManagerImpl
      • com.ibm.commerce.context.content.resources.AbstractEntityBeanResourceManagerImpl
        • com.ibm.commerce.marketing.content.resources.InitiativeResourceManager
  • All Implemented Interfaces:
    com.ibm.commerce.context.content.resources.postpublish.PostPublishDataProcessor, com.ibm.commerce.context.content.resources.RelatedResourceManager, com.ibm.commerce.context.content.resources.ResourceManager


    public class InitiativeResourceManager
    extends com.ibm.commerce.context.content.resources.AbstractEntityBeanResourceManagerImpl
    implements com.ibm.commerce.context.content.resources.RelatedResourceManager
    This is a manager class for Initiative resource. This resource manager can be used to create, read, update and delete Initiative in content managed environment.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
      • Fields inherited from class com.ibm.commerce.context.content.resources.AbstractResourceManagerImpl

        CONTENT_CANCEL, CONTENT_DELETE, CONTENT_NEW, CONTENT_PROMOTE, CONTENT_UPDATE, RESOURCE_COMMIT, RESOURCE_DELETE, RESOURCE_NEW, RESOURCE_ROLLBACK, RESOURCE_UPDATE, STRING_CONTENT_DELETE, STRING_CONTENT_NEW, STRING_CONTENT_UPDATE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void createRelatedManagedResources(com.ibm.commerce.component.contextservice.ActivityToken activityToken, java.lang.Object relatedResource, java.lang.Object createData)
      Performs the create of all the child resource managers that belong to the current resource manager.
      com.ibm.commerce.context.content.resources.ManagedResourceKey getManagedResourceKey(java.util.Map boKeyMap)
      Returns the business object key.
      com.ibm.commerce.context.content.resources.ManagedResourceKey getManagedResourceKey(java.lang.Object resource)
      Returns the business object key.
      java.lang.String postPublish(com.ibm.commerce.context.content.events.ContentData contentData)
      Process post-publish event.
      void processPostPublishData(java.lang.String postPublishData)
      Process the post-publish data on production server.
      void updateRelatedManagedResources(com.ibm.commerce.component.contextservice.ActivityToken activityToken, java.lang.Object relatedResource)
      Performs the update of all the child resource managers that belong to the current resource manager.
      • Methods inherited from class com.ibm.commerce.context.content.resources.AbstractResourceManagerImpl

        commit, createManagedResource, deleteManagedResource, deleteRelatedManagedResources, fetchUniqueIndexViolations, getLockData, getLockData, getManagedResourceData, getManagedResourceDataCount, getMetaData, getResourceContainer, handleForeignKeyViolations, handleUniqueIndexViolations, handleUniqueIndexViolations, isLocked, isLocked, lockManagedResource, publish, relockManagedResource, rollback, setMetaData, setResourceContainer, synchronize, unlockManagedResource, updateManagedResource
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.ibm.commerce.context.content.resources.RelatedResourceManager

        deleteRelatedManagedResources
      • Methods inherited from interface com.ibm.commerce.context.content.resources.ResourceManager

        commit, createManagedResource, deleteManagedResource, getLockData, getLockData, getManagedResourceData, getManagedResourceDataCount, getMetaData, getResourceContainer, isLocked, isLocked, lockManagedResource, publish, relockManagedResource, rollback, setMetaData, setResourceContainer, synchronize, unlockManagedResource, updateManagedResource
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • InitiativeResourceManager

        public InitiativeResourceManager()
    • Method Detail

      • createRelatedManagedResources

        public void createRelatedManagedResources(com.ibm.commerce.component.contextservice.ActivityToken activityToken,
                                                  java.lang.Object relatedResource,
                                                  java.lang.Object createData)
                                           throws com.ibm.commerce.context.content.resources.exception.ResourceException
        Performs the create of all the child resource managers that belong to the current resource manager.
        Specified by:
        createRelatedManagedResources in interface com.ibm.commerce.context.content.resources.RelatedResourceManager
        Parameters:
        activityToken - The current activity.
        relatedResource - The parent resource manager.
        createData - The original create data.
        Throws:
        com.ibm.commerce.context.content.resources.exception.ResourceException - An problem occurring when attempting to delete the child resource manager.
      • getManagedResourceKey

        public com.ibm.commerce.context.content.resources.ManagedResourceKey getManagedResourceKey(java.util.Map boKeyMap)
                                                                                            throws java.lang.Exception
        Returns the business object key.
        Specified by:
        getManagedResourceKey in interface com.ibm.commerce.context.content.resources.ResourceManager
        Parameters:
        boKeyMap - A map that represents the business object.
        Returns:
        Returns a business object key.
        Throws:
        java.lang.Exception - - Problem when resolving the managed resource key.
      • getManagedResourceKey

        public com.ibm.commerce.context.content.resources.ManagedResourceKey getManagedResourceKey(java.lang.Object resource)
                                                                                            throws java.lang.Exception
        Returns the business object key.
        Specified by:
        getManagedResourceKey in interface com.ibm.commerce.context.content.resources.ResourceManager
        Parameters:
        resource - The business object access bean.
        Returns:
        Returns a business object key.
        Throws:
        java.lang.Exception - - Problem when resolving the managed resource key.
      • postPublish

        public java.lang.String postPublish(com.ibm.commerce.context.content.events.ContentData contentData)
                                     throws com.ibm.commerce.context.content.resources.exception.ResourceException
        Process post-publish event.
        Specified by:
        postPublish in interface com.ibm.commerce.context.content.resources.ResourceManager
        Overrides:
        postPublish in class com.ibm.commerce.context.content.resources.AbstractResourceManagerImpl
        Parameters:
        contentData - The content data.
        Returns:
        post-publish data to be propagated to production server.
        Throws:
        com.ibm.commerce.context.content.resources.exception.ResourceException - A problem occurs in the post-publish event processing.
      • processPostPublishData

        public void processPostPublishData(java.lang.String postPublishData)
                                    throws com.ibm.commerce.exception.ECException
        Process the post-publish data on production server.
        Specified by:
        processPostPublishData in interface com.ibm.commerce.context.content.resources.postpublish.PostPublishDataProcessor
        Overrides:
        processPostPublishData in class com.ibm.commerce.context.content.resources.AbstractResourceManagerImpl
        Parameters:
        postPublishData - the post-publish data to be processed.
        Throws:
        com.ibm.commerce.exception.ECException - an exception may be thrown when processing the data.
      • updateRelatedManagedResources

        public void updateRelatedManagedResources(com.ibm.commerce.component.contextservice.ActivityToken activityToken,
                                                  java.lang.Object relatedResource)
                                           throws com.ibm.commerce.context.content.resources.exception.ResourceException
        Performs the update of all the child resource managers that belong to the current resource manager.
        Specified by:
        updateRelatedManagedResources in interface com.ibm.commerce.context.content.resources.RelatedResourceManager
        Parameters:
        activityToken - The current activity.
        relatedResource - The parent resource manager.
        Throws:
        com.ibm.commerce.context.content.resources.exception.ResourceException - An problem occurring when attempting to delete the child resource manager.