Class CatalogDAO
- java.lang.Object
-
- org.ametys.odf.catalog.CatalogDAO
-
- org.ametys.plugins.odfweb.catalog.CatalogDAO
-
- All Implemented Interfaces:
Component
,Contextualizable
,Serviceable
public class CatalogDAO extends CatalogDAO
DAO for ODF catalog. OverrideCatalog
to handle web specificities.
-
-
Field Summary
Fields Modifier and Type Field Description private OdfPageHandler
_odfPageHandler
-
Fields inherited from class org.ametys.odf.catalog.CatalogDAO
_catalogsManager, _context, _currentUserProvider, _manager, _resolver, _userManager, ROLE
-
-
Constructor Summary
Constructors Constructor Description CatalogDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
generatePDF(String name, Map<String,Object> contextualParams)
Generates the PDF of this catalog.Map<String,Object>
removeCatalog(String id)
Removes an ODF catalog.void
service(ServiceManager smanager)
-
Methods inherited from class org.ametys.odf.catalog.CatalogDAO
contextualize, createCatalog, editCatalog, getCatalogProperties, getCatalogProperties, getCatalogsProperties, setDefaultCatalog
-
-
-
-
Field Detail
-
_odfPageHandler
private OdfPageHandler _odfPageHandler
-
-
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 id)
Description copied from class:CatalogDAO
Removes an ODF catalog.- Overrides:
removeCatalog
in classCatalogDAO
- Parameters:
id
- The id of the catalog to remove- Returns:
- The id of the deleted catalog, or an error
-
generatePDF
public Map<String,Object> generatePDF(String name, Map<String,Object> contextualParams)
Generates the PDF of this catalog.- Overrides:
generatePDF
in classCatalogDAO
- Parameters:
name
- The name (code) of the catalog to exportcontextualParams
- The contextual parameters- Returns:
- An empty map, or an error
-
-