Class CatalogDAO
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.odf.catalog.CatalogDAO
-
- org.ametys.plugins.odfweb.catalog.CatalogDAO
-
- All Implemented Interfaces:
LogEnabled
,Component
,Serviceable
public class CatalogDAO extends CatalogDAO
DAO for ODF catalog. OverrideCatalog
to handle web specificities.
-
-
Field Summary
-
Fields inherited from class org.ametys.odf.catalog.CatalogDAO
_catalogsManager, _currentUserProvider, _i18nUtils, _resolver, _scheduler, ROLE
-
-
Constructor Summary
Constructors Constructor Description CatalogDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
removeCatalog(String catalogId, boolean forceDeletion)
Removes an ODF catalog.void
service(ServiceManager smanager)
-
Methods inherited from class org.ametys.odf.catalog.CatalogDAO
createCatalog, editCatalog, getCatalogProperties, getCatalogProperties, getCatalogsProperties, setDefaultCatalog
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
CatalogDAO
public CatalogDAO()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classCatalogDAO
- Throws:
ServiceException
-
removeCatalog
public Map<String,Object> removeCatalog(String catalogId, boolean forceDeletion)
Description copied from class:CatalogDAO
Removes an ODF catalog.- Overrides:
removeCatalog
in classCatalogDAO
- Parameters:
catalogId
- the catalog's idforceDeletion
- if true, will not check if the catalog is referenced byProgramItem
s before deleting the catalog- Returns:
- The id of the deleted catalog, or an error
-
-