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. OverrideCatalogto 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.voidservice(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:
servicein interfaceServiceable- Overrides:
servicein classCatalogDAO- Throws:
ServiceException
-
removeCatalog
public Map<String,Object> removeCatalog(String id)
Description copied from class:CatalogDAORemoves an ODF catalog.- Overrides:
removeCatalogin 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:
generatePDFin classCatalogDAO- Parameters:
name- The name (code) of the catalog to exportcontextualParams- The contextual parameters- Returns:
- An empty map, or an error
-
-