Class DefaultTheme
java.lang.Object
org.ametys.plugins.repository.AbstractAmetysObject
org.ametys.plugins.repository.jcr.SimpleAmetysObject<DefaultThemeFactory>
org.ametys.plugins.linkdirectory.repository.DefaultTheme
- All Implemented Interfaces:
Theme,AmetysObject,JCRAmetysObject,MetadataAwareAmetysObject,ModifiableMetadataAwareAmetysObject,ModifiableAmetysObject,RemovableAmetysObject,SiteAwareAmetysObject
public class DefaultTheme
extends SimpleAmetysObject<DefaultThemeFactory>
implements Theme, SiteAwareAmetysObject
Repository implementation of a link directory theme.
-
Field Summary
FieldsFields inherited from interface org.ametys.web.repository.SiteAwareAmetysObject
METADATA_SITE -
Constructor Summary
ConstructorsConstructorDescriptionDefaultTheme(javax.jcr.Node node, String parentPath, DefaultThemeFactory factory) Create aDefaultTheme. -
Method Summary
Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObject
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getNode, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChangesMethods inherited from class org.ametys.plugins.repository.AbstractAmetysObject
equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
Field Details
-
METADATA_LABEL
Constant for label metadata.- See Also:
-
-
Constructor Details
-
DefaultTheme
Create aDefaultTheme.- Parameters:
node- the node backing thisAmetysObject.parentPath- the parent path in the Ametys hierarchy.factory- theDefaultThemeFactorywhich creates the AmetysObject.
-
-
Method Details
-
getLabel
Description copied from interface:ThemeGet the theme label.- Specified by:
getLabelin interfaceTheme- Returns:
- the theme label.
- Throws:
AmetysRepositoryException- if an error occurs.
-
setLabel
Description copied from interface:ThemeSet the theme label.- Specified by:
setLabelin interfaceTheme- Parameters:
label- the theme label to set.- Throws:
AmetysRepositoryException- if an error occurs.
-
getSite
Description copied from interface:SiteAwareAmetysObjectReturns this object's site.- Specified by:
getSitein interfaceSiteAwareAmetysObject- Returns:
- this object's site
- Throws:
AmetysRepositoryException- if an error occurs.
-
getSiteName
Description copied from interface:SiteAwareAmetysObjectReturns this object's site name.- Specified by:
getSiteNamein interfaceSiteAwareAmetysObject- Returns:
- this object's site name.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getLanguage
Get the theme language.- Returns:
- the theme language.
-