edu.vt.middleware.registry.manage.name
Class RegistryUpdater

java.lang.Object
  extended by edu.vt.middleware.registry.common.CommonRegistryFinder
      extended by edu.vt.middleware.registry.manage.name.RegistryUpdater

public final class RegistryUpdater
extends CommonRegistryFinder

Implements the details of changing name data in the Virginia Tech Registry.

Version:
$Revision: 7703 $
Author:
Daniel Fisher

Field Summary
private static Log LOG
          Log for this class
 
Constructor Summary
RegistryUpdater(EntityManager em)
          This creates a RegistryUpdater with the supplied Entity Manager.
 
Method Summary
 void removePersonName(Long uid, PersonNameType type)
          Remove a person's name from the Registry.
 void setPersonName(Long uid, PersonName name)
          This attempts to set the name entry for the supplied UID.
 
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

RegistryUpdater

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

Parameters:
em - EntityManager
Method Detail

setPersonName

public void setPersonName(Long uid,
                          PersonName name)
                   throws ApplicationServerException
This attempts to set the name entry for the supplied UID.

Parameters:
uid - Long
name - PersonName to set
Throws:
ApplicationServerException - if the method fails

removePersonName

public void removePersonName(Long uid,
                             PersonNameType type)
                      throws ApplicationServerException
Remove a person's name from the Registry. Only non-preferred and alumni names are allowed to be removed. Preferred name is never removed.

Parameters:
uid - Long
type - PersonNameType to check
Throws:
ApplicationServerException - if the method fails
NoResultFoundException - if the person cannot be found
FinderFailedException - if the a name cannot be found


Copyright © 2008 Virginia Tech. All Rights Reserved.