Class CMSTheme

java.lang.Object
pt.ist.fenixframework.core.AbstractDomainObject
org.fenixedu.cms.domain.CMSTheme_Base
org.fenixedu.cms.domain.CMSTheme
All Implemented Interfaces:
Serializable, pt.ist.fenixframework.DomainObject

public class CMSTheme extends CMSTheme_Base
See Also:
  • Field Details

  • Constructor Details

    • CMSTheme

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

    • 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()
    • changeFiles

      public void changeFiles(CMSThemeFiles files)
    • getAllTemplates

      public Set<CMSTemplate> getAllTemplates()
    • getExtendedTemplates

      public Set<CMSTemplate> getExtendedTemplates()
    • getAllSitesStream

      public Stream<Site> getAllSitesStream()
    • getSitesSet

      public Set<Site> getSitesSet()
      Overrides:
      getSitesSet in class CMSTheme_Base