Class BusinessContext

    • Constructor Summary

      Constructors 
      Constructor Description
      BusinessContext​(javax.servlet.http.HttpServletRequest request, java.lang.String id, org.w3c.dom.Document xml)
      Creates a new business context with the params.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String get​(java.lang.String key)
      Gets the value from context property.
      java.lang.String getId()
      Returns the registration id for this business context.
      java.util.Set<java.lang.String> getKeySet()
      Returns a Set with the keys contained in this BusinessContext, will bring parent's key set and it's parent's key set if the parent has a business context configured.
      java.lang.String getPropertyName​(java.lang.String key)
      Returns the name for the registered BusinessContext.
      • Methods inherited from class java.lang.Object

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

      • BusinessContext

        public BusinessContext​(javax.servlet.http.HttpServletRequest request,
                               java.lang.String id,
                               org.w3c.dom.Document xml)
                        throws ManagerException,
                               PortalException
        Creates a new business context with the params.
        Parameters:
        request - the request.
        id - identifier business context.
        xml - xml content.
        Throws:
        ManagerException - if occurs something unexpected.
        PortalException - if occurs something unexpected.
        Since:
        7.0.0
    • Method Detail

      • getId

        public java.lang.String getId()
        Description copied from interface: IBusinessContextSPI
        Returns the registration id for this business context. This represents the attribute "id" in the context node in the registered xml.
        Specified by:
        getId in interface IBusinessContextSPI
      • getKeySet

        public java.util.Set<java.lang.String> getKeySet()
        Description copied from interface: IBusinessContext
        Returns a Set with the keys contained in this BusinessContext, will bring parent's key set and it's parent's key set if the parent has a business context configured.
        Specified by:
        getKeySet in interface IBusinessContext
        Returns:
        keyset containing this context's keys and this context's parent keys.
      • get

        public java.lang.String get​(java.lang.String key)
        Description copied from interface: IBusinessContext
        Gets the value from context property.
        Specified by:
        get in interface IBusinessContext
        Parameters:
        key - the property´s id.
        Returns:
        the property´s value.
      • getPropertyName

        public java.lang.String getPropertyName​(java.lang.String key)
        Description copied from interface: IBusinessContextSPI
        Returns the name for the registered BusinessContext. The returned value corresponds to the "name" in the context node in the registered xml.
        Specified by:
        getPropertyName in interface IBusinessContextSPI
        Parameters:
        key - property id.