public final class DbPageDatabaseSectionDAO extends Object implements IDbPageDatabaseSectionDAO
Constructor and Description |
---|
DbPageDatabaseSectionDAO() |
Modifier and Type | Method and Description |
---|---|
int |
countSections(int nDbPageId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Calculates the number of sections in a page
|
void |
delete(int nDbPageDatabaseSectionId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
getModifySectionOrder(int nPageId,
int nNewOrder,
int nIdSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Modify the order of a section
|
void |
insert(DbPageDatabaseSection dbPageDatabaseSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
boolean |
isSectionInPage(String strPageName,
String strSectionTitle,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Calculates the number of section having the same title
|
DbPageDatabaseSection |
load(int nDbPageDatabaseSectionId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of DbPageDatabaseSection from the table
|
List<DbPageDatabaseSection> |
loadSectionsByPageId(int nDbPageId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the sections related to a page
|
Collection<DbPageDatabaseSection> |
loadSectionsByRoleKey(String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
This method is used to find the sections of a dbpage
|
void |
reorderSections(int nIdSection1,
int nOrderSection1,
int nIdSection2,
int nOrderSection2,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
List<DbPageDatabaseSection> |
selectDbPageDatabaseSectionList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of dbPageDatabaseSections by page
|
int |
selectIdByOrder(int nPageId,
int nSectionOrder,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the identifier of a section in a distinct order
|
int |
selectMaxIdOrder(int nPageId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the highest order on a page
|
fr.paris.lutece.util.ReferenceList |
selectOrderList(int nPageId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of orders
|
void |
store(DbPageDatabaseSection dbPageDatabaseSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public void insert(DbPageDatabaseSection dbPageDatabaseSection, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IDbPageDatabaseSectionDAO
dbPageDatabaseSection
- The dbPageDatabaseSection objectplugin
- The pluginpublic DbPageDatabaseSection load(int nDbPageDatabaseSectionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IDbPageDatabaseSectionDAO
plugin
- The pluginnDbPageDatabaseSectionId
- The identifier of DbPageDatabaseSectionpublic List<DbPageDatabaseSection> loadSectionsByPageId(int nDbPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadSectionsByPageId
in interface IDbPageDatabaseSectionDAO
plugin
- The pluginnDbPageId
- The identifier of DbPageDatabasepublic Collection<DbPageDatabaseSection> loadSectionsByRoleKey(String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadSectionsByRoleKey
in interface IDbPageDatabaseSectionDAO
strRoleKey
- The role keyplugin
- The plugin objectpublic void delete(int nDbPageDatabaseSectionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IDbPageDatabaseSectionDAO
plugin
- The pluginnDbPageDatabaseSectionId
- The DbPageDatabaseSection Idpublic void store(DbPageDatabaseSection dbPageDatabaseSection, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IDbPageDatabaseSectionDAO
plugin
- The plugindbPageDatabaseSection
- The reference of dbPageDatabaseSectionpublic List<DbPageDatabaseSection> selectDbPageDatabaseSectionList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectDbPageDatabaseSectionList
in interface IDbPageDatabaseSectionDAO
plugin
- The pluginpublic int countSections(int nDbPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
countSections
in interface IDbPageDatabaseSectionDAO
nDbPageId
- The id of the pageplugin
- The pluginpublic boolean isSectionInPage(String strPageName, String strSectionTitle, fr.paris.lutece.portal.service.plugin.Plugin plugin)
isSectionInPage
in interface IDbPageDatabaseSectionDAO
nDbPageId
- The id of the pageplugin
- The pluginpublic fr.paris.lutece.util.ReferenceList selectOrderList(int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectOrderList
in interface IDbPageDatabaseSectionDAO
plugin
- The pluginnPageId
- The identifier of the pagepublic void getModifySectionOrder(int nPageId, int nNewOrder, int nIdSection, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getModifySectionOrder
in interface IDbPageDatabaseSectionDAO
nPageId
- The Page identifiernNewOrder
- The order numbernIdSection
- The Section identifierplugin
- The pluginpublic int selectIdByOrder(int nPageId, int nSectionOrder, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdByOrder
in interface IDbPageDatabaseSectionDAO
nPageId
- The identifier of the pagenSectionOrder
- The order numberplugin
- The pluginpublic int selectMaxIdOrder(int nPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectMaxIdOrder
in interface IDbPageDatabaseSectionDAO
nPageId
- The identifier of the pageplugin
- The pluginpublic void reorderSections(int nIdSection1, int nOrderSection1, int nIdSection2, int nOrderSection2, fr.paris.lutece.portal.service.plugin.Plugin plugin)
reorderSections
in interface IDbPageDatabaseSectionDAO
nIdSection1
- the section ordernOrderSection1
- the section ordernIdSection2
- the section ordernOrderSection2
- the section orderplugin
- The pluginCopyright © 2016 City of Paris. All rights reserved.