com.ibm.commerce.context.content.resources.file

Class ManagedFileContainer

    • Field Detail

      • COPYRIGHT

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

        public static final java.lang.String MANAGED_FILE_RESOURCE_MANAGER_NAME
        This is the resource manager name for an attachment resource manager.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ManagedFileContainer

        public ManagedFileContainer()
        This method creates the attachment container.
    • Method Detail

      • singleton

        public static ResourceContainer singleton()
        This method returns the configured attachment container.
        Returns:
        The attachment container.
      • commit

        public void commit(ContentData contentData)
                    throws ResourceException
        This method promotes the content managed resource found in the workspace to the base edition. This method calls the executeContentManagedFilesEARUpdate after the changes have been promoted to the base.
        Specified by:
        commit in interface ResourceContainer
        Overrides:
        commit in class AbstractResourceContainerImpl
        Parameters:
        contentData - The content data to commit.
        Throws:
        ResourceException - This is thrown when there is a problem with the promote. The problem is most likely database-related and the exception will be wrapped in a ResourceException.