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

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

public final class MyAppsDatabaseUserHome
extends java.lang.Object

MyAppsDatabaseUserHome


Method Summary
static void create(MyAppsDatabaseUser myAppsUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of myAppsUser
static fr.paris.lutece.plugins.myapps.business.MyAppsUser findByPrimaryKey(int nMyAppsUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a myAppsUser whose identifier is specified in parameter
static fr.paris.lutece.plugins.myapps.business.MyAppsUser getCredentials(int nMyAppsUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Loads the data of all the myAppsUsers and returns them in form of a collection
static fr.paris.lutece.plugins.myapps.business.MyAppsUser getCredentials(int nMyAppId, java.lang.String strUserName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Loads the data of all the myAppsUsers and returns them in form of a collection
static java.util.Collection<fr.paris.lutece.plugins.myapps.business.MyAppsUser> getMyAppsUsersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Loads the data of all the myAppsUsers and returns them in form of a collection
static int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get a new primary key
static void remove(int nMyAppsUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the myAppsUser whose identifier is specified in parameter
static void remove(int nMyAppId, java.lang.String strUserName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the myAppsUser whose identifier is specified in parameter
static void update(MyAppsDatabaseUser myAppsUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the myAppsUser 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(MyAppsDatabaseUser myAppsUser,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of myAppsUser

Parameters:
myAppsUser - The instance of the MyAppsUser which contains the informations to store
plugin - the Plugin

update

public static void update(MyAppsDatabaseUser myAppsUser,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the myAppsUser which is specified in parameter

Parameters:
myAppsUser - The instance of the MyAppsUser which contains the data to store
plugin - the Plugin

remove

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

Parameters:
nMyAppsUserId - The myAppsUser Id
plugin - the Plugin

remove

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

Parameters:
nMyAppId - The Id of the application
strUserName - the user name
plugin - the Plugin

findByPrimaryKey

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

Parameters:
nMyAppsUserId - The myAppsUser primary key
plugin - the Plugin
Returns:
an instance of MyAppsUser

getMyAppsUsersList

public static java.util.Collection<fr.paris.lutece.plugins.myapps.business.MyAppsUser> getMyAppsUsersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the data of all the myAppsUsers and returns them in form of a collection

Parameters:
plugin - the Plugin
Returns:
the collection which contains the data of all the myAppsUsers

getCredentials

public static fr.paris.lutece.plugins.myapps.business.MyAppsUser getCredentials(int nMyAppId,
                                                                                java.lang.String strUserName,
                                                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the data of all the myAppsUsers and returns them in form of a collection

Parameters:
nMyAppId - the ID of the appication
strUserName - the user name
plugin - the Plugin
Returns:
a MyAppsUser

getCredentials

public static fr.paris.lutece.plugins.myapps.business.MyAppsUser getCredentials(int nMyAppsUserId,
                                                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the data of all the myAppsUsers and returns them in form of a collection

Parameters:
nMyAppsUserId - the ID of the appication user
plugin - the Plugin
Returns:
a MyAppsUser


Copyright © 2012 Mairie de Paris. All Rights Reserved.