Package org.ametys.cms.repository
Class ContentVersionHistoryHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.repository.ContentVersionHistoryHelper
- All Implemented Interfaces:
LogEnabled
,Component
,Serviceable
public class ContentVersionHistoryHelper
extends AbstractLogEnabled
implements Component, Serviceable
Helper to manipulate the version history
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javax.jcr.Repository
The repository providerstatic final String
The avalon role -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearUnusedHistory
(String contentType) Remove the unused version history of contents of a given typevoid
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
The avalon role -
_repository
The repository provider
-
-
Constructor Details
-
ContentVersionHistoryHelper
public ContentVersionHistoryHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
clearUnusedHistory
Remove the unused version history of contents of a given type- Parameters:
contentType
- the id of a content type used to limit the targeted version history.
-