Class DefaultPlatformCloneStrategy

  • All Implemented Interfaces:
    com.hybris.cockpitng.dataaccess.facades.clone.CloneStrategy, org.springframework.core.Ordered

    public class DefaultPlatformCloneStrategy
    extends java.lang.Object
    implements com.hybris.cockpitng.dataaccess.facades.clone.CloneStrategy
    Default implementation of CloneStrategy. Can handle all objects that parent is ItemModel and are not new.
    !!!! Be aware of using this class. Some unexpected result may appear. If you really want this see how relation 'partOf' == true behave. For example product variant, tax rows, price rows and few more.
    • Constructor Detail

      • DefaultPlatformCloneStrategy

        public DefaultPlatformCloneStrategy()
    • Method Detail

      • canHandle

        public <T> boolean canHandle​(T objectToClone)
        Specified by:
        canHandle in interface com.hybris.cockpitng.dataaccess.facades.clone.CloneStrategy
      • clone

        public <T> T clone​(T objectToClone)
        Specified by:
        clone in interface com.hybris.cockpitng.dataaccess.facades.clone.CloneStrategy
      • getOrder

        public int getOrder()
        Specified by:
        getOrder in interface org.springframework.core.Ordered
        Returns:
        Integer.MAX_VALUE / 2
      • setModelService

        public void setModelService​(ModelService modelService)
      • setTypeService

        public void setTypeService​(TypeService typeService)
      • getTypeFacade

        public com.hybris.cockpitng.dataaccess.facades.type.TypeFacade getTypeFacade()
      • setTypeFacade

        public void setTypeFacade​(com.hybris.cockpitng.dataaccess.facades.type.TypeFacade typeFacade)
      • getObjectFacade

        public com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade getObjectFacade()
      • setObjectFacade

        public void setObjectFacade​(com.hybris.cockpitng.dataaccess.facades.object.ObjectFacade objectFacade)