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

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.ldapdatabase.authentication.business.LdapUserHome

public final class LdapUserHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for LdapUser objects


Method Summary
static LdapUser create(LdapUser ldapUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of ldapUser
static LdapUser findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a LdapUser whose identifier is specified in parameter
static java.util.Collection findLdapUsersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a collection of LdapUser objects
static java.util.Collection findLdapUsersListForGuid(java.lang.String strLdapGuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns a collection of LdapUser objects for a guid
static void remove(LdapUser ldapUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the ldapUser whose identifier is specified in parameter
static LdapUser update(LdapUser ldapUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of the ldapUser 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

create

public static LdapUser create(LdapUser ldapUser,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of ldapUser

Parameters:
ldapUser - The instance of the LdapUser which contains the informations to store
plugin - The current plugin using this method
Returns:
The instance of LdapUser which has been created with its primary key.

update

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

Parameters:
ldapUser - The instance of the LdapUser which contains the data to store
plugin - The current plugin using this method
Returns:
The instance of the LdapUser which has been updated

remove

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

Parameters:
ldapUser - The LdapUser object to remove
plugin - The current plugin using this method

findByPrimaryKey

public static LdapUser findByPrimaryKey(int nKey,
                                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a LdapUser whose identifier is specified in parameter

Parameters:
nKey - The Primary key of the ldapUser
plugin - The current plugin using this method
Returns:
An instance of LdapUser

findLdapUsersList

public static java.util.Collection findLdapUsersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of LdapUser objects

Parameters:
plugin - The current plugin using this method
Returns:
A collection of LdapUser

findLdapUsersListForGuid

public static java.util.Collection findLdapUsersListForGuid(java.lang.String strLdapGuid,
                                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of LdapUser objects for a guid

Parameters:
strLdapGuid - The guid of the ldapUser
plugin - The current plugin using this method
Returns:
A collection of LdapUser


Copyright © 2008 Mairie de Paris. All Rights Reserved.