com.ibm.commerce.beans

Class DataBeanManager

  • java.lang.Object
    • com.ibm.commerce.beans.DataBeanManager


  • public class DataBeanManager
    extends java.lang.Object
    This data bean manager is responsible for populating data beans.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM Copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      DataBeanManager()
      This is the default constructor for this class.
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      static void activate(DataBean targetBean)
      This method activates the data bean.
      static void activate(DataBean targetBean, boolean abBypassAccessControl)
      This method activates the data bean.
      static void activate(DataBean targetBean, CommandContext context)
      This method activates the data bean.
      static void activate(DataBean targetBean, CommandContext context, boolean abBypassAccessControl)
      This method activates the data bean.
      static void activate(DataBean targetBean, CommandContext context, javax.servlet.http.HttpServletResponse response)
      This method activates the data bean.
      static void activate(DataBean targetBean, CommandContext context, javax.servlet.http.HttpServletResponse response, boolean abBypassAccessControl)
      This method activates the data bean.
      static void activate(DataBean targetBean, javax.servlet.http.HttpServletRequest request)
      Deprecated. 
      This has been replaced by the activate(DataBean, HttpServletRequest, HttpServletResponse)
      static void activate(DataBean targetBean, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      This method populates the data bean.
      static void activate(DataBean targetBean, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean abBypassAccessControl)
      This method populates the data bean.
      static java.lang.Boolean setAccessControlChecking(java.lang.Boolean abEnabled)
      Temporarily enables or disables access control checking in this thread only.
      static void silentActivate(DataBean targetBean, javax.servlet.http.HttpServletRequest request)
      Deprecated. 
      This has been replaced by the silentActivate(DataBean, HttpServletRequest, HttpServletResponse) method.
      static void silentActivate(DataBean targetBean, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      This method activates or populates a data bean.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DataBeanManager

        public DataBeanManager()
        This is the default constructor for this class. It calls the constructor from the superclass.
    • Method Detail

      • setAccessControlChecking

        public static final java.lang.Boolean setAccessControlChecking(java.lang.Boolean abEnabled)
        Temporarily enables or disables access control checking in this thread only. When abEnabled is not null, the caller should call this method again in a finally block specifying the returned value, to restore the previous setting.
        Parameters:
        abEnabled - specify Boolean.TRUE to enable access control checking, Boolean.FALSE to disable access control checking. or specify null to remove the temporary override.
        Returns:
        the current setting.
      • activate

        public static void activate(DataBean targetBean)
                             throws ECException
        This method activates the data bean. This is called from a command where the command context is not available. In this case, the business context information will be pulled from the thread and used to create a command context for the bean. If an error occurs, it catches all exceptions and throws an ECException.
        Parameters:
        targetBean - This is the data bean to be populated.
        Throws:
        ECException - This is thrown if an exception occurs while populating the data bean.
      • activate

        public static void activate(DataBean targetBean,
                                    boolean abBypassAccessControl)
                             throws ECException
        This method activates the data bean. This is called from a command where the command context is not available. In this case, the business context information will be pulled from the thread and used to create a command context for the bean. If an error occurs, it catches all exceptions and throws an ECException.
        Parameters:
        targetBean - This is the data bean to be populated.
        abBypassAccessControl - specify true to bypass access control checking.
        Throws:
        ECException - This is thrown if an exception occurs while populating the data bean.
      • activate

        public static void activate(DataBean targetBean,
                                    CommandContext context)
                             throws ECException
        This method activates the data bean. This is called from a command where the command context is available. If an error occurs, it catches all exceptions and throws an ECException.
        Parameters:
        targetBean - This is the data bean to be populated.
        context - This is the CommandContext object associated with this request.
        Throws:
        ECException - This is thrown if an exception occurs while populating the data bean.
      • activate

        public static void activate(DataBean targetBean,
                                    CommandContext context,
                                    boolean abBypassAccessControl)
                             throws ECException
        This method activates the data bean. This is called from a command where the command context is available. If an error occurs, it catches all exceptions and throws an ECException.
        Parameters:
        targetBean - This is the data bean to be populated.
        context - This is the CommandContext object associated with this request.
        abBypassAccessControl - specify true to bypass access control checking.
        Throws:
        ECException - This is thrown if an exception occurs while populating the data bean.
      • activate

        public static void activate(DataBean targetBean,
                                    CommandContext context,
                                    javax.servlet.http.HttpServletResponse response)
                             throws ECException
        This method activates the data bean. It is called from a command where the command context is available. If an error occurs, it catches all exceptions and throws an ECException.
        Parameters:
        targetBean - This is the data bean to be populated.
        context - This is the CommandContext object associated with this request.
        response - This is an HttpServletResponse object.
        Throws:
        ECException - This is thrown if an exception occurs while populating the data bean.
      • activate

        public static void activate(DataBean targetBean,
                                    CommandContext context,
                                    javax.servlet.http.HttpServletResponse response,
                                    boolean abBypassAccessControl)
                             throws ECException
        This method activates the data bean. It is called from a command where the command context is available. If an error occurs, it catches all exceptions and throws an ECException.
        Parameters:
        targetBean - This is the data bean to be populated.
        context - This is the CommandContext object associated with this request.
        response - This is an HttpServletResponse object.
        abBypassAccessControl - specify true to bypass access control checking.
        Throws:
        ECException - This is thrown if an exception occurs while populating the data bean.
      • activate

        public static void activate(DataBean targetBean,
                                    javax.servlet.http.HttpServletRequest request)
                             throws javax.servlet.ServletException
        Deprecated. This has been replaced by the activate(DataBean, HttpServletRequest, HttpServletResponse)
        This method populates a data bean. It is invoked from a JSP. If an error occurs, it catches all exceptions and throws a ServletException.
        Parameters:
        targetBean - This is the data bean to be populated.
        request - This is an HttpServletRequest object used to invoke this JSP.
        Throws:
        javax.servlet.ServletException - This is thrown if there is a problem populating the data bean. The exception thrown will be converted to a ServletException and passed back to the caller.
      • activate

        public static void activate(DataBean targetBean,
                                    javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)
                             throws javax.servlet.ServletException
        This method populates the data bean. It is invoked from a JSP. If an error occurs, it catches all exceptions and throws a ServletException.
        Parameters:
        targetBean - This is the data bean to be populated.
        request - This is the HttpServletRequest object used to invoke this JSP.
        response - This is the HttpServletResponse object used to invoke this JSP
        Throws:
        javax.servlet.ServletException - This is thrown if there is a problem populating the data bean. The exception thrown will be converted to a ServletException and passed back to the caller.
      • activate

        public static void activate(DataBean targetBean,
                                    javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response,
                                    boolean abBypassAccessControl)
                             throws javax.servlet.ServletException
        This method populates the data bean. It is invoked from a JSP. If an error occurs, it catches all exceptions and throws a ServletException.
        Parameters:
        targetBean - This is the data bean to be populated.
        request - This is the HttpServletRequest object used to invoke this JSP.
        response - This is the HttpServletResponse object used to invoke this JSP
        abBypassAccessControl - specify true to bypass access control checking.
        Throws:
        javax.servlet.ServletException - This is thrown if there is a problem populating the data bean. The exception thrown will be converted to a ServletException and passed back to the caller.
      • silentActivate

        public static void silentActivate(DataBean targetBean,
                                          javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.http.HttpServletResponse response)
        This method activates or populates a data bean. This is the same as the activate method except that no exception will be thrown.
        Parameters:
        targetBean - This is the data bean to be populated.
        request - This is the HttpServletRequest object used to invoke the JSP.
        response - This is the HttpServletResponse object used to invoke the JSP.
      • silentActivate

        public static void silentActivate(DataBean targetBean,
                                          javax.servlet.http.HttpServletRequest request)
        Deprecated. This has been replaced by the silentActivate(DataBean, HttpServletRequest, HttpServletResponse) method.
        This method activates or populates a data bean. This is the same as the activate method except that no exception will be thrown.
        Parameters:
        targetBean - This is the data bean to be populated.
        request - This is the HttpServletRequest object used to invoke the JSP.