Class DefaultCMSItemDeepCloningService

    • Constructor Detail

      • DefaultCMSItemDeepCloningService

        public DefaultCMSItemDeepCloningService()
    • Method Detail

      • generateCloneComponentName

        public java.lang.String generateCloneComponentName​(java.lang.String originalComponentName)
        Description copied from interface: CMSItemDeepCloningService
        Creates a new name to be used on a cloned component to avoid clashing with the original one. This method takes the original name, removes everything after the last space, and adds a generated number at the end. Examples:
        • Input: component1 Output: component1 123
        • Input: component1 123 Output: component1 456
        • Input: this is a component Output: this is a 789
        Specified by:
        generateCloneComponentName in interface CMSItemDeepCloningService
        Parameters:
        originalComponentName - - the original name to use as a base for the clone name.
        Returns:
        the name to use for the cloned component
      • setCmsItemModelCloneCreator

        public void setCmsItemModelCloneCreator​(CMSItemModelCloneCreator cmsItemModelCloneCreator)