com.ibm.commerce.catalog.content.resources

Class CatalogGroupResourceManager

    • Constructor Detail

      • CatalogGroupResourceManager

        public CatalogGroupResourceManager()
    • Method Detail

      • getUniqueInstance

        public static CatalogGroupResourceManager getUniqueInstance()
        Retrieves the singleton of the resource manager.
        Returns:
        The resource manager.
      • getEntityCreationData

        public EntityBeanCreationData getEntityCreationData(java.lang.Object managedResource)
                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
        See Also:
        com.ibm.commerce.content.resources.ManagedResourceManager#getEntityCreationData(Object)
      • getManagedResourceKey

        public ManagedResourceKey getManagedResourceKey(EntityBeanCreationData ecd)
                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
        See Also:
        com.ibm.commerce.content.resources.ManagedResourceManager#getManagedResourceKey(EntityCreationData)
      • getManagedResourceKey

        public ManagedResourceKey getManagedResourceKey(java.util.Map boKeyMap)
                                                 throws java.lang.Exception
        Description copied from interface: ResourceManager
        This method returns the managed resource key.
        Specified by:
        getManagedResourceKey in interface ResourceManager
        Parameters:
        boKeyMap - A map that represents the managed resource.
        Returns:
        Returns a managed resource key
        Throws:
        java.lang.Exception - This is thrown if a problem occurs when obtaining the managed resource key for the record.
        See Also:
        com.ibm.commerce.content.resources.ManagedResourceManager#getManagedResourceKey(Map)
      • getManagedResourceKey

        public ManagedResourceKey getManagedResourceKey(java.lang.Object businessObject)
                                                 throws java.lang.Exception
        Description copied from interface: ResourceManager
        This method returns the managed resource key.
        Specified by:
        getManagedResourceKey in interface ResourceManager
        Parameters:
        businessObject - The resource to return the managed resource key of.
        Returns:
        Returns a managed resource key
        Throws:
        java.lang.Exception - This is thrown if a problem occurs when obtaining the managed resource key for the record.
        See Also:
        com.ibm.commerce.content.resources.ManagedResourceManager#getManagedResourceKey(Object)
      • handleUniqueIndexViolations

        public java.util.Map handleUniqueIndexViolations(ContentData contentData)
                                                  throws ResourceException
        This method will compare UI conflicts for resources in the workspace and will modify them based on action from configuration. This will also fix any related tables with foreign keys and tables referencing the corrected records of ths resource.
        Overrides:
        handleUniqueIndexViolations in class AbstractResourceManagerImpl
        Parameters:
        contentData - The content data of workspace/task group/task to check for UI violations.
        Returns:
        map containing key / value pairs indicating the unique index violations for specified table in the workspace/task group. The 'key' is the base table primary key and the value is the corresponding 'workspace' primary key for a conflicting UI.
        Throws:
        ResourceException - This is thrown when there is a problem performing the primary key delete/update operation.
        See Also:
        com.ibm.commerce.context.content.resources.ResourceManager#