|
|||||||||
| 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.RegistryFinder
public final class RegistryFinder
RegistryFinder provides methods for doing registry searches
with entity beans.
| Field Summary | |
|---|---|
private static Log |
LOG
Log for this class |
| Constructor Summary | |
|---|---|
RegistryFinder(EntityManager em)
This creates a RegistryFinder with the supplied Entity Manager. |
|
| Method Summary | |
|---|---|
Long |
getPersonUidByPidm(String pidm)
Returns the Person uid for the supplied Banner PIDM. |
Set<Entitlement> |
getRelatedEntitlements(Long uid)
Returns all the entitlements associated with the supplied person. |
Set<Group> |
getRelatedGroups(Long uid)
Returns all the groups associated with the supplied person. |
Set<Service> |
getRelatedServices(Long uid)
Returns all the services associated with the supplied person. |
boolean |
hasAffiliation(Long uid)
This returns whether the supplied uid has any affiliations. |
boolean |
hasAffiliation(Long uid,
PersonAffiliation affiliation)
This returns whether the supplied UID has the supplied affiliation. |
boolean |
hasBirthdate(Long uid,
Calendar birthdate)
This returns whether the person has the supplied birthdate. |
boolean |
hasCertificate(Long uid,
CertificateType type)
This returns whether the supplied UID has a certificate of the supplied type. |
boolean |
hasIdentifier(Long uid,
Identifier id)
This returns whether the supplied person has the supplied identifier. |
boolean |
hasInstantMessagingId(Long uid)
This returns whether the supplied UID has a instant messaging id. |
boolean |
hasInstantMessagingId(Long uid,
String id)
This returns whether the supplied UID has the instant messaging id. |
boolean |
hasLabeledUri(Long uid)
This returns whether the supplied UID has a labelUri. |
boolean |
hasLabeledUri(Long uid,
String uri)
This returns whether the supplied UID has the labeled uri. |
boolean |
hasPersonInRole(String pid,
RoleType role)
This returns whether the supplied person has any related person in the supplied role. |
boolean |
hasSuppressedAttribute(Long uid,
PersonAttribute attribute)
This returns whether the supplied UID has suppressed the supplied attribute. |
boolean |
identifierExists(Identifier id)
This returns whether the supplied identifier exists. |
boolean |
isAccountShelved(Long uid)
This returns whether the supplied person's account is shelved. |
boolean |
isConfidential(Long uid)
This returns whether the person's confidential flag is set. |
boolean |
isDeceased(Long uid)
This returns whether the person's deceased flag is set. |
boolean |
isPersonInRole(String pid,
Long uid,
RoleType role)
This returns whether the person with the supplied uid is in the supplied role for the supplied owning person. |
| 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 RegistryFinder(EntityManager em)
em - EntityManager| Method Detail |
|---|
public boolean identifierExists(Identifier id)
throws ApplicationServerException
id - Identifier
boolean
ApplicationServerException - if the method fails
FinderFailedException - if the supplied id is not unique
in the database
public boolean hasIdentifier(Long uid,
Identifier id)
throws ApplicationServerException
uid - Longid - Identifier
boolean
ApplicationServerException - if the method fails
FinderFailedException - if the supplied id is not unique
for the supplied personpublic boolean hasAffiliation(Long uid)
uid - Long
boolean
public boolean hasAffiliation(Long uid,
PersonAffiliation affiliation)
uid - Longaffiliation - PersonAffiliation
boolean
public boolean hasSuppressedAttribute(Long uid,
PersonAttribute attribute)
uid - Longattribute - PersonAttribute
booleanpublic boolean hasLabeledUri(Long uid)
uid - Long
booleanpublic boolean hasInstantMessagingId(Long uid)
uid - Long
boolean
public boolean hasCertificate(Long uid,
CertificateType type)
uid - Longtype - CertificateType
booleanpublic boolean isConfidential(Long uid)
uid - Long
booleanpublic boolean isDeceased(Long uid)
uid - Long
boolean
public boolean hasBirthdate(Long uid,
Calendar birthdate)
uid - Longbirthdate - Calendar
boolean
public boolean isAccountShelved(Long uid)
throws ApplicationServerException
uid - Long
boolean
ApplicationServerException - if the method fails
FinderFailedException - if the UUPID is not uniquepublic Long getPersonUidByPidm(String pidm)
pidm - String
Long
public Set<Service> getRelatedServices(Long uid)
throws ApplicationException
uid - Long uid of the Person to be searched
Set of related services
ApplicationException - if the method fails
public Set<Group> getRelatedGroups(Long uid)
throws ApplicationException
uid - Long uid of the Person to be searched
Set of related groups
ApplicationException - if the method fails
public Set<Entitlement> getRelatedEntitlements(Long uid)
throws ApplicationException
uid - Long uid of the Person to be searched
Set of related entitlements
ApplicationException - if the method fails
public boolean hasInstantMessagingId(Long uid,
String id)
uid - Longid - String
boolean
public boolean hasLabeledUri(Long uid,
String uri)
uid - Longuri - String
boolean
public boolean isPersonInRole(String pid,
Long uid,
RoleType role)
throws ApplicationServerException
pid - Stringuid - Longrole - RoleType
boolean
ApplicationServerException - if the method fails
public boolean hasPersonInRole(String pid,
RoleType role)
throws ApplicationServerException
pid - Stringrole - RoleType
boolean
ApplicationServerException - if the method fails
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||