edu.vt.middleware.registry.manage.password
Class RegistryFinder

java.lang.Object
  extended by edu.vt.middleware.registry.common.CommonRegistryFinder
      extended by edu.vt.middleware.registry.manage.password.RegistryFinder

public final class RegistryFinder
extends CommonRegistryFinder

RegistryFinder provides methods for doing registry searches with entity beans.

Version:
$Revision: 7883 $
Author:
Daniel Fisher

Field Summary
private static Log LOG
          Log for this class
 
Constructor Summary
RegistryFinder(EntityManager em)
          This creates a RegistryFinder with the supplied Entity Manager.
 
Method Summary
 String getExternalEmailAddress(Long uid)
          This returns the external email address for the supplied user id.
 List<String> getPasswords(String userid)
          This returns the 'SHA-1' passwords for the supplied user id.
 List<PasswordQuestion> getQuestions(String userid)
          This returns the password questions for the supplied user id.
 
Methods inherited from class edu.vt.middleware.registry.common.CommonRegistryFinder
emailAccountExists, entitlementExists, flushAndRefresh, getAccountState, getDataTypes, getEntitlementData, getEntityManager, getGroup, getGroup, getPerson, getPerson, getPersonUid, getService, getService, getTicket, getTicket, getUserid, groupExists, guestIdExists, personExists, serviceExists, ticketExists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Log LOG
Log for this class

Constructor Detail

RegistryFinder

public RegistryFinder(EntityManager em)
This creates a RegistryFinder with the supplied Entity Manager.

Parameters:
em - EntityManager
Method Detail

getPasswords

public List<String> getPasswords(String userid)
                          throws ApplicationServerException
This returns the 'SHA-1' passwords for the supplied user id.

Parameters:
userid - String
Returns:
List - of passwords
Throws:
ApplicationServerException - if the method fails
FinderFailedException - if more than 1 uupid exists

getQuestions

public List<PasswordQuestion> getQuestions(String userid)
                                    throws ApplicationServerException
This returns the password questions for the supplied user id.

Parameters:
userid - String
Returns:
List - of password questions
Throws:
ApplicationServerException - if the method fails
FinderFailedException - if more than 1 uupid exists

getExternalEmailAddress

public String getExternalEmailAddress(Long uid)
                               throws ApplicationServerException
This returns the external email address for the supplied user id.

Parameters:
uid - Long
Returns:
String - external email address
Throws:
ApplicationServerException - if the method fails
FinderFailedException - if more than 1 uupid exists


Copyright © 2008 Virginia Tech. All Rights Reserved.