public class DefaultTheme extends SimpleAmetysObject<DefaultThemeFactory> implements Theme, SiteAwareAmetysObject
| Modifier and Type | Field and Description | 
|---|---|
static String | 
METADATA_LABEL
Constant for label metadata. 
 | 
| Constructor and Description | 
|---|
DefaultTheme(Node node,
            String parentPath,
            DefaultThemeFactory factory)
Create a  
DefaultTheme. | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getLabel()
Get the theme label. 
 | 
String | 
getLanguage()
Get the theme language. 
 | 
Site | 
getSite()
Returns this object's site. 
 | 
String | 
getSiteName()
Returns this object's site name. 
 | 
void | 
setLabel(String label)
Set the theme label. 
 | 
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getNode, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChangesequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, getId, getName, getParent, getParentPath, getPath, hashCodepublic static final String METADATA_LABEL
public DefaultTheme(Node node, String parentPath, DefaultThemeFactory factory)
DefaultTheme.node - the node backing this AmetysObject.parentPath - the parent path in the Ametys hierarchy.factory - the DefaultThemeFactory which creates the AmetysObject.public String getLabel() throws AmetysRepositoryException
ThemegetLabel in interface ThemeAmetysRepositoryException - if an error occurs.public void setLabel(String label) throws AmetysRepositoryException
ThemesetLabel in interface Themelabel - the theme label to set.AmetysRepositoryException - if an error occurs.public Site getSite() throws AmetysRepositoryException
SiteAwareAmetysObjectgetSite in interface SiteAwareAmetysObjectAmetysRepositoryException - if an error occurs.public String getSiteName() throws AmetysRepositoryException
SiteAwareAmetysObjectgetSiteName in interface SiteAwareAmetysObjectAmetysRepositoryException - if an error occurs.public String getLanguage()