Package org.ametys.web.trash
Class WebTrashElementDAO
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.cms.trash.element.TrashElementDAO
org.ametys.web.trash.WebTrashElementDAO
- All Implemented Interfaces:
TrashElementDAO,LogEnabled,Component,Serviceable
Add supports for a trash by site
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.cms.trash.element.TrashElementDAO
TrashElementDAO.RestorationReport -
Field Summary
Fields inherited from class org.ametys.cms.trash.element.TrashElementDAO
_resolverFields inherited from interface org.ametys.plugins.repository.trash.TrashElementDAO
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ModifiableTraversableAmetysObjectgetOrCreateRoot(TrashableAmetysObject ametysObject) Get the trash root for the object.Methods inherited from class org.ametys.cms.trash.element.TrashElementDAO
createTrashElement, empty, executeInTrashSession, find, getOrCreateCollection, remove, resolve, restore, service, trash, trashMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
WebTrashElementDAO
public WebTrashElementDAO()
-
-
Method Details
-
getOrCreateRoot
Get the trash root for the object. The root can be the root for all element shared between sites or the root for the site of the element- Overrides:
getOrCreateRootin classTrashElementDAO- Parameters:
ametysObject- the object that need to be trashed- Returns:
- the trash where the ametys will be trashed
-