fr.paris.lutece.plugins.mylutece.modules.ldapdatabase.authentication.business
Class LdapUserDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.ldapdatabase.authentication.business.LdapUserDAO
All Implemented Interfaces:
ILdapUserDAO

public final class LdapUserDAO
extends java.lang.Object
implements ILdapUserDAO

This class provides Data Access methods for ldapUser objects


Method Summary
 void delete(LdapUser ldapUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(LdapUser ldapUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 LdapUser load(int nUserId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of LdapUser from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 java.util.Collection<LdapUser> selectLdapUserList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of ldapUsers
 java.util.Collection<LdapUser> selectLdapUserListForGuid(java.lang.String strGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of ldapUsers for a ldap guid
 void store(LdapUser ldapUser, 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
 

Method Detail

newPrimaryKey

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

Specified by:
newPrimaryKey in interface ILdapUserDAO
Parameters:
plugin - The Plugin using this data access service
Returns:
The new primary key

insert

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

Specified by:
insert in interface ILdapUserDAO
Parameters:
ldapUser - The ldapUser object
plugin - The Plugin using this data access service

load

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

Specified by:
load in interface ILdapUserDAO
Parameters:
nUserId - The identifier of User
plugin - The Plugin using this data access service
Returns:
the instance of the LdapUser

delete

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

Specified by:
delete in interface ILdapUserDAO
Parameters:
ldapUser - The LdapUser object
plugin - The Plugin using this data access service

store

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

Specified by:
store in interface ILdapUserDAO
Parameters:
ldapUser - The reference of ldapUser
plugin - The Plugin using this data access service

selectLdapUserList

public java.util.Collection<LdapUser> selectLdapUserList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of ldapUsers

Specified by:
selectLdapUserList in interface ILdapUserDAO
Parameters:
plugin - The Plugin using this data access service
Returns:
The Collection of the ldapUsers

selectLdapUserListForGuid

public java.util.Collection<LdapUser> selectLdapUserListForGuid(java.lang.String strGuid,
                                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of ldapUsers for a ldap guid

Specified by:
selectLdapUserListForGuid in interface ILdapUserDAO
Parameters:
strGuid - The guid of ldapUser
plugin - The Plugin using this data access service
Returns:
The Collection of the ldapUsers


Copyright © 2008 Mairie de Paris. All Rights Reserved.