fr.paris.lutece.plugins.dbpage.business
Interface IDbPageDatabaseSectionDAO

All Known Implementing Classes:
DbPageDatabaseSectionDAO

public interface IDbPageDatabaseSectionDAO

IDbPageDatabaseSectionDAO interface


Method Summary
 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(java.lang.String strPageName, java.lang.String strSection, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
 DbPageDatabaseSection load(int nDbPageDatabaseSectionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of DbPageDatabaseSection from the table
 java.util.List<DbPageDatabaseSection> loadSectionsByPageId(int nDbPageId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the sections related to a page
 java.util.Collection<DbPageDatabaseSection> loadSectionsByRoleKey(java.lang.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)
           
 java.util.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
 

Method Detail

insert

void insert(DbPageDatabaseSection dbPageDatabaseSection,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
dbPageDatabaseSection - The dbPageDatabaseSection object
plugin - The plugin

countSections

int countSections(int nDbPageId,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Calculates the number of sections in a page

Parameters:
nDbPageId - The id of the page
plugin - The plugin
Returns:
The number of sections

delete

void delete(int nDbPageDatabaseSectionId,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nDbPageDatabaseSectionId - The DbPageDatabaseSection Id
plugin - The plugin

getModifySectionOrder

void getModifySectionOrder(int nPageId,
                           int nNewOrder,
                           int nIdSection,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Modify the order of a section

Parameters:
nPageId - The Page identifier
nNewOrder - The order number
nIdSection - The Section identifier
plugin - The plugin

load

DbPageDatabaseSection load(int nDbPageDatabaseSectionId,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of DbPageDatabaseSection from the table

Parameters:
nDbPageDatabaseSectionId - The identifier of DbPageDatabaseSection
plugin - The plugin
Returns:
the instance of the DbPageDatabaseSection

loadSectionsByPageId

java.util.List<DbPageDatabaseSection> loadSectionsByPageId(int nDbPageId,
                                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the sections related to a page

Parameters:
nDbPageId - The identifier of DbPageDatabase
plugin - The plugin
Returns:
the A List of the DbPageDatabaseSections

loadSectionsByRoleKey

java.util.Collection<DbPageDatabaseSection> loadSectionsByRoleKey(java.lang.String strRoleKey,
                                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
This method is used to find the sections of a dbpage

Parameters:
strRoleKey - The role key
plugin - The plugin object
Returns:
Collection of DbPageDatabaseSection

reorderSections

void reorderSections(int nIdSection1,
                     int nOrderSection1,
                     int nIdSection2,
                     int nOrderSection2,
                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Parameters:
nIdSection1 - the section order
nOrderSection1 - the section order
nIdSection2 - the section order
nOrderSection2 - the section order
plugin - The plugin

selectDbPageDatabaseSectionList

java.util.List<DbPageDatabaseSection> selectDbPageDatabaseSectionList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of dbPageDatabaseSections by page

Parameters:
plugin - The plugin
Returns:
The List of the DbPageDatabaseSections

selectIdByOrder

int selectIdByOrder(int nPageId,
                    int nSectionOrder,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the identifier of a section in a distinct order

Parameters:
nPageId - The identifier of the page
nSectionOrder - The order number
plugin - The plugin
Returns:
The order of the Section

selectMaxIdOrder

int selectMaxIdOrder(int nPageId,
                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the highest order on a page

Parameters:
nPageId - The identifier of the page
plugin - The plugin
Returns:
The order of the Section

selectOrderList

fr.paris.lutece.util.ReferenceList selectOrderList(int nPageId,
                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of orders

Parameters:
nPageId - The identifier of the page
plugin - The plugin
Returns:
The ReferenceList of the Orders

store

void store(DbPageDatabaseSection dbPageDatabaseSection,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
plugin - The plugin
dbPageDatabaseSection - The reference of dbPageDatabaseSection

isSectionInPage

boolean isSectionInPage(java.lang.String strPageName,
                        java.lang.String strSection,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)


Copyright © 2010 Mairie de Paris. All Rights Reserved.