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_SITEATTACHMENTS_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_REFERENCESPROTECTED_PROPERTIESATTRIBUTE_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, hasChildaddReaction, 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, removeReactionaddAllowedGroups, 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, saveChangesequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetReferencingPages, getReferencingZoneItems, getRootAttachmentsgetCreationDate, getCreator, getDefinition, getFirstValidationDate, getLanguage, getLastContributor, getLastMajorValidationDate, getLastModified, getLastValidationDate, getMixinTypes, getOutgoingReferences, getReferencingContents, getTitle, getTitle, getTypes, hasReferencingContentsgetComposite, getDataHolder, getRepeater, getType, getValue, getValue, hasValue, isMultiplecopyTo, getDataNamestoSAX, toSAXdataToSAX, dataToSAX, dataToSAX, dataToSAXgetMetadataHoldergetDCContributor, getDCCoverage, getDCCreator, getDCDate, getDCDescription, getDCFormat, getDCIdentifier, getDCLanguage, getDCPublisher, getDCRelation, getDCRights, getDCSource, getDCSubject, getDCTitle, getDCTypegetTagsaddAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsersgetAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsersgetChild, getChildAt, getChildPosition, getChildren, hasChildremovegetNodeneedsSave, rename, revertChanges, saveChangespublic static final String INITIAL_CONTENT_PROPERTY
public DefaultSharedContent(Node node, String parentPath, F factory)
DefaultSharedContent.node - the node backing this AmetysObjectparentPath - the parentPath in the Ametys hierarchyfactory - the DefaultSharedContentFactory which created the AmetysObject.public Content getInitialContent() throws AmetysRepositoryException
SharedContentgetInitialContent in interface SharedContentAmetysRepositoryException - if an error occurs.public Site getSite()
SiteAwareAmetysObjectgetSite in interface SiteAwareAmetysObjectgetSite in class DefaultWebContent<F extends DefaultSharedContentFactory>public String getSiteName()
SiteAwareAmetysObjectgetSiteName in interface SiteAwareAmetysObjectgetSiteName in class DefaultWebContent<F extends DefaultSharedContentFactory>public void setSiteName(String siteName)
ModifiableSiteAwareAmetysObjectsetSiteName in interface ModifiableSiteAwareAmetysObjectsiteName - 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
TaggableAmetysObjecttag in interface TaggableAmetysObjecttag - the tag to add.AmetysRepositoryException - if an error occurs.public void untag(String tag) throws AmetysRepositoryException
TaggableAmetysObjectuntag in interface TaggableAmetysObjecttag - the tag to remove.AmetysRepositoryException - if an error occurs.