Class DefaultContext

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DefaultContext.Builder  
    • Field Summary

      • Fields inherited from interface com.hybris.cockpitng.dataaccess.context.Context

        TYPE_CODE
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultContext()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAttribute​(java.lang.String name, java.lang.Object value)
      Add attribute identified by name with value.
      void clearAttributes()
      Clear all attributes in prepared context;
      java.lang.Object getAttribute​(java.lang.String name)
      Get value of attribute named by name
      java.util.Set<java.lang.String> getAttributeNames()
      Get list of set attribute names.
      java.lang.Object removeAttribute​(java.lang.String name)
      Remove attribute named by name
      • Methods inherited from class java.lang.Object

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

      • DefaultContext

        public DefaultContext()
    • Method Detail

      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String name)
        Description copied from interface: Context
        Get value of attribute named by name
        Specified by:
        getAttribute in interface Context
        Returns:
      • addAttribute

        public void addAttribute​(java.lang.String name,
                                 java.lang.Object value)
        Description copied from interface: Context
        Add attribute identified by name with value.
        Specified by:
        addAttribute in interface Context
        Parameters:
        name - - attribute name
        value - - attribute value
      • getAttributeNames

        public java.util.Set<java.lang.String> getAttributeNames()
        Description copied from interface: Context
        Get list of set attribute names.
        Specified by:
        getAttributeNames in interface Context
        Returns:
        list of set attributes
      • removeAttribute

        public java.lang.Object removeAttribute​(java.lang.String name)
        Description copied from interface: Context
        Remove attribute named by name
        Specified by:
        removeAttribute in interface Context
        Parameters:
        name - - attribute name
      • clearAttributes

        public void clearAttributes()
        Description copied from interface: Context
        Clear all attributes in prepared context;
        Specified by:
        clearAttributes in interface Context