edu.vt.middleware.registry.manage.person
Class PersonManagerBean

java.lang.Object
  extended by edu.vt.middleware.registry.manage.AbstractManager
      extended by edu.vt.middleware.registry.manage.AbstractManagerEndpoint
          extended by edu.vt.middleware.registry.manage.person.PersonManagerBean
All Implemented Interfaces:
PersonManager, Manager, PersonManagerLocal, PersonManagerRemote, Provider<Source>

@DeclareRoles(value={"ADMIN","PORTAL"})
@RunAs(value="ADMIN")
@WebServiceProvider(wsdlLocation="/META-INF/wsdl/PersonManager.wsdl",
                    serviceName="PersonManagerService",
                    portName="PersonManager",
                    targetNamespace="http://middleware.vt.edu/ws/ed/manage/person/")
@ServiceMode(value=PAYLOAD)
public class PersonManagerBean
extends AbstractManagerEndpoint
implements PersonManagerLocal, PersonManagerRemote

The PersonManagerBean provides an interface to the management of person records in the Registry.

Version:
$Revision: 7911 $
Author:
Daniel Fisher

Field Summary
private  EmailManager emailManager
          Class for using the emailManager
private  EntitlementManager entitlementManager
          Class for using the entitlementmanager
private  GroupManager groupManager
          Class for using the groupmanager
private static Log LOG
          Log for this class
private  NameManager nameManager
          Class for using the namemanager
private  PidManager pidManager
          Class for using the pidmanager
private  RegistryFinder registryFinder
          Class for finding registry beans
private  RegistryUpdater registryUpdater
          Class for updating the registry
private  ServiceManager serviceManager
          Class for using the servicemanager
 
Fields inherited from class edu.vt.middleware.registry.manage.AbstractManager
logger, sessionContext
 
Fields inherited from interface edu.vt.middleware.ed.manage.PersonManager
LOCAL_JNDI_NAME, REMOTE_JNDI_NAME
 
Fields inherited from interface edu.vt.middleware.ed.manage.PersonManager
LOCAL_JNDI_NAME, REMOTE_JNDI_NAME
 
Constructor Summary
PersonManagerBean()
           
 
Method Summary
 void addAffiliation(Long uid, PersonAffiliation affiliation)
          
 void addInstantMessagingId(Long uid, String id)
          
 void addLabeledUri(Long uid, String labeledUri)
          
 void addPerson(String pid, String[] pids, RoleType roleType)
          
 void addSuppressedAttribute(Long uid, PersonAttribute attribute)
          
 void archivePerson(Long uid, ArchiveType archiveType)
          
 Long createGuestPerson(Long sponsorUid)
          
 Long createPerson(String bannerPidm, Set<PersonAffiliation> affiliations)
          
 Long createSponsoredPerson(PersonName name, String ssn, Calendar birthdate, String responsibleUupid, Set<PersonAffiliation> affiliations)
          
 boolean hasAffiliation(Long uid, Set<PersonAffiliation> affiliations)
          
 void removeInstantMessagingId(Long uid, String id)
          
 void removeLabeledUri(Long uid, String labeledUri)
          
 void removePerson(Long uid)
          
 void removePerson(String pid, String[] pids)
          
 void removePerson(String pid, String[] pids, RoleType roleType)
          
 void removeSuppressedAttribute(Long uid, PersonAttribute attribute)
          
 void setAffiliations(Long uid, Set<PersonAffiliation> affiliations)
          
 void setBannerPidm(Long uid, String newPidm)
          
 void setBirthdate(Long uid, Calendar birthdate)
          
 void setConfidentialFlag(Long uid, boolean confidential)
          
 void setDeceasedFlag(Long uid, boolean deceased)
          
 void setEmailManager(EmailManagerLocal emailm)
          Sets the Email Manager.
 void setEntitlementManager(EntitlementManagerLocal entlm)
          Sets the Entitlement Manager.
 void setEntityManager(EntityManager em)
          Sets the Entity Manager.
 void setGroupManager(GroupManagerLocal gm)
          Sets the Group Manager.
private  void setIdentifier(Long uid, Identifier id)
          This changes the identifier for the supplied UID.
 void setNameManager(NameManagerLocal nm)
          Sets the Name Manager.
 void setPidManager(PidManagerLocal pm)
          Sets the Pid Manager.
 void setResponsibleUupid(Long uid, String responsibleUupid)
          
 void setServiceManager(ServiceManagerLocal sm)
          Sets the Service Manager.
 void setSMIMECertificate(Long uid, Certificate cert)
          
 void setSsn(Long uid, String newSsn)
          
 void setVtIdNumber(Long uid, String newId)
          
 void setX509Certificate(Long uid, Certificate cert)
          
 
