public class JCRCategory extends DefaultTraversableAmetysObject<CategoryFactory>
AmetysObject
for storing tag informations.Modifier and Type | Field and Description |
---|---|
private static String |
__AUTOMATIC_IDS
Constants for automatic newsletter ids.
|
private static String |
__METADATA_DESC
Constants for description metadata.
|
private static String |
__METADATA_TEMPLATE
Constants for template metadata.
|
private static String |
__METADATA_TITLE
Constants for title metadata.
|
Constructor and Description |
---|
JCRCategory(Node node,
String parentPath,
CategoryFactory factory)
Creates a
JCRCategory . |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getAutomaticIds()
Retrieves the template name.
|
String |
getDescription()
Retrieves the description.
|
String |
getLang()
Returns the language
|
String |
getSiteName()
Get the site name
|
String |
getTemplate()
Retrieves the template name.
|
String |
getTitle()
Retrieves the title.
|
void |
setAutomaticIds(Collection<String> autoIds)
Set the template.
|
void |
setDescription(String description)
Set the description.
|
void |
setTemplate(String templateName)
Set the template.
|
void |
setTitle(String title)
Set the title.
|
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, createChild, getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getChild, getChildren, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, hasChild, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers
_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
getNode
getMetadataHolder
needsSave, rename, revertChanges, saveChanges
equals, getId, getName, getParent, getParentPath, getPath, hashCode
remove
getChildAt, getChildPosition
private static final String __METADATA_TITLE
private static final String __METADATA_DESC
private static final String __METADATA_TEMPLATE
private static final String __AUTOMATIC_IDS
public JCRCategory(Node node, String parentPath, CategoryFactory factory)
JCRCategory
.node
- the node backing this AmetysObject
.parentPath
- the parent path in the Ametys hierarchy.factory
- the CategoryFactory
which creates the AmetysObject.public String getTitle() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.public void setTitle(String title) throws AmetysRepositoryException
title
- the title.AmetysRepositoryException
- if an error occurs.public String getDescription() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.public void setDescription(String description) throws AmetysRepositoryException
description
- the description.AmetysRepositoryException
- if an error occurs.public String getTemplate() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.public void setTemplate(String templateName) throws AmetysRepositoryException
templateName
- the template.AmetysRepositoryException
- if an error occurs.public Collection<String> getAutomaticIds() throws AmetysRepositoryException
AmetysRepositoryException
- if an error occurs.public void setAutomaticIds(Collection<String> autoIds) throws AmetysRepositoryException
autoIds
- the template.AmetysRepositoryException
- if an error occurs.public String getSiteName()