Package org.fenixedu.cms.domain
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
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class pt.ist.fenixframework.core.AbstractDomainObject
pt.ist.fenixframework.core.AbstractDomainObject.SerializedForm -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeFiles(CMSThemeFiles files) byte[]booleandefinesPath(String string) voiddelete()fileForPath(String path) Searches for aCMSThemeFilewith a given name on this theme.static CMSThemeSearches for aCMSThemewith a given type.static CMSThemebooleanstatic voidtemplateForType(String type) Searches for aCMSTemplatewith a given type on this theme.Methods inherited from class org.fenixedu.cms.domain.CMSTheme_Base
addBuilders, addChildren, addSites, addTemplates, getBennu, getBuildersSet, getChildrenSet, getCreatedBy, getCreationDate, getDefaultTemplate, getDescription, getExtended, getFiles, getName, getPreviewImage, getPreviewImagePath, getPrimaryBennu, getRelationCMSTemplateCMSTheme, getRelationCMSThemeBennu, getRelationCMSThemeCMSTheme, getRelationCMSThemeUser, getRelationDefaultPage, getRelationPrimaryCMSThemeBennu, getRelationSiteBuilderCMSTheme, getRelationSiteCMSTheme, getRelationThemePreview, getTemplatesSet, getType, removeBuilders, removeChildren, removeSites, removeTemplates, setBennu, setCreatedBy, setCreationDate, setDefaultTemplate, setDescription, setExtended, setFiles, setName, setPreviewImage, setPreviewImagePath, setPrimaryBennu, setTypeMethods inherited from class pt.ist.fenixframework.core.AbstractDomainObject
checkForDeletionBlockers, deleteDomainObject, ensureOid, equals, getDeletionBlockers, getDomainModel, getExternalId, getOid, hashCode, init$Instance, makeSerializedForm, toString, writeReplace
-
Field Details
-
SIGNAL_CREATED
- See Also:
-
SIGNAL_DELETED
- See Also:
-
SIGNAL_EDITED
- See Also:
-
-
Constructor Details
-
CMSTheme
public CMSTheme()The loggedUsercreates a new instance of aCMSTheme
-
-
Method Details
-
forType
Searches for aCMSThemewith a given type. -
loadDefaultTheme
public static void loadDefaultTheme() -
getDefaultTheme
-
templateForType
Searches for aCMSTemplatewith a given type on this theme.- Parameters:
type- type the type of the wantedCMSTemplate.- Returns:
- the
CMSTemplatewith the given type if it exists, or null otherwise.
-
fileForPath
Searches for aCMSThemeFilewith a given name on this theme.- Parameters:
path- the displayName of the wantedCMSThemeFile.- Returns:
- the
CMSThemeFilewith the given displayName if it exists, or null otherwise.
-
contentForPath
-
definesPath
-
isDefault
public boolean isDefault()- Returns:
- true if this is the default theme for the CMS, and false otherwise.
-
delete
public void delete() -
getAssetsPath
-
changeFiles
-
getAllTemplates
-
getExtendedTemplates
-
getAllSitesStream
-
getSitesSet
- Overrides:
getSitesSetin classCMSTheme_Base
-