Methods inherited from class edu.vt.middleware.registry.manage.AbstractManagerEndpoint
init, invoke
 
Methods inherited from class edu.vt.middleware.registry.manage.AbstractManager
addEntitlementToReplicate, addGroupToReplicate, addPersonToReplicate, addServiceToReplicate, getReplChanges, getSystemCalendar, setEnqueueReplication, setSessionContext, setSystemCalendar
 
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


emailManager

private EmailManager emailManager
Class for using the emailManager


entitlementManager

private EntitlementManager entitlementManager
Class for using the entitlementmanager


groupManager

private GroupManager groupManager
Class for using the groupmanager


nameManager

private NameManager nameManager
Class for using the namemanager


pidManager

private PidManager pidManager
Class for using the pidmanager


serviceManager

private ServiceManager serviceManager
Class for using the servicemanager


registryUpdater

private RegistryUpdater registryUpdater
Class for updating the registry


registryFinder

private RegistryFinder registryFinder
Class for finding registry beans

Constructor Detail

PersonManagerBean

public PersonManagerBean()
Method Detail

setEntityManager

public void setEntityManager(EntityManager em)
Sets the Entity Manager.

Parameters:
em - EntityManager

setEmailManager

public void setEmailManager(EmailManagerLocal emailm)
Sets the Email Manager.

Parameters:
emailm - EmailManager

setEntitlementManager

public void setEntitlementManager(EntitlementManagerLocal entlm)
Sets the Entitlement Manager.

Parameters:
entlm - EntitlementManager

setGroupManager

public void setGroupManager(GroupManagerLocal gm)
Sets the Group Manager.

Parameters:
gm - GroupManager

setNameManager

public void setNameManager(NameManagerLocal nm)
Sets the Name Manager.

Parameters:
nm - NameManager

setPidManager

public void setPidManager(PidManagerLocal pm)
Sets the Pid Manager.

Parameters:
pm - PidManager

setServiceManager

public void setServiceManager(ServiceManagerLocal sm)
Sets the Service Manager.

Parameters:
sm - ServiceManager

createPerson

@RolesAllowed(value="ADMIN")
public Long createPerson(String bannerPidm,
                                           Set<PersonAffiliation> affiliations)
                  throws ApplicationException

Specified by:
createPerson in interface PersonManager
Throws:
ApplicationException

createSponsoredPerson

@RolesAllowed(value="ADMIN")
public Long createSponsoredPerson(PersonName name,
                                                    String ssn,
                                                    Calendar birthdate,
                                                    String responsibleUupid,
                                                    Set<PersonAffiliation> affiliations)
                           throws ApplicationException

Specified by:
createSponsoredPerson in interface PersonManager
Throws:
ApplicationException

createGuestPerson

@RolesAllowed(value="ADMIN")
public Long createGuestPerson(Long sponsorUid)
                       throws ApplicationException

Specified by:
createGuestPerson in interface PersonManager
Throws:
ApplicationException

archivePerson

@RolesAllowed(value="ADMIN")
public void archivePerson(Long uid,
                                            ArchiveType archiveType)
                   throws ApplicationException

Specified by:
archivePerson in interface PersonManager
Throws:
ApplicationException

removePerson

@RolesAllowed(value="ADMIN")
public void removePerson(Long uid)
                  throws ApplicationException

Specified by:
removePerson in interface PersonManager
Throws:
ApplicationException

setResponsibleUupid

@RolesAllowed(value="ADMIN")
public void setResponsibleUupid(Long uid,
                                                  String responsibleUupid)
                         throws ApplicationException

Specified by:
setResponsibleUupid in interface PersonManager
Throws:
ApplicationException

setSsn

@RolesAllowed(value="ADMIN")
public void setSsn(Long uid,
                                     String newSsn)
            throws ApplicationException

Specified by:
setSsn in interface PersonManager
Throws:
ApplicationException

setBannerPidm

@RolesAllowed(value="ADMIN")
public void setBannerPidm(Long uid,
                                            String newPidm)
                   throws ApplicationException

Specified by:
setBannerPidm in interface PersonManager
Throws:
ApplicationException

setVtIdNumber

@RolesAllowed(value="ADMIN")
public void setVtIdNumber(Long uid,
                                            String newId)
                   throws ApplicationException

Specified by:
setVtIdNumber in interface PersonManager
Throws:
ApplicationException

setIdentifier

private void setIdentifier(Long uid,
                           Identifier id)
                    throws ApplicationException
This changes the identifier for the supplied UID. If a identifier does not exist, it is created.

Parameters:
uid - Long that is a person in the registry
id - Identifier the new id
Throws:
ApplicationException - if an error occurs
IdentifierFoundException - if the supplied id already exists

setBirthdate

@RolesAllowed(value="ADMIN")
public void setBirthdate(Long uid,
                                           Calendar birthdate)
                  throws ApplicationException

Specified by:
setBirthdate in interface PersonManager
Throws:
ApplicationException

setDeceasedFlag

@RolesAllowed(value="ADMIN")
public void setDeceasedFlag(Long uid,
                                              boolean deceased)
                     throws ApplicationException

Specified by:
setDeceasedFlag in interface PersonManager
Throws:
ApplicationException

setConfidentialFlag

@RolesAllowed(value="ADMIN")
public void setConfidentialFlag(Long uid,
                                                  boolean confidential)
                         throws ApplicationException

Specified by:
setConfidentialFlag in interface PersonManager
Throws:
ApplicationException

hasAffiliation

@RolesAllowed(value="ADMIN")
public boolean hasAffiliation(Long uid,
                                                Set<PersonAffiliation> affiliations)

Specified by:
hasAffiliation in interface PersonManager

setAffiliations

@RolesAllowed(value="ADMIN")
public void setAffiliations(Long uid,
                                              Set<PersonAffiliation> affiliations)
                     throws ApplicationException

Specified by:
setAffiliations in interface PersonManager
Throws:
ApplicationException

addAffiliation

@RolesAllowed(value="ADMIN")
public void addAffiliation(Long uid,
                                             PersonAffiliation affiliation)
                    throws ApplicationException

Specified by:
addAffiliation in interface PersonManager
Throws:
ApplicationException

addSuppressedAttribute

@RolesAllowed(value={"ADMIN","PORTAL"})
public void addSuppressedAttribute(Long uid,
                                                     PersonAttribute attribute)
                            throws ApplicationException

Specified by:
addSuppressedAttribute in interface PersonManager
Throws:
ApplicationException

removeSuppressedAttribute

@RolesAllowed(value={"ADMIN","PORTAL"})
public void removeSuppressedAttribute(Long uid,
                                                        PersonAttribute attribute)
                               throws ApplicationException

Specified by:
removeSuppressedAttribute in interface PersonManager
Throws:
ApplicationException

setX509Certificate

@RolesAllowed(value="ADMIN")
public void setX509Certificate(Long uid,
                                                 Certificate cert)
                        throws ApplicationException

Specified by:
setX509Certificate in interface PersonManager
Throws:
ApplicationException

setSMIMECertificate

@RolesAllowed(value="ADMIN")
public void setSMIMECertificate(Long uid,
                                                  Certificate cert)
                         throws ApplicationException

Specified by:
setSMIMECertificate in interface PersonManager
Throws:
ApplicationException

addLabeledUri

@RolesAllowed(value={"ADMIN","PORTAL"})
public void addLabeledUri(Long uid,
                                            String labeledUri)
                   throws ApplicationException

Specified by:
addLabeledUri in interface PersonManager
Throws:
ApplicationException

removeLabeledUri

@RolesAllowed(value={"ADMIN","PORTAL"})
public void removeLabeledUri(Long uid,
                                               String labeledUri)
                      throws ApplicationException

Specified by:
removeLabeledUri in interface PersonManager
Throws:
ApplicationException

addInstantMessagingId

@RolesAllowed(value={"ADMIN","PORTAL"})
public void addInstantMessagingId(Long uid,
                                                    String id)
                           throws ApplicationException

Specified by:
addInstantMessagingId in interface PersonManager
Throws:
ApplicationException

removeInstantMessagingId

@RolesAllowed(value={"ADMIN","PORTAL"})
public void removeInstantMessagingId(Long uid,
                                                       String id)
                              throws ApplicationException

Specified by:
removeInstantMessagingId in interface PersonManager
Throws:
ApplicationException

addPerson

@RolesAllowed(value="ADMIN")
public void addPerson(String pid,
                                        String[] pids,
                                        RoleType roleType)
               throws ApplicationException

Specified by:
addPerson in interface PersonManager
Throws:
ApplicationException

removePerson

@RolesAllowed(value="ADMIN")
public void removePerson(String pid,
                                           String[] pids)
                  throws ApplicationException

Specified by:
removePerson in interface PersonManager
Throws:
ApplicationException

removePerson

@RolesAllowed(value="ADMIN")
public void removePerson(String pid,
                                           String[] pids,
                                           RoleType roleType)
                  throws ApplicationException

Specified by:
removePerson in interface PersonManager
Throws:
ApplicationException


Copyright © 2008 Virginia Tech. All Rights Reserved.