public final class MyAppsDatabaseDAO extends Object implements IMyAppsDatabaseDAO
| Constructor and Description |
|---|
MyAppsDatabaseDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nMyAppsId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
fr.paris.lutece.portal.service.image.ImageResource |
getIconResource(int nIdMyApps,
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 nIdApps,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the Myapps has an icon or not
|
void |
insert(MyAppsDatabase myApps,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
fr.paris.lutece.plugins.myapps.business.MyApps |
load(int nId,
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
|
List<fr.paris.lutece.plugins.myapps.business.MyApps> |
selectMyAppsList(MyAppsDatabaseFilter filter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads all the myapps
|
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
|
List<fr.paris.lutece.plugins.myapps.business.MyApps> |
selectMyAppsListByUser(String strUserName,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads all the myapps belonging to a user ordered by the order specify by the user
|
void |
store(MyAppsDatabase myApps,
boolean bUpdateIcon,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
newPrimaryKey in interface IMyAppsDatabaseDAOplugin - Pluginpublic void insert(MyAppsDatabase myApps, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IMyAppsDatabaseDAOmyApps - instance of the MyApps object to insertplugin - the Pluginpublic fr.paris.lutece.plugins.myapps.business.MyApps load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IMyAppsDatabaseDAOnId - The identifier of the myAppsplugin - the Pluginpublic void delete(int nMyAppsId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IMyAppsDatabaseDAOnMyAppsId - int identifier of the MyApps to deleteplugin - the Pluginpublic void store(MyAppsDatabase myApps, boolean bUpdateIcon, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IMyAppsDatabaseDAOmyApps - the reference of the MyAppsbUpdateIcon - true if the icon must also be updated, false otherwiseplugin - the Pluginpublic List<fr.paris.lutece.plugins.myapps.business.MyApps> selectMyAppsList(MyAppsDatabaseFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectMyAppsList in interface IMyAppsDatabaseDAOfilter - the app filterplugin - the Pluginpublic List<fr.paris.lutece.plugins.myapps.business.MyApps> selectMyAppsListByFilter(MyAppsDatabaseFilter filter, boolean bIsAscSort, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectMyAppsListByFilter in interface IMyAppsDatabaseDAOfilter - the app filterbIsAscSort - true if it is sorted ascendly, false otherwiseplugin - the Pluginpublic List<fr.paris.lutece.plugins.myapps.business.MyApps> selectMyAppsListByUser(String strUserName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectMyAppsListByUser in interface IMyAppsDatabaseDAOstrUserName - the name of the userplugin - the Pluginpublic fr.paris.lutece.portal.service.image.ImageResource getIconResource(int nIdMyApps,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getIconResource in interface IMyAppsDatabaseDAOnIdMyApps - int identifier of the MyApps to fetchplugin - the Pluginpublic fr.paris.lutece.util.ReferenceList getMyAppsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
getMyAppsList in interface IMyAppsDatabaseDAOplugin - PluginMyAppsDatabasepublic boolean hasIcon(int nIdApps,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasIcon in interface IMyAppsDatabaseDAOnIdApps - the ID of the MyAppplugin - PluginCopyright © 2018 City of Paris. All rights reserved.