Class CMSTheme

    • Constructor Detail

      • CMSTheme

        public CMSTheme()
        The logged User creates a new instance of a CMSTheme
    • Method Detail

      • forType

        public static CMSTheme forType​(String t)
        Searches for a CMSTheme with a given type.
        Parameters:
        t - the type of the wanted CMSTheme.
        Returns:
        the CMSTheme with the given type if it exists, or null otherwise.
      • loadDefaultTheme

        public static void loadDefaultTheme()
      • getDefaultTheme

        public static CMSTheme getDefaultTheme()
      • templateForType

        public CMSTemplate templateForType​(String type)
        Searches for a CMSTemplate with a given type on this theme.
        Parameters:
        type - type the type of the wanted CMSTemplate.
        Returns:
        the CMSTemplate with the given type if it exists, or null otherwise.
      • fileForPath

        public CMSThemeFile fileForPath​(String path)
        Searches for a CMSThemeFile with a given name on this theme.
        Parameters:
        path - the displayName of the wanted CMSThemeFile.
        Returns:
        the CMSThemeFile with the given displayName if it exists, or null otherwise.
      • contentForPath

        public byte[] contentForPath​(String t)
      • definesPath

        public boolean definesPath​(String string)
      • isDefault

        public boolean isDefault()
        Returns:
        true if this is the default theme for the CMS, and false otherwise.
      • delete

        public void delete()
      • getAssetsPath

        public String getAssetsPath()
      • getExtendedTemplates

        public Set<CMSTemplate> getExtendedTemplates()
      • getAllSitesStream

        public Stream<Site> getAllSitesStream()