Class DefaultImpExImportCUDHandler

  • All Implemented Interfaces:
    ImpExImportCUDHandler
    Direct Known Subclasses:
    SLImpexImportCUDHandler

    public class DefaultImpExImportCUDHandler
    extends java.lang.Object
    implements ImpExImportCUDHandler
    Default implementation of ImpExImportProcessorCUD interface. This implementation holds legacy way of importing items with usage of Jalo layer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Item create​(ComposedType targetType, java.util.Map<java.lang.String,​java.lang.Object> values, ValueLine valueLine)
      Process creation of new item.
      void delete​(Item toRemove, ValueLine valueLine)
      Process delete operation.
      protected Item doCreate​(ComposedType targetType, java.util.Map<java.lang.String,​java.lang.Object> values, ValueLine valueLine)  
      protected void doRemove​(Item toRemove)
      Do remove operation on passed as parameter item.
      protected void doUpdate​(Item toUpdate, java.util.Map<java.lang.String,​java.lang.Object> values, ValueLine valueLine)
      Do update operation on passed as parameter item.
      protected void doUpdateReadOnlyAttributes​(Item toUpdate, java.util.Map<java.lang.String,​java.lang.Object> values, ValueLine valueLine)
      Updates all attributes which are read-only but having an force write option manually (because they can not be processed by setAllAttributes).
      protected java.util.Map<java.lang.String,​java.lang.Object> getSessionParameters​(ValueLine valueLine)  
      void update​(Item toUpdate, java.util.Map<java.lang.String,​java.lang.Object> values, ValueLine valueLine)
      Process update operation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultImpExImportCUDHandler

        public DefaultImpExImportCUDHandler​(ImpExImportReader reader)
    • Method Detail

      • update

        public void update​(Item toUpdate,
                           java.util.Map<java.lang.String,​java.lang.Object> values,
                           ValueLine valueLine)
                    throws ImpExException
        Description copied from interface: ImpExImportCUDHandler
        Process update operation.
        Specified by:
        update in interface ImpExImportCUDHandler
        Parameters:
        toUpdate - Item to update
        values - the map of Item values where key is attribute name and value is new value to update
        valueLine - the value line
        Throws:
        ImpExException - the ImpEx exception
      • doUpdateReadOnlyAttributes

        protected void doUpdateReadOnlyAttributes​(Item toUpdate,
                                                  java.util.Map<java.lang.String,​java.lang.Object> values,
                                                  ValueLine valueLine)
                                           throws ImpExException
        Updates all attributes which are read-only but having an force write option manually (because they can not be processed by setAllAttributes).
        Parameters:
        toUpdate - the to update
        values - the values
        Throws:
        ImpExException
      • doUpdate

        protected void doUpdate​(Item toUpdate,
                                java.util.Map<java.lang.String,​java.lang.Object> values,
                                ValueLine valueLine)
                         throws ImpExException
        Do update operation on passed as parameter item.
        Parameters:
        toUpdate - the to update
        values - the values
        valueLine - the value line
        Throws:
        ImpExException - the imp ex exception
      • getSessionParameters

        protected java.util.Map<java.lang.String,​java.lang.Object> getSessionParameters​(ValueLine valueLine)