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_sharedContentManagerThe manager for shared contentsprotected SitemapDAO_sitemapDAOThe sitemap DAOstatic StringROLEAvalon Role-
Fields 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 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 deletedEventprotected 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 contentvoidservice(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 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:
servicein interfaceServiceable- Overrides:
servicein 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:ContentDAOGet the content properties- Overrides:
getContentPropertiesin classContentDAO- Parameters:
content- The content- Returns:
- The content properties
-
_isContentReferenced
protected boolean _isContentReferenced(Content content)
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
protected Map<String,Object> _getEventParametersForDeletion(Content content)
Description copied from class:ContentDAOGet parameters for content deletedEvent- Overrides:
_getEventParametersForDeletionin classContentDAO- Parameters:
content- the removed content- Returns:
- the event's parameters
-
-