|
|||||||||
| 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.group.RegistryUpdater
public final class RegistryUpdater
RegistryUpdater implements the details of managing
groups 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 |
addGroupMember(String parentUugid,
String childUugid)
This adds the supplied child group to the supplied parent group. |
void |
addPersonRelation(String uugid,
Long uid,
RoleType roleType)
This adds the supplied person to the group with the supplied UUGID in the supplied role. |
void |
addServiceRelation(String uugid,
String uusid,
RoleType roleType)
This adds the supplied service to the group with the supplied UUGID in the supplied role. |
void |
createGroup(String uugid,
Long contactUid,
Long adminUid)
This creates a new group using the supplied uugid, contact person, and administrator. |
void |
removeDisplayName(String uugid)
This removes the display name for the group with the supplied UUGID. |
void |
removeEmailAddress(String uugid)
This removes the e-mail address for the group with the supplied UUGID. |
void |
removeGroup(String uugid)
This deletes a group with the supplied UUGID. |
void |
removeGroupMember(String parentUugid,
String childUugid)
This removes the supplied child group from the supplied parent group. |
void |
removePersonRelation(String uugid,
Long uid,
RoleType roleType)
This removes the supplied person from the group with the supplied UUGID in the supplied role. |
void |
removeServiceRelation(String uugid,
String uusid,
RoleType roleType)
This removes the supplied service from the group with the supplied UUGID in the supplied role. |
void |
setDisplayName(String uugid,
String displayName)
This sets the display name for the group with the supplied UUGID. |
void |
setEmailAddress(String uugid,
String emailAddress)
This sets the e-mail address for the group with the supplied UUGID. |
void |
setExpiration(String uugid,
Calendar date)
This sets the expiration date of the group with the supplied UUGID. |
void |
setExpirationNotification(String uugid,
Calendar date)
This sets the expiration notification date of the group with the supplied UUGID. |
void |
setSuppressDisplay(String uugid,
Boolean suppressDisplay)
This sets the suppress display flag for the group with the supplied UUGID. |
void |
setSuppressMembers(String uugid,
Boolean suppressMembers)
This sets the suppress members flag for the group with the supplied UUGID. |
| 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 void createGroup(String uugid,
Long contactUid,
Long adminUid)
throws ApplicationServerException
uugid - StringcontactUid - LongadminUid - Long
ApplicationServerException - if the method fails
NoResultFoundException - if the uids cannot be found
public void removeGroup(String uugid)
throws ApplicationServerException
uugid - String
ApplicationServerException - if the method fails
public void setExpiration(String uugid,
Calendar date)
throws ApplicationServerException
uugid - Stringdate - Calendar
ApplicationServerException - if the method fails
public void setExpirationNotification(String uugid,
Calendar date)
throws ApplicationServerException
uugid - Stringdate - Calendar
ApplicationServerException - if the method fails
public void setDisplayName(String uugid,
String displayName)
throws ApplicationServerException
uugid - StringdisplayName - String
ApplicationServerException - if the method fails
public void removeDisplayName(String uugid)
throws ApplicationServerException
uugid - String
ApplicationServerException - if the method fails
public void setSuppressDisplay(String uugid,
Boolean suppressDisplay)
throws ApplicationServerException
uugid - StringsuppressDisplay - Boolean
ApplicationServerException - if the method fails
public void setSuppressMembers(String uugid,
Boolean suppressMembers)
throws ApplicationServerException
uugid - StringsuppressMembers - Boolean
ApplicationServerException - if the method fails
public void setEmailAddress(String uugid,
String emailAddress)
throws ApplicationServerException
uugid - StringemailAddress - String
ApplicationServerException - if the method fails
public void removeEmailAddress(String uugid)
throws ApplicationServerException
uugid - String
ApplicationServerException - if the method fails
public void addPersonRelation(String uugid,
Long uid,
RoleType roleType)
throws ApplicationServerException
uugid - Stringuid - Long to addroleType - RoleType of the person
ApplicationServerException - if the method fails
NoResultFoundException - if the group or person cannot be found
public void removePersonRelation(String uugid,
Long uid,
RoleType roleType)
throws ApplicationServerException
uugid - Stringuid - Long to removeroleType - RoleType of the person
ApplicationServerException - if the method fails
NoResultFoundException - if the group or person cannot be found
public void addGroupMember(String parentUugid,
String childUugid)
throws ApplicationServerException
parentUugid - StringchildUugid - String
ApplicationServerException - if the group cannot be found
FinderFailedException - if either group cannot be found
public void removeGroupMember(String parentUugid,
String childUugid)
throws ApplicationServerException
parentUugid - StringchildUugid - String
ApplicationServerException - if the group cannot be found
FinderFailedException - if either group cannot be found
public void addServiceRelation(String uugid,
String uusid,
RoleType roleType)
throws ApplicationServerException
uugid - Stringuusid - String to addroleType - RoleType of the service
ApplicationServerException - if the service cannot be added
FinderFailedException - if the group or service cannot be found
public void removeServiceRelation(String uugid,
String uusid,
RoleType roleType)
throws ApplicationServerException
uugid - Stringuusid - String to removeroleType - RoleType of the person
ApplicationServerException - if the group cannot be found
FinderFailedException - if the group or service cannot be found
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||