Class DouiRestInterfaceCacheManager


  • public final class DouiRestInterfaceCacheManager
    extends java.lang.Object
    DOUI REST interface cache manager.
    Since:
    10.4.0
    Version:
    $Revision: 24335 $ $Date: 2021-01-28 13:08:29 -0300 (Thu, 28 Jan 2021) $
    • Method Detail

      • getCacheConfig

        public static RestInterfaceCacheConfig getCacheConfig​(java.lang.String serviceInstanceId,
                                                              java.lang.String restInterfaceId,
                                                              java.lang.String serviceId)
                                                       throws PortalException
        Returns the REST interface cache configuration.
        Parameters:
        serviceInstanceId - the service instance identifier.
        restInterfaceId - the REST interface identifier.
        Returns:
        the REST interface cache configuration.
        Throws:
        PortalException
        Since:
        10.4.0
      • saveCacheConfigs

        public static void saveCacheConfigs​(java.lang.String serviceInstanceId,
                                            java.util.Map<java.lang.String,​RestInterfaceCacheConfig> cacheConfigs)
                                     throws PortalException
        Saves the given REST interfaces cache configurations.
        Parameters:
        serviceInstanceId - the service instance identifier.
        cacheConfigs - the cache configurations for each REST interface.
        Throws:
        PortalException
        Since:
        10.4.0
      • render

        public static DouiRestInterfaceRenderResult render​(IDouiRestInterfaceRequest request)
                                                    throws java.lang.Exception
        Returns the given REST interface request render.
        Parameters:
        request - the REST interface request.
        Returns:
        the given REST interface request render.
        Throws:
        java.lang.Exception
        Since:
        10.4.0
      • clearCache

        public static void clearCache​(ServiceInstanceConfig serviceInstance)
                               throws PortalException
        Clears the REST interface related caches of the given service instance.
        Parameters:
        serviceInstance - the service instance.
        Throws:
        PortalException
        Since:
        10.4.0