Class WebContentDAO
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.cms.repository.ContentDAO
org.ametys.web.repository.content.WebContentDAO
- All Implemented Interfaces:
Component
,Contextualizable
,LogEnabled
,Serviceable
DAO for manipulating web contents
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.cms.repository.ContentDAO
ContentDAO.TagMode
-
Field Summary
Modifier and TypeFieldDescriptionprotected SharedContentManager
The manager for shared contentsprotected SitemapDAO
The sitemap DAOstatic final String
Avalon RoleFields inherited from class org.ametys.cms.repository.ContentDAO
_CONTENT_DELETION_STATUS_DELETED, _CONTENT_DELETION_STATUS_LOCKED, _CONTENT_DELETION_STATUS_REFERENCED, _CONTENT_DELETION_STATUS_UNAUTHORIZED, _CONTENT_DELETION_STATUS_UNDELETED, _contentHelper, _contentTypeEP, _contentWorkflowHelper, _context, _cTypesHelper, _currentUserProvider, _hierarchicalSimpleContentsHelper, _lockManager, _modifiableContentHelper, _observationManager, _resolver, _rightManager, _tagProvider, _userHelper, _usersManager, _workflowProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription_getEventParametersForDeletion
(Content content) Get parameters for content deletedEvent
protected boolean
_isContentReferenced
(Content content) Test if content is still referenced before removing itgetContentProperties
(Content content) Get the content propertiesgetReferencingPages
(String contentId) Returns the referencing pages of a contentvoid
service
(ServiceManager smanager) Methods inherited from class org.ametys.cms.repository.ContentDAO
_addOrRemoveReaction, _copyACL, _copyAttachments, _getContentDeletionStatus, _getInvertActionId, _initializeResultsMap, _isTagValid, _notifyContentCopied, _reallyDeleteContent, _removeAllTagsInReplaceMode, _removeReferences, _transformContentToParams, canDelete, canDelete, contextualize, copy, copy, copy, deleteContents, deleteContents, deleteContents, forceDeleteContents, forceDeleteContentsObj, forceDeleteContentsWithLog, getAttachmentsRootNode, getContentDescription, getContentDescription, getContentProperties, getContentsProperties, getContentViews, getRightToDelete, getTags, getUserRights, react, react, report, tag, tag, unreact
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
ROLE
Avalon Role -
_sitemapDAO
The sitemap DAO
-
-
Constructor Details
-
WebContentDAO
public WebContentDAO()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classContentDAO
- Throws:
ServiceException
-
getReferencingPages
Returns the referencing pages of a content- Parameters:
contentId
- The content's id- Returns:
- The list of referencing pages
-
getContentProperties
Description copied from class:ContentDAO
Get the content properties- Overrides:
getContentProperties
in classContentDAO
- Parameters:
content
- The content- Returns:
- The content properties
-
_isContentReferenced
Description copied from class:ContentDAO
Test if content is still referenced before removing it- Overrides:
_isContentReferenced
in classContentDAO
- Parameters:
content
- The content to remove- Returns:
- true if content is still referenced
-
_getEventParametersForDeletion
Description copied from class:ContentDAO
Get parameters for content deletedEvent
- Overrides:
_getEventParametersForDeletion
in classContentDAO
- Parameters:
content
- the removed content- Returns:
- the event's parameters
-