Class DefaultOriginalClonedItemProvider<T extends ItemModel>

    • Constructor Detail

      • DefaultOriginalClonedItemProvider

        public DefaultOriginalClonedItemProvider()
    • Method Detail

      • detachAll

        protected void detachAll​(ItemModel itemModel)
        This method detaches parent itemModel from modelService as well as all child models (available through attributes).
        Parameters:
        itemModel - ItemModel that should be detached.
      • collectAttributeValues

        protected java.util.Collection<java.lang.Object> collectAttributeValues​(ItemModel itemModel,
                                                                                AttributeDescriptorModel attributeDescriptorModel)
        This method collects the value(s) of the attribute identified by the AttributeDescriptorModel in the provided ItemModel.
        Parameters:
        itemModel - the ItemModel that contains the values to collect.
        attributeDescriptorModel - the descriptor that identifies the attribute whose values to collect.
        Returns:
        The collection containing the value(s) of the attribute found in the provided ItemModel.
      • getWrappedStack

        protected java.util.Deque<ItemModel> getWrappedStack​(java.lang.Object rawValue)
        Values stored in the session service must be wrapped in AtomicReference objects to protect them from being altered during serialization. When values are read from the session service, they must be unwrapped. Thus, this method is used to retrieve the original value (stack) stored in the AtomicReference wrapper.
        Parameters:
        rawValue - Object retrieved from the session service. The object must be an AtomicReference. Otherwise, an IllegalStateException is thrown.
        Returns:
        stack stored within the AtomicReference.
      • setSessionService

        public void setSessionService​(SessionService sessionService)
      • getModelService

        protected ModelService getModelService()
      • setModelService

        public void setModelService​(ModelService modelService)
      • getTypeService

        protected TypeService getTypeService()
      • setTypeService

        public void setTypeService​(TypeService typeService)
      • setLocalizedPopulator

        public void setLocalizedPopulator​(LocalizedPopulator localizedPopulator)