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, saveChanges
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
equals, getId, getName, getParent, getParentPath, getPath, hashCode
public 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
Theme
getLabel
in interface Theme
AmetysRepositoryException
- if an error occurs.public void setLabel(String label) throws AmetysRepositoryException
Theme
setLabel
in interface Theme
label
- the theme label to set.AmetysRepositoryException
- if an error occurs.public Site getSite() throws AmetysRepositoryException
SiteAwareAmetysObject
getSite
in interface SiteAwareAmetysObject
AmetysRepositoryException
- if an error occurs.public String getSiteName() throws AmetysRepositoryException
SiteAwareAmetysObject
getSiteName
in interface SiteAwareAmetysObject
AmetysRepositoryException
- if an error occurs.public String getLanguage()