|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.registry.common.CommonRegistryFinder
edu.vt.middleware.registry.manage.person.RegistryUpdater
public final class RegistryUpdater
RegistryUpdater implements the details of changing person data
in the Virginia Tech Registry.
| 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 |
addAffiliation(Long uid,
PersonAffiliation affiliation)
This attempts to add a new person affiliation entry record to the registry for the supplied UID. |
void |
addInstantMessagingId(Long uid,
String instantMessagingId)
This attempts to add an instant messaging id for the supplied UID. |
void |
addLabeledUri(Long uid,
String labeledUri)
This attempts to add a labeled URI for the supplied UID. |
void |
addPersonRelation(String pid,
Long uid,
RoleType roleType)
This adds the supplied related person to the person with the supplied PID in the supplied role. |
void |
addSuppressedAttribute(Long uid,
PersonAttribute attribute)
This attempts to add a suppressed attribute for the supplied UID. |
void |
archivePerson(Long uid,
String personRecord,
ArchiveType archiveType)
This attempts to archive a person. |
Long |
createGuestPerson(Long sponsorUid)
This attempts to add a new guest person entry record to the registry. |
Long |
createPerson()
This attempts to add a new VT person entry record to the registry. |
Long |
createSponsoredPerson(Long sponsorUid)
This attempts to add a new sponsored person entry record to the registry. |
void |
removeAffiliation(Long uid,
PersonAffiliation affiliation)
This attempts to remove the supplied affiliation for the supplied UID. |
boolean |
removeInstantMessagingId(Long uid,
String instantMessagingId)
This attempts to remove the instant messaging id with the supplied sequence number. |
boolean |
removeLabeledUri(Long uid,
String labeledUri)
This attempts to remove the labeled uri with the supplied sequence number. |
void |
removePerson(Long uid)
This attempts to remove the person entry with the supplied UID. |
void |
removePersonRelation(String pid,
Long uid,
RoleType roleType)
This removes the supplied related person from the person with the supplied PID in the supplied role. |
boolean |
removeSuppressedAttribute(Long uid,
PersonAttribute attribute)
This attempts to remove a suppressed attribute for the supplied UID. |
boolean |
setAffiliations(Long uid,
Set<PersonAffiliation> affiliations)
This attempts to set the supplied affiliations for the supplied UID. |
void |
setBirthdate(Long uid,
Calendar birthdate)
This attempts to modify the birth date for the supplied UID. |
private void |
setCertificate(Long uid,
byte[] cert,
String dn,
CertificateType type)
This sets a certificate of the supplied type for the supplied UID. |
void |
setConfidentialFlag(Long uid,
Boolean confidential)
This attempts to modify the confidential flag for the supplied UID. |
void |
setDeceasedFlag(Long uid,
Boolean deceased)
This attempts to modify the deceased flag for the supplied UID. |
void |
setIdentifier(Long uid,
Identifier id)
This attempts to set the supplied identifier for the supplied UID. |
void |
setResponsibleUid(Long uid,
Long responsibleUid)
This attempts to set the responsible person for the supplied UID. |
void |
setSMIMECertificate(Long uid,
X509Certificate[] cert)
This sets a X.509 S/MIME certificate for the supplied UID. |
void |
setX509Certificate(Long uid,
X509Certificate cert)
This sets a X.509 certificate 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 |
|---|
private static final Log LOG
| Constructor Detail |
|---|
public RegistryUpdater(EntityManager em)
em - EntityManager| Method Detail |
|---|
public Long createPerson()
throws ApplicationServerException
Long - uid of the person created
ApplicationServerException - if the method fails
public Long createSponsoredPerson(Long sponsorUid)
throws ApplicationServerException
sponsorUid - Long
Long - uid of the person created
ApplicationServerException - if the method fails
NoResultFoundException - if the responsible uid cannot be found
public Long createGuestPerson(Long sponsorUid)
throws ApplicationServerException
sponsorUid - Long
Long - uid of the person created
ApplicationServerException - if the method fails
NoResultFoundException - if the responsible uid cannot be found
public void addAffiliation(Long uid,
PersonAffiliation affiliation)
throws ApplicationServerException
uid - Longaffiliation - PersonAffiliation
ApplicationServerException - if the method fails
NoResultFoundException - if the uid cannot be found
public void removeAffiliation(Long uid,
PersonAffiliation affiliation)
throws ApplicationServerException
uid - Long to remove affiliatio entries foraffiliation - PersonAffiliation to remove
ApplicationServerException - if the method fails
NoResultFoundException - if the uid cannot be found
public boolean setAffiliations(Long uid,
Set<PersonAffiliation> affiliations)
throws ApplicationServerException
uid - Long to remove affiliation entries foraffiliations - Set to set
boolean - if we modified the Registry or not
ApplicationServerException - if the method fails
NoResultFoundException - if the uid cannot be found
public void removePerson(Long uid)
throws ApplicationException
uid - Long to remove person entry for
ApplicationException - if the method fails
NoResultFoundException - if the uid cannot be found
public void archivePerson(Long uid,
String personRecord,
ArchiveType archiveType)
throws ApplicationServerException
uid - Long - uid of the personpersonRecord - String the person record in
DSML formatarchiveType - ArchiveType the reason for the archiving
of the person
ApplicationServerException - if the method fails
public void setResponsibleUid(Long uid,
Long responsibleUid)
throws ApplicationServerException
uid - Long to modifyresponsibleUid - Long to set
ApplicationServerException - if the method fails
NoResultFoundException - if the uid or responsible uid
cannot be found
public void setIdentifier(Long uid,
Identifier id)
throws ApplicationServerException
uid - Long to modifyid - Identifier to set
ApplicationServerException - if the method fails
NoResultFoundException - if the uid cannot be found
public void setBirthdate(Long uid,
Calendar birthdate)
throws ApplicationServerException
uid - Long to modifybirthdate - Calendar to change
ApplicationServerException - if the method fails
NoResultFoundException - if the uid cannot be found
public void setDeceasedFlag(Long uid,
Boolean deceased)
throws ApplicationServerException
uid - Long to modifydeceased - Boolean to set
ApplicationServerException - if the method fails
NoResultFoundException - if the uid cannot be found
public void setConfidentialFlag(Long uid,
Boolean confidential)
throws ApplicationServerException
uid - Long to modifyconfidential - Boolean to set
ApplicationServerException - if the method fails
NoResultFoundException - if the uid cannot be found
public void addSuppressedAttribute(Long uid,
PersonAttribute attribute)
throws ApplicationServerException
uid - Longattribute - PersonAttribute
ApplicationServerException - if the method fails
NoResultFoundException - if the uid cannot be found
public boolean removeSuppressedAttribute(Long uid,
PersonAttribute attribute)
throws ApplicationServerException
uid - Longattribute - PersonAttribute
boolean - if we actually removed a suppressed attr
ApplicationServerException - if the method fails
NoResultFoundException - if the uid cannot be found
public void setX509Certificate(Long uid,
X509Certificate cert)
throws ApplicationServerException
uid - Long that is a person in the registrycert - X509Certificate X509 cert to set
ApplicationServerException - if the method fails
NoResultFoundException - if the uid cannot be found
public void setSMIMECertificate(Long uid,
X509Certificate[] cert)
throws ApplicationServerException
uid - Long that is a person in the registrycert - X509Certificate[] X509 S/MIME cert(s) to set
ApplicationServerException - if the method fails
NoResultFoundException - if the uid cannot be found
private void setCertificate(Long uid,
byte[] cert,
String dn,
CertificateType type)
throws ApplicationServerException
uid - Long that is a person in the registrycert - byte[] to setdn - String of the certtype - CertificateType of cert to set
ApplicationServerException - if the method fails
NoResultFoundException - if the uid cannot be found
public void addLabeledUri(Long uid,
String labeledUri)
throws ApplicationServerException
uid - LonglabeledUri - String
ApplicationServerException - if the method fails
NoResultFoundException - if the uid cannot be found
public boolean removeLabeledUri(Long uid,
String labeledUri)
throws ApplicationServerException
uid - LonglabeledUri - String
boolean - if we removed a uri or not
ApplicationServerException - if the method fails
NoResultFoundException - if the uid cannot be found
public void addInstantMessagingId(Long uid,
String instantMessagingId)
throws ApplicationServerException
uid - LonginstantMessagingId - String
ApplicationServerException - if the method fails
NoResultFoundException - if the uid cannot be found
public boolean removeInstantMessagingId(Long uid,
String instantMessagingId)
throws ApplicationServerException
uid - LonginstantMessagingId - String
boolean - whether the IM id was removed or not
ApplicationServerException - if the method fails
NoResultFoundException - if the uid cannot be found
public void addPersonRelation(String pid,
Long uid,
RoleType roleType)
throws ApplicationServerException
pid - String of the owning personuid - Long to add as relatedroleType - RoleType of the related person
ApplicationServerException - if the method fails
NoResultFoundException - if the either person cannot be found
public void removePersonRelation(String pid,
Long uid,
RoleType roleType)
throws ApplicationServerException
pid - String of the owning personuid - Long to remove as relatedroleType - RoleType of the person
ApplicationServerException - if the method fails
NoResultFoundException - if the group or person cannot be found
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||