fr.paris.lutece.plugins.myapps.modules.database.business
Interface IMyAppsDatabaseDAO

All Known Implementing Classes:
MyAppsDatabaseDAO

public interface IMyAppsDatabaseDAO

IMyAppsDatabaseDAO


Method Summary
 void delete(int nMyAppId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 fr.paris.lutece.portal.service.image.ImageResource getIconResource(int nMyAppId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Loads the icon representing the favorite application
 fr.paris.lutece.util.ReferenceList getMyAppsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of my apps
 boolean hasIcon(int nMyAppId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Check if the Myapps has an icon or not
 void insert(MyAppsDatabase myApp, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 fr.paris.lutece.plugins.myapps.business.MyApps load(int nMyAppId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          load the data of the right from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get a new primary key
 java.util.List<fr.paris.lutece.plugins.myapps.business.MyApps> selectMyAppsList(MyAppsDatabaseFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Loads all the myapps
 java.util.List<fr.paris.lutece.plugins.myapps.business.MyApps> selectMyAppsListByFilter(MyAppsDatabaseFilter filter, boolean bIsAscSort, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Loads all the myapps belonging to a filter
 void store(MyAppsDatabase myApp, boolean bUpdateIcon, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

newPrimaryKey

int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get a new primary key

Parameters:
plugin - Plugin
Returns:
a new primary key

insert

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

Parameters:
myApp - instance of the MyApps object to insert
plugin - the Plugin

store

void store(MyAppsDatabase myApp,
           boolean bUpdateIcon,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
myApp - the reference of the MyApps
bUpdateIcon - true if the icon must also be updated, false otherwise
plugin - the Plugin

delete

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

Parameters:
nMyAppId - int identifier of the MyApps to delete
plugin - the Plugin

load

fr.paris.lutece.plugins.myapps.business.MyApps load(int nMyAppId,
                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the data of the right from the table

Parameters:
nMyAppId - The identifier of the myApps
plugin - the Plugin
Returns:
The instance of the myApps

selectMyAppsList

java.util.List<fr.paris.lutece.plugins.myapps.business.MyApps> selectMyAppsList(MyAppsDatabaseFilter filter,
                                                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads all the myapps

Parameters:
filter - the app filter
plugin - the Plugin
Returns:
the list which contains the myApps

selectMyAppsListByFilter

java.util.List<fr.paris.lutece.plugins.myapps.business.MyApps> selectMyAppsListByFilter(MyAppsDatabaseFilter filter,
                                                                                        boolean bIsAscSort,
                                                                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads all the myapps belonging to a filter

Parameters:
filter - the app filter
bIsAscSort - true if it is sorted ascendly, false otherwise
plugin - the Plugin
Returns:
the list which contains the myApps

getIconResource

fr.paris.lutece.portal.service.image.ImageResource getIconResource(int nMyAppId,
                                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the icon representing the favorite application

Parameters:
nMyAppId - int identifier of the MyApps to fetch
plugin - the Plugin
Returns:
the image resource

getMyAppsList

fr.paris.lutece.util.ReferenceList getMyAppsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of my apps

Parameters:
plugin - Plugin
Returns:
a list of MyAppsDatabase

hasIcon

boolean hasIcon(int nMyAppId,
                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the Myapps has an icon or not

Parameters:
nMyAppId - the ID of the MyApp
plugin - Plugin
Returns:
true if it has an icon, false otherwise


Copyright © 2012 Mairie de Paris. All Rights Reserved.