de.uplanet.lucy.server.auxiliaries.ds
Class DsUserWrapper

java.lang.Object
  extended by de.uplanet.lucy.server.auxiliaries.ds.DsUserWrapper

public class DsUserWrapper
extends java.lang.Object

Version:
$Revision: 77356 $

Constructor Summary
DsUserWrapper()
           
 
Method Summary
 void generateAndSendPassword(IUser p_user)
          A new password will be created.
 void generateAndSendPassword(IUser p_user, java.lang.String p_strLang)
          A new password will be created.
 java.util.List<IDsUserItem> getAllUsers(java.util.Comparator<IDsUserItem> p_comparator)
          Deprecated. 
 java.lang.String getContainerGuidFromUserId(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId)
          Get a User-Object from db.
 java.lang.String getUserDisplayName(IDsUserItem p_user)
          Get the nicely formatted name of an user i.e.
 java.lang.String getUserDisplayName(IUser p_user)
          Get the nicely formatted name of an user i.e.
 IUser getUserFromGuid(de.uplanet.jdbc.JdbcConnection p_conn, java.lang.String p_strGuid)
          Reads a full user from the database.
 IUser getUserFromGuid(java.lang.String p_strGuid)
          Deprecated. 
 IUser getUserFromId(int p_iUserId)
          Deprecated. 
 IUser getUserFromId(de.uplanet.jdbc.JdbcConnection p_conn, int p_iUserId)
          Get a User-Object from db.
 IUser getUserFromValueHolder(IValueHolder<?> p_vh)
          Deprecated. 
 IUser getUserFromValueHolder(de.uplanet.jdbc.JdbcConnection p_conn, IValueHolder<?> p_vh)
          Get a User-Object from db.
 IUser getUserFromVH(IValueHolder<?> p_vh)
          Deprecated. 
 IUser getUserFromVH(de.uplanet.jdbc.JdbcConnection p_conn, IValueHolder<?> p_vh)
          Get a User-Object from db.
 java.util.List<IDsUserItem> getUsersFiltered(java.util.Comparator<IDsUserItem> p_comparator, java.lang.String p_strFilter)
           
 java.util.List<IDsUserItem> getUsersFiltered(de.uplanet.jdbc.JdbcConnection p_conn, java.util.Comparator<IDsUserItem> p_comparator, IDsSelectFilter p_filter)
           
 void setUserTimeZone(IUser p_user, int p_iOffset)
          Sets a different timeZone
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DsUserWrapper

public DsUserWrapper()
Method Detail

getUsersFiltered

public java.util.List<IDsUserItem> getUsersFiltered(de.uplanet.jdbc.JdbcConnection p_conn,
                                                    java.util.Comparator<IDsUserItem> p_comparator,
                                                    IDsSelectFilter p_filter)

getUsersFiltered

public java.util.List<IDsUserItem> getUsersFiltered(java.util.Comparator<IDsUserItem> p_comparator,
                                                    java.lang.String p_strFilter)

getAllUsers

@Deprecated
public java.util.List<IDsUserItem> getAllUsers(java.util.Comparator<IDsUserItem> p_comparator)
Deprecated. 


getUserFromGuid

public IUser getUserFromGuid(de.uplanet.jdbc.JdbcConnection p_conn,
                             java.lang.String p_strGuid)
Reads a full user from the database.

Parameters:
p_conn - The database connection to be used.
p_strGuid - The user GUID
Returns:
IUser or null, on error or user doesn't exists

getUserFromGuid

@Deprecated
public IUser getUserFromGuid(java.lang.String p_strGuid)
Deprecated. 

reads a full User from the db.

Parameters:
p_strGuid -
Returns:
IUser or null, on error or user doesn't exists

getContainerGuidFromUserId

public java.lang.String getContainerGuidFromUserId(de.uplanet.jdbc.JdbcConnection p_conn,
                                                   int p_iUserId)
Get a User-Object from db.

Parameters:
p_conn - - the JDBC-Connection
p_iUserId - - the User Id
Returns:
IUser or null, on error or user doesn't exists

getUserFromId

public IUser getUserFromId(de.uplanet.jdbc.JdbcConnection p_conn,
                           int p_iUserId)
Get a User-Object from db.

Parameters:
p_conn - - the JDBC-Connection
p_iUserId - - the User Id
Returns:
IUser or null, on error or user doesn't exists

getUserFromId

@Deprecated
public IUser getUserFromId(int p_iUserId)
Deprecated. 

Get a user object from the database.

Parameters:
p_iUserId - The User ID.
Returns:
IUser or null, on error or user doesn't exists.

getUserFromVH

public IUser getUserFromVH(de.uplanet.jdbc.JdbcConnection p_conn,
                           IValueHolder<?> p_vh)
Get a User-Object from db.

Parameters:
p_conn - - the JDBC-Connection
p_vh - - IValueHolder ValueHolder with the User Id
Returns:
IUser or null, on error or user doesn't exists

getUserFromVH

@Deprecated
public IUser getUserFromVH(IValueHolder<?> p_vh)
Deprecated. 

Get a User-Object from db.

Parameters:
p_vh - IValueHolder with the User Id
Returns:
IUser or null, on error or user doesn't exists

getUserFromValueHolder

public IUser getUserFromValueHolder(de.uplanet.jdbc.JdbcConnection p_conn,
                                    IValueHolder<?> p_vh)
Get a User-Object from db.

Parameters:
p_conn - The JDBC-Connection
p_vh - IValueHolder with the User Id
Returns:
IUser or null, on error or user doesn't exists

getUserFromValueHolder

@Deprecated
public IUser getUserFromValueHolder(IValueHolder<?> p_vh)
Deprecated. 

Get a User-Object from db.

Parameters:
p_vh - IValueHolder with the User Id
Returns:
IUser or null, on error or user doesn't exists

generateAndSendPassword

public void generateAndSendPassword(IUser p_user)
A new password will be created. Generates and send an email to the given user.

Parameters:
p_user - An IUser object.

generateAndSendPassword

public void generateAndSendPassword(IUser p_user,
                                    java.lang.String p_strLang)
A new password will be created. Generates and send an email in the given language to the given user.

Parameters:
p_user - An IUser object.
p_strLang - A language identifier.

getUserDisplayName

public java.lang.String getUserDisplayName(IUser p_user)
Get the nicely formatted name of an user i.e. "last name, first name"

Parameters:
p_user - An IUser object.

getUserDisplayName

public java.lang.String getUserDisplayName(IDsUserItem p_user)
Get the nicely formatted name of an user i.e. "last name, first name"

Parameters:
p_user - An IUser object.

setUserTimeZone

public void setUserTimeZone(IUser p_user,
                            int p_iOffset)
Sets a different timeZone

Parameters:
p_user - An IUser object.


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.