Class CmsJspResourceLoadBean

    • Field Detail

      • m_cms

        protected CmsObject m_cms
        The OpenCms context of the current user.
    • Constructor Detail

      • CmsJspResourceLoadBean

        public CmsJspResourceLoadBean​(CmsObject cms,
                                      java.util.List<CmsResource> resources)
        Creates a new context bean using the OpenCms context of the current user.

        The current request context locale is used.

        Parameters:
        cms - the OpenCms context of the current user
        resources - the resources to access, must contain objects of type CmsResource
    • Method Detail

      • getCmsObject

        public CmsObject getCmsObject()
        Returns the OpenCms user context this bean was initialized with.

        Returns:
        the OpenCms user context this bean was initialized with
      • init

        public void init​(CmsObject cms,
                         java.util.List<CmsResource> resources)
        Initialize this instance.

        Parameters:
        cms - the OpenCms context of the current user
        resources - the resources to access, must contain objects of type CmsResource