Interface IServiceInterfaceStyleManager

  • All Known Implementing Classes:
    ServiceInterfaceStyleManager

    public interface IServiceInterfaceStyleManager
    Since:
    8.1.0
    Version:
    $Revision: 25303 $ $Date: 2022-10-22 22:48:02 -0300 (Sat, 22 Oct 2022) $
    • Method Detail

      • clearStyleCache

        void clearStyleCache​(java.lang.String fileName)
                      throws PortalException,
                             ManagerException
        Clear the cache for the specified style file.
        Parameters:
        sessionConfig - the user session information.
        fileName - the style file path.
        transaction - the transaction for persistence access.
        Throws:
        PortalException
        ManagerException
      • clearStyleCache

        void clearStyleCache​(ITransaction transaction)
                      throws PortalException
        Clears all style cache.
        Parameters:
        transaction - the transaction for persistence access. If null, the cache is just cleared, else it is cleared as a transactional operation as specified in lumis.portal.cache.PortalCache#clear(ITransaction).
        Throws:
        PortalException
        Since:
        8.1.0
      • clearStyleCacheByThemeId

        void clearStyleCacheByThemeId​(java.lang.String themeId)
                               throws PortalException
        Clears the cache for the styles that may be used by the given theme.
        Parameters:
        themeId - the theme identifier.
        Throws:
        PortalException
        Since:
        15.0.0
      • isStyleCached

        boolean isStyleCached​(java.lang.String fileName)
        Verify if the style file is cached.
        Parameters:
        fileName - the style file path.
        Returns:
        true if any variant of the style is being cached, or false otherwise.
      • getCachedStyle

        IStyle getCachedStyle​(java.lang.String stylePath)
                       throws PortalException
        Returns the cached version of the style in the given path.
        Parameters:
        stylePath - the style path.
        Returns:
        the cached version of the style in the given path.
        Throws:
        PortalException
        Since:
        8.1.0
      • getCachedStyle

        IStyle getCachedStyle​(java.lang.String stylePath,
                              java.util.List<ITheme> themes)
                       throws PortalException
        Returns the cached version of the style in the given path.
        Parameters:
        stylePath - the style path.
        themes - the list of applied themes.
        Returns:
        the cached version of the style in the given path.
        Throws:
        PortalException
        Since:
        8.1.0
      • getDynamicStyle

        IStyle getDynamicStyle​(java.lang.String stylePath)
                        throws PortalException
        Returns the dynamic version of the style in the given path.
        Parameters:
        stylePath - the style path.
        Returns:
        the cached version of the style in the given path.
        Throws:
        PortalException
        Since:
        8.1.0
      • getDynamicStyle

        IStyle getDynamicStyle​(java.lang.String stylePath,
                               java.util.List<ITheme> themes)
                        throws PortalException
        Returns the dynamic version of the style in the given path.
        Parameters:
        stylePath - the style path.
        themes - the list of applied themes.
        Returns:
        the cached version of the style in the given path.
        Throws:
        PortalException
        Since:
        8.1.0
      • getDynamicStyle

        IStyle getDynamicStyle​(java.lang.String styleString,
                               java.lang.String stylePath,
                               java.util.List<ITheme> themes)
                        throws PortalException
        Returns the cached version of the style in the given path.
        Parameters:
        styleString - the style text.
        stylePath - the style path.
        themes - the list of applied themes.
        Returns:
        the cached version of the style in the given path.
        Throws:
        PortalException
        Since:
        8.1.0