edu.vt.middleware.registry.manage.name
Class RegistryUpdater
java.lang.Object
edu.vt.middleware.registry.common.CommonRegistryFinder
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 |
| 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 |
LOG
private static final Log LOG
- Log for this class
RegistryUpdater
public RegistryUpdater(EntityManager em)
- This creates a RegistryUpdater with the supplied Entity Manager.
- Parameters:
em - EntityManager
setPersonName
public void setPersonName(Long uid,
PersonName name)
throws ApplicationServerException
- This attempts to set the name entry for the supplied UID.
- Parameters:
uid - Longname - 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 - Longtype - 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.