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
public class WebContentDAO extends ContentDAO
DAO for manipulating web contents
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ametys.cms.repository.ContentDAO
ContentDAO.TagMode
-
-
Field Summary
Fields Modifier and Type Field Description protected SharedContentManager
_sharedContentManager
The manager for shared contentsprotected SitemapDAO
_sitemapDAO
The sitemap DAOstatic String
ROLE
Avalon Role-
Fields inherited from class org.ametys.cms.repository.ContentDAO
_contentHelper, _contentTypeEP, _contentWorkflowHelper, _context, _cTypesHelper, _currentUserProvider, _hierarchicalSimpleContentsHelper, _lockManager, _modifiableContentHelper, _observationManager, _resolver, _rightManager, _tagProvider, _userHelper, _usersManager, _workflowProvider
-
-
Constructor Summary
Constructors Constructor Description WebContentDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>
_getEventParametersForDeletion(Content content)
Get parameters for content deletedEvent
private boolean
_hasReferencingPages(Content content)
protected boolean
_isContentReferenced(Content content)
Test if content is still referenced before removing itMap<String,Object>
getContentProperties(Content content)
Get the content propertiesList<Map<String,Object>>
getReferencingPages(String contentId)
Returns the referencing pages of a contentvoid
service(ServiceManager smanager)
-
Methods inherited from class org.ametys.cms.repository.ContentDAO
_copyACL, _copyAttachments, _isTagValid, _notifyContentCopied, canDelete, canDelete, contextualize, copy, copy, copy, deleteContents, deleteContents, deleteContents, forceDeleteContents, getAttachmentsRootNode, getContentDescription, getContentDescription, getContentMetadataSets, getContentProperties, getContentsProperties, getTags, getUserRights, react, react, report, tag, tag, unreact
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_sharedContentManager
protected SharedContentManager _sharedContentManager
The manager for shared contents
-
_sitemapDAO
protected SitemapDAO _sitemapDAO
The sitemap DAO
-
-
Constructor Detail
-
WebContentDAO
public WebContentDAO()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classContentDAO
- Throws:
ServiceException
-
getReferencingPages
public List<Map<String,Object>> getReferencingPages(String contentId)
Returns the referencing pages of a content- Parameters:
contentId
- The content's id- Returns:
- The list of referencing pages
-
getContentProperties
public Map<String,Object> getContentProperties(Content content)
Description copied from class:ContentDAO
Get the content properties- Overrides:
getContentProperties
in classContentDAO
- Parameters:
content
- The content- Returns:
- The content properties
-
_hasReferencingPages
private boolean _hasReferencingPages(Content content)
-
_isContentReferenced
protected boolean _isContentReferenced(Content content)
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
protected Map<String,Object> _getEventParametersForDeletion(Content content)
Description copied from class:ContentDAO
Get parameters for content deletedEvent
- Overrides:
_getEventParametersForDeletion
in classContentDAO
- Parameters:
content
- the removed content- Returns:
- the event's parameters
-
-