fr.paris.lutece.plugins.myapps.business
Class MyAppsUserDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.myapps.business.MyAppsUserDAO
All Implemented Interfaces:
IMyAppsUserDAO

public final class MyAppsUserDAO
extends java.lang.Object
implements IMyAppsUserDAO

This class provides Data Access methods for MyAppsUser objects


Constructor Summary
MyAppsUserDAO()
           
 
Method Summary
 void delete(int nMyAppsUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 MyAppsUser getCredentials(int nApplicationId, java.lang.String strUserName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Loads the a user credentials for a specific application
 void insert(MyAppsUser myAppsUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 MyAppsUser load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the myAppsUser from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 java.util.List<MyAppsUser> selectMyAppsUsersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the myAppsUsers and returns them in form of a collection
 void store(MyAppsUser myAppsUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyAppsUserDAO

public MyAppsUserDAO()
Method Detail

newPrimaryKey

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

Returns:
Plugin plugin

insert

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

Specified by:
insert in interface IMyAppsUserDAO
Parameters:
myAppsUser - instance of the MyAppsUser object to insert
Plugin - plugin

load

public MyAppsUser load(int nId,
                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the myAppsUser from the table

Specified by:
load in interface IMyAppsUserDAO
Parameters:
nId - The identifier of the myAppsUser
Plugin - plugin
Returns:
the instance of the MyAppsUser

delete

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

Specified by:
delete in interface IMyAppsUserDAO
Parameters:
nMyAppsUserId - The identifier of the myAppsUser
Plugin - plugin

store

public void store(MyAppsUser myAppsUser,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Specified by:
store in interface IMyAppsUserDAO
Parameters:
myAppsUser - The reference of the myAppsUser
Plugin - plugin

selectMyAppsUsersList

public java.util.List<MyAppsUser> selectMyAppsUsersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the myAppsUsers and returns them in form of a collection

Specified by:
selectMyAppsUsersList in interface IMyAppsUserDAO
Parameters:
Plugin - plugin
Returns:
The Collection which contains the data of all the myAppsUsers

getCredentials

public MyAppsUser getCredentials(int nApplicationId,
                                 java.lang.String strUserName,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IMyAppsUserDAO
Loads the a user credentials for a specific application

Specified by:
getCredentials in interface IMyAppsUserDAO
plugin - the Plugin
Returns:
the myappuser for a specific application


Copyright © 2008 Mairie de Paris. All Rights Reserved.