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

java.lang.Object
  extended by fr.paris.lutece.plugins.myapps.modules.database.business.MyAppsDatabaseUserDAO
All Implemented Interfaces:
IMyAppsDatabaseUserDAO

public final class MyAppsDatabaseUserDAO
extends java.lang.Object
implements IMyAppsDatabaseUserDAO

MyAppsDatabaseUserDAO


Constructor Summary
MyAppsDatabaseUserDAO()
           
 
Method Summary
 void delete(int nMyAppsUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void delete(int nMyAppId, java.lang.String strUserName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 MyAppsDatabaseUser getCredentials(int nMyAppsUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the credentials information
 MyAppsDatabaseUser getCredentials(int nApplicationId, java.lang.String strUserName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the credentials information
 void insert(MyAppsDatabaseUser myAppsUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 MyAppsDatabaseUser load(int nMyAppsUserId, 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.MyAppsUser> selectMyAppsUsersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Loads the data of all the myAppsUsers and returns them in form of a collection
 void store(MyAppsDatabaseUser 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

MyAppsDatabaseUserDAO

public MyAppsDatabaseUserDAO()
Method Detail

newPrimaryKey

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

Specified by:
newPrimaryKey in interface IMyAppsDatabaseUserDAO
Parameters:
plugin - Plugin
Returns:
a new primary key

insert

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

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

load

public MyAppsDatabaseUser load(int nMyAppsUserId,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the data of the right from the table

Specified by:
load in interface IMyAppsDatabaseUserDAO
Parameters:
nMyAppsUserId - The identifier of the myAppsUser
plugin - the 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 IMyAppsDatabaseUserDAO
Parameters:
nMyAppsUserId - int identifier of the MyAppsUser to delete
plugin - the Plugin

delete

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

Specified by:
delete in interface IMyAppsDatabaseUserDAO
Parameters:
nMyAppId - the id of the MyApp
strUserName - the user name
plugin - the Plugin

store

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

Specified by:
store in interface IMyAppsDatabaseUserDAO
Parameters:
myAppsUser - the reference of the MyAppsUser
plugin - the Plugin

selectMyAppsUsersList

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

Specified by:
selectMyAppsUsersList in interface IMyAppsDatabaseUserDAO
Parameters:
plugin - the Plugin
Returns:
the collection which contains the data of all the myAppsUsers

getCredentials

public MyAppsDatabaseUser getCredentials(int nApplicationId,
                                         java.lang.String strUserName,
                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the credentials information

Specified by:
getCredentials in interface IMyAppsDatabaseUserDAO
Parameters:
nApplicationId - the application ID
strUserName - the user name
plugin - Plugin
Returns:
a MyAppsDatabaseUser

getCredentials

public MyAppsDatabaseUser getCredentials(int nMyAppsUserId,
                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the credentials information

Specified by:
getCredentials in interface IMyAppsDatabaseUserDAO
Parameters:
nMyAppsUserId - the application user ID
plugin - Plugin
Returns:
a MyAppsDatabaseUser


Copyright © 2012 Mairie de Paris. All Rights Reserved.