Class PortletTemplateDAO
java.lang.Object
fr.paris.lutece.portal.business.portlet.PortletTemplateDAO
- All Implemented Interfaces:
IPortletTemplateDAO
@ApplicationScoped
public final class PortletTemplateDAO
extends Object
implements IPortletTemplateDAO
Data access of the portlet templates
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckTemplateIsUsed(int nIdTemplate) Tells whether at least one portlet uses a templatevoiddelete(int nIdTemplate) Deletes a templatevoidinsert(PortletTemplate template) Inserts a template and sets its generated identifierload(int nIdTemplate) Loads a templateLoads every templateLoads the identifiers of every templateselectByPortletType(String strPortletTypeId) Loads the templates registered for a portlet typeselectByPrimaryKeyList(List<Integer> listIdTemplates) Loads the templates whose identifiers are givenselectIdsByPortletType(String strPortletTypeId) Loads the identifiers of the templates registered for a portlet typevoidstore(PortletTemplate template) Updates a template
-
Constructor Details
-
PortletTemplateDAO
public PortletTemplateDAO()
-
-
Method Details
-
insert
Inserts a template and sets its generated identifier- Specified by:
insertin interfaceIPortletTemplateDAO- Parameters:
template- the template
-
store
Updates a template- Specified by:
storein interfaceIPortletTemplateDAO- Parameters:
template- the template
-
delete
public void delete(int nIdTemplate) Deletes a template- Specified by:
deletein interfaceIPortletTemplateDAO- Parameters:
nIdTemplate- the template identifier
-
load
Loads a template- Specified by:
loadin interfaceIPortletTemplateDAO- Parameters:
nIdTemplate- the template identifier- Returns:
- the template, null when it does not exist
-
selectAll
Loads every template- Specified by:
selectAllin interfaceIPortletTemplateDAO- Returns:
- the templates, ordered by portlet type then identifier
-
selectByPortletType
Loads the templates registered for a portlet type- Specified by:
selectByPortletTypein interfaceIPortletTemplateDAO- Parameters:
strPortletTypeId- the portlet type identifier- Returns:
- the templates, ordered by identifier
-
selectByPrimaryKeyList
Loads the templates whose identifiers are given- Specified by:
selectByPrimaryKeyListin interfaceIPortletTemplateDAO- Parameters:
listIdTemplates- the template identifiers- Returns:
- the templates, ordered by portlet type then identifier
-
selectAllIds
Loads the identifiers of every template- Specified by:
selectAllIdsin interfaceIPortletTemplateDAO- Returns:
- the identifiers, ordered by portlet type then identifier
-
selectIdsByPortletType
Loads the identifiers of the templates registered for a portlet type- Specified by:
selectIdsByPortletTypein interfaceIPortletTemplateDAO- Parameters:
strPortletTypeId- the portlet type identifier- Returns:
- the identifiers, ordered by identifier
-
checkTemplateIsUsed
public boolean checkTemplateIsUsed(int nIdTemplate) Tells whether at least one portlet uses a template- Specified by:
checkTemplateIsUsedin interfaceIPortletTemplateDAO- Parameters:
nIdTemplate- the template identifier- Returns:
- true when a portlet uses the template
-