Interface WebContent
-
- All Superinterfaces:
ACLAmetysObject
,AmetysObject
,Content
,DataAwareAmetysObject
,DataHolder
,DublinCoreAwareAmetysObject
,MetadataAwareAmetysObject
,ModelAwareDataAwareAmetysObject
,ModelAwareDataHolder
,ModifiableACLAmetysObject
,SiteAwareAmetysObject
,TagAwareAmetysObject
,TraversableAmetysObject
- All Known Subinterfaces:
ModifiableWebContent
,SharedContent
- All Known Implementing Classes:
DefaultSharedContent
,DefaultWebContent
,ModifiableDefaultWebContent
public interface WebContent extends Content, TraversableAmetysObject, SiteAwareAmetysObject
Content
with additional data related to Web Content Management.
A WebContent is aware of its Site, of its referencing Pages
-
-
Field Summary
-
Fields inherited from interface org.ametys.cms.repository.Content
ATTRIBUTE_TITLE, METADATA_TITLE
-
Fields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, STATUS_SUFFIX
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<Page>
getReferencingPages()
Returns all pages referencing this Content.Collection<ZoneItem>
getReferencingZoneItems()
Returns all zone items referencing this Content.ResourceCollection
getRootAttachments()
Retrieves the attachments root node-
Methods inherited from interface org.ametys.plugins.repository.ACLAmetysObject
getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, isInheritanceDisallowed
-
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
Methods inherited from interface org.ametys.cms.repository.Content
getCreationDate, getCreator, getFirstValidationDate, getLanguage, getLastContributor, getLastMajorValidationDate, getLastModified, getLastValidationDate, getMixinTypes, getOutgoingReferences, getReferencingContents, getTitle, getTitle, getTypes, hasReferencingContents, toSAX
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, dataToSAX, getRepositoryData
-
Methods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
dataToSAX
-
Methods inherited from interface org.ametys.plugins.repository.dublincore.DublinCoreAwareAmetysObject
getDCContributor, getDCCoverage, getDCCreator, getDCDate, getDCDescription, getDCFormat, getDCIdentifier, getDCLanguage, getDCPublisher, getDCRelation, getDCRights, getDCSource, getDCSubject, getDCTitle, getDCType
-
Methods inherited from interface org.ametys.plugins.repository.metadata.MetadataAwareAmetysObject
getMetadataHolder
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelAwareDataAwareAmetysObject
dataToSAX, getComposite, getDataHolder, getDataNames, getDefinition, getExternalComposite, getExternalRepeater, getExternalValue, getLocalComposite, getLocalRepeater, getLocalValue, getModel, getRepeater, getStatus, getValue, getValue, hasDefinition, hasExternalValue, hasLocalValue, hasValue
-
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
dataToSAX, dataToSAX, dataToSAX, getType, getValue, isMultiple
-
Methods inherited from interface org.ametys.plugins.repository.ModifiableACLAmetysObject
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, disallowInheritance, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers
-
Methods inherited from interface org.ametys.web.repository.SiteAwareAmetysObject
getSite, getSiteName
-
Methods inherited from interface org.ametys.cms.repository.TagAwareAmetysObject
getTags
-
Methods inherited from interface org.ametys.plugins.repository.TraversableAmetysObject
getChild, getChildAt, getChildPosition, getChildren, hasChild
-
-
-
-
Method Detail
-
getReferencingPages
Collection<Page> getReferencingPages() throws AmetysRepositoryException
Returns all pages referencing this Content.- Returns:
- all pages referencing this Content.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getReferencingZoneItems
Collection<ZoneItem> getReferencingZoneItems() throws AmetysRepositoryException
Returns all zone items referencing this Content.- Returns:
- all zone items referencing this Content.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
getRootAttachments
ResourceCollection getRootAttachments() throws AmetysRepositoryException
Retrieves the attachments root node- Specified by:
getRootAttachments
in interfaceContent
- Returns:
- The attachments root node, or null if the content is working on an (unmodifiable) old version and the attachments root is missing.
- Throws:
AmetysRepositoryException
- if an error occurs.
-
-