F
- the actual type of factory.public class DefaultSharedContent<F extends DefaultSharedContentFactory> extends DefaultWebContent<F> implements SharedContent
SharedContent
implementation, backed by a JCR node.ReactionableObject.ReactionType
Modifier and Type | Field and Description |
---|---|
static String |
INITIAL_CONTENT_PROPERTY
The initial content property.
|
METADATA_SITE
ATTACHMENTS_NODE_NAME, DEFAULT_CONTENT_LOCALE, METADATA_CONTENTTYPE, METADATA_CONTRIBUTOR, METADATA_CREATION, METADATA_CREATOR, METADATA_FIRST_VALIDATION, METADATA_LANGUAGE, METADATA_LAST_MAJORVALIDATION, METADATA_LAST_VALIDATION, METADATA_MIXINCONTENTTYPES, METADATA_MODIFIED, METADATA_OUTGOING_REFERENCE_NODETYPE, METADATA_OUTGOING_REFERENCE_PROPERTY, METADATA_OUTGOING_REFERENCES, METADATA_OUTGOING_REFERENCES_PATH_PROPERTY, METADATA_ROOT_OUTGOING_REFERENCES
PROTECTED_PROPERTIES
ATTRIBUTE_TITLE, METADATA_TITLE
Constructor and Description |
---|
DefaultSharedContent(Node node,
String parentPath,
F factory)
Creates a
DefaultSharedContent . |
Modifier and Type | Method and Description |
---|---|
Content |
getInitialContent()
Get the initial content.
|
Site |
getSite()
Returns this object's site.
|
String |
getSiteName()
Returns this object's site name.
|
void |
setCreationDate(Date creationDate)
Set the creation date.
|
void |
setCreator(UserIdentity user)
Set the login of the creator.
|
void |
setFirstValidationDate(Date validationDate)
Set the first validation date
|
void |
setLanguage(String language)
Set the type of this Content.
This method may only be called on a new Content, ie. |
void |
setLastContributor(UserIdentity user)
Set the login of the last contributor.
|
void |
setLastMajorValidationDate(Date validationDate)
Set the last validation date resulting from a major modification
|
void |
setLastModified(Date lastModified)
Set the last modification date.
|
void |
setLastValidationDate(Date validationDate)
Set the last validation date
|
void |
setSiteName(String siteName)
Set the site name.
|
void |
setTitle(String title)
Deprecated.
|
void |
setTitle(String title,
Locale locale)
Set the title from the given locale
|
void |
setType(String type)
Set the type of this Content.
This method may only be called on a new Content, ie. |
void |
setTypes(String[] types)
Set the types of this Content.
This method may only be called on a new Content, ie. |
void |
tag(String tag)
Tags.
|
void |
untag(String tag)
Untags.
|
copyTo, createChild, getChild, getChildren, getReferencingPages, getReferencingZoneItems, getRootAttachments, hasChild
addReaction, copyTo, copyTo, copyTo, copyTo, getCreationDate, getCreator, getDataHolder, getDCContributor, getDCCoverage, getDCCreator, getDCDate, getDCDescription, getDCFormat, getDCIdentifier, getDCLanguage, getDCPublisher, getDCRelation, getDCRights, getDCSource, getDCSubject, getDCTitle, getDCType, getDefinition, getFirstValidationDate, getLanguage, getLastContributor, getLastMajorValidationDate, getLastModified, getLastValidationDate, getMixinTypes, getModels, getOutgoingReferences, getReactionUsers, getReferencingContents, getTags, getTitle, getTitle, getTypes, hasReferencingContents, removeReaction
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, addLabel, checkpoint, copyNode, getAllLabels, getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getAllRevisions, getBaseNode, getBaseVersion, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, getLabels, getLabels, getNode, getRevision, getRevisionTimestamp, getRevisionTimestamp, getUnversionedMetadataHolder, getVersionHistory, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers, removeLabel, restoreFromLabel, restoreFromNode, restoreFromRevision, switchToLabel, switchToRevision
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChanges
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getReferencingPages, getReferencingZoneItems, getRootAttachments
getCreationDate, getCreator, getDefinition, getFirstValidationDate, getLanguage, getLastContributor, getLastMajorValidationDate, getLastModified, getLastValidationDate, getMixinTypes, getOutgoingReferences, getReferencingContents, getTitle, getTitle, getTypes, hasReferencingContents
getComposite, getDataHolder, getRepeater, getType, getValue, getValue, hasValue, isMultiple
copyTo, getDataNames
toSAX, toSAX
dataToSAX, dataToSAX, dataToSAX, dataToSAX
getMetadataHolder
getDCContributor, getDCCoverage, getDCCreator, getDCDate, getDCDescription, getDCFormat, getDCIdentifier, getDCLanguage, getDCPublisher, getDCRelation, getDCRights, getDCSource, getDCSubject, getDCTitle, getDCType
getTags
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers
getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers
getChild, getChildAt, getChildPosition, getChildren, hasChild
remove
getNode
needsSave, rename, revertChanges, saveChanges
public static final String INITIAL_CONTENT_PROPERTY
public DefaultSharedContent(Node node, String parentPath, F factory)
DefaultSharedContent
.node
- the node backing this AmetysObject
parentPath
- the parentPath in the Ametys hierarchyfactory
- the DefaultSharedContentFactory which created the AmetysObject.public Content getInitialContent() throws AmetysRepositoryException
SharedContent
getInitialContent
in interface SharedContent
AmetysRepositoryException
- if an error occurs.public Site getSite()
SiteAwareAmetysObject
getSite
in interface SiteAwareAmetysObject
getSite
in class DefaultWebContent<F extends DefaultSharedContentFactory>
public String getSiteName()
SiteAwareAmetysObject
getSiteName
in interface SiteAwareAmetysObject
getSiteName
in class DefaultWebContent<F extends DefaultSharedContentFactory>
public void setSiteName(String siteName)
ModifiableSiteAwareAmetysObject
setSiteName
in interface ModifiableSiteAwareAmetysObject
siteName
- the site name.public void setType(String type) throws AmetysRepositoryException
type
- the type of this content.AmetysRepositoryException
- if an error occurs.public void setTypes(String[] types) throws AmetysRepositoryException
types
- the types of this content.AmetysRepositoryException
- if an error occurs.public void setLanguage(String language) throws AmetysRepositoryException
language
- the language of this content.AmetysRepositoryException
- if an error occurs.@Deprecated public void setTitle(String title) throws AmetysRepositoryException
title
- the title.AmetysRepositoryException
- if an error occurs.public void setTitle(String title, Locale locale) throws AmetysRepositoryException
title
- the title.locale
- The localeAmetysRepositoryException
- if an error occurs.public void setCreator(UserIdentity user) throws AmetysRepositoryException
user
- the creator.AmetysRepositoryException
- if an error occurs.public void setCreationDate(Date creationDate) throws AmetysRepositoryException
creationDate
- the creation date.AmetysRepositoryException
- if an error occurs.public void setLastContributor(UserIdentity user)
user
- the last contributor.AmetysRepositoryException
- if an error occurs.public void setLastModified(Date lastModified) throws AmetysRepositoryException
lastModified
- the last modification date.AmetysRepositoryException
- if an error occurs.public void setFirstValidationDate(Date validationDate) throws AmetysRepositoryException
validationDate
- the validation date.AmetysRepositoryException
- if an error occurs.public void setLastValidationDate(Date validationDate) throws AmetysRepositoryException
validationDate
- the validation date.AmetysRepositoryException
- if an error occurs.public void setLastMajorValidationDate(Date validationDate) throws AmetysRepositoryException
validationDate
- the validation date.AmetysRepositoryException
- if an error occurs.public void tag(String tag) throws AmetysRepositoryException
TaggableAmetysObject
tag
in interface TaggableAmetysObject
tag
- the tag to add.AmetysRepositoryException
- if an error occurs.public void untag(String tag) throws AmetysRepositoryException
TaggableAmetysObject
untag
in interface TaggableAmetysObject
tag
- the tag to remove.AmetysRepositoryException
- if an error occurs.