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
FieldsModifier and TypeFieldDescriptionprotected SharedContentManagerThe manager for shared contentsprotected SitemapDAOThe sitemap DAOstatic final StringAvalon 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
Constructors - 
Method Summary
Modifier and TypeMethodDescription_getEventParametersForDeletion(Content content) Get parameters for content deletedEventprotected 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 contentvoidservice(ServiceManager smanager) Methods inherited from class org.ametys.cms.repository.ContentDAO
_addOrRemoveReaction, _copyACL, _copyAttachments, _getContentDeletionStatus, _getInvertActionId, _initializeResultsMap, _isTagValid, _reallyDeleteContent, _removeAllTagsInReplaceMode, _removeReferences, _transformContentToParams, canDelete, canDelete, contextualize, copy, copy, copy, deleteContents, deleteContents, deleteContents, forceDeleteContents, forceDeleteContentsObj, forceDeleteContentsWithLog, getAttachmentsRootNode, getContentDescription, getContentDescription, getContentProperties, getContentsProperties, getContentViews, getContentViewsAndAllData, getReactionUsers, getRightToDelete, getTags, getUserRights, notifyContentCopied, react, react, report, tag, tag, tag, unreactMethods 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:
 servicein interfaceServiceable- Overrides:
 servicein 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:ContentDAOGet the content properties- Overrides:
 getContentPropertiesin classContentDAO- Parameters:
 content- The content- Returns:
 - The content properties
 
 - 
_isContentReferenced
Description copied from class:ContentDAOTest if content is still referenced before removing it- Overrides:
 _isContentReferencedin classContentDAO- Parameters:
 content- The content to remove- Returns:
 - true if content is still referenced
 
 - 
_getEventParametersForDeletion
Description copied from class:ContentDAOGet parameters for content deletedEvent- Overrides:
 _getEventParametersForDeletionin classContentDAO- Parameters:
 content- the removed content- Returns:
 - the event's parameters
 
 
 -