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
DAO for ODF catalog.
Override
Catalog to handle web specificities.-
Field Summary
Fields inherited from class org.ametys.odf.catalog.CatalogDAO
_catalogsManager, _currentUserProvider, _i18nUtils, _resolver, _scheduler, ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionremoveCatalog(String catalogId, boolean forceDeletion) Removes an ODF catalog.voidservice(ServiceManager smanager) Methods inherited from class org.ametys.odf.catalog.CatalogDAO
createCatalog, editCatalog, getCatalogProperties, getCatalogProperties, getCatalogsProperties, setDefaultCatalogMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
CatalogDAO
public CatalogDAO()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classCatalogDAO- Throws:
ServiceException
-
removeCatalog
Description copied from class:CatalogDAORemoves an ODF catalog.- Overrides:
removeCatalogin classCatalogDAO- Parameters:
catalogId- the catalog's idforceDeletion- if true, will not check if the catalog is referenced byProgramItems before deleting the catalog- Returns:
- The id of the deleted catalog, or an error
-