fr.paris.lutece.plugins.myapps.modules.database.business
Class MyAppsDatabaseHome

java.lang.Object
  extended by fr.paris.lutece.plugins.myapps.modules.database.business.MyAppsDatabaseHome

public final class MyAppsDatabaseHome
extends java.lang.Object

MyAppsDatabaseHome


Method Summary
static void create(MyAppsDatabase myApp, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of myApps
static fr.paris.lutece.plugins.myapps.business.MyApps findByPrimaryKey(int nMyAppId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a myApps whose identifier is specified in parameter
static fr.paris.lutece.portal.service.image.ImageResource getImageResource(int nMyAppId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the image resource
static fr.paris.lutece.util.ReferenceList getMyAppsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of myApps
static java.util.List<fr.paris.lutece.plugins.myapps.business.MyApps> getMyAppsListByFilter(MyAppsDatabaseFilter filter, boolean bIsAscSort, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Loads a list of myApps belonging to a filter
static boolean hasIcon(int nMyAppId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Check if the given MyApp Id has an icon or not
static int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get a new primary key
static void remove(int nMyAppId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the myApps whose identifier is specified in parameter
static java.util.List<fr.paris.lutece.plugins.myapps.business.MyApps> selectMyAppsList(MyAppsDatabaseFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Loads a list of all myApps
static void update(MyAppsDatabase myApp, boolean bUpdateIcon, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the myApps which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newPrimaryKey

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

Parameters:
plugin - Plugin
Returns:
a new primary key

create

public static void create(MyAppsDatabase myApp,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of myApps

Parameters:
myApp - The instance of the MyApps which contains the informations to store
plugin - the Plugin

update

public static void update(MyAppsDatabase myApp,
                          boolean bUpdateIcon,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the myApps which is specified in parameter

Parameters:
myApp - The instance of the MyApps which contains the data to store
bUpdateIcon - true if the icon must also be updated, false otherwise
plugin - the Plugin

remove

public static void remove(int nMyAppId,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the myApps whose identifier is specified in parameter

Parameters:
nMyAppId - The myApp Id
plugin - the Plugin

findByPrimaryKey

public static fr.paris.lutece.plugins.myapps.business.MyApps findByPrimaryKey(int nMyAppId,
                                                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a myApps whose identifier is specified in parameter

Parameters:
nMyAppId - The myApps primary key
plugin - the Plugin
Returns:
an instance of MyApps

selectMyAppsList

public static java.util.List<fr.paris.lutece.plugins.myapps.business.MyApps> selectMyAppsList(MyAppsDatabaseFilter filter,
                                                                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads a list of all myApps

Parameters:
filter - the app filter
plugin - the Plugin
Returns:
the collection which contains the data of all the myApps

getMyAppsListByFilter

public static java.util.List<fr.paris.lutece.plugins.myapps.business.MyApps> getMyAppsListByFilter(MyAppsDatabaseFilter filter,
                                                                                                   boolean bIsAscSort,
                                                                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads a list of myApps belonging to a filter

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

getImageResource

public static fr.paris.lutece.portal.service.image.ImageResource getImageResource(int nMyAppId,
                                                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the image resource

Parameters:
nMyAppId - The myApp Id
plugin - the Plugin
Returns:
ImageResource

getMyAppsList

public static fr.paris.lutece.util.ReferenceList getMyAppsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of myApps

Parameters:
plugin - Plugin
Returns:
a list of MyApps

hasIcon

public static boolean hasIcon(int nMyAppId,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the given MyApp Id has an icon or not

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


Copyright © 2012 Mairie de Paris. All Rights Reserved.