edu.vt.middleware.registry.manage.group
Class RegistryFinder

java.lang.Object
  extended by edu.vt.middleware.registry.common.CommonRegistryFinder
      extended by edu.vt.middleware.registry.manage.group.RegistryFinder

public final class RegistryFinder
extends CommonRegistryFinder

RegistryFinder provides methods for doing registry searches with entity beans.

Version:
$Revision: 7643 $
Author:
Daniel Fisher

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 getContact(String uugid)
          This returns the contact person uid for the supplied group.
 boolean hasPersonInRole(String uugid, RoleType role)
          This returns whether the supplied group has any person in the supplied role.
 boolean isGroupNestedMember(String parentUugid, String childUugid)
          This returns whether the child group is a nested member of the parent group.
 boolean isPersonInRole(String uugid, Long uid, RoleType role)
          This returns whether the person with the supplied uid is in the supplied role for the supplied group.
 boolean isServiceInRole(String uugid, String uusid, RoleType role)
          This returns whether the service with the supplied uusid is in the supplied role for the supplied group.
 
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

LOG

private static final Log LOG
Log for this class

Constructor Detail

RegistryFinder

public RegistryFinder(EntityManager em)
This creates a RegistryFinder with the supplied Entity Manager.

Parameters:
em - EntityManager
Method Detail

isPersonInRole

public boolean isPersonInRole(String uugid,
                              Long uid,
                              RoleType role)
                       throws ApplicationServerException
This returns whether the person with the supplied uid is in the supplied role for the supplied group.

Parameters:
uugid - String
uid - Long
role - RoleType
Returns:
boolean
Throws:
ApplicationServerException - if the method fails

hasPersonInRole

public boolean hasPersonInRole(String uugid,
                               RoleType role)
                        throws ApplicationServerException
This returns whether the supplied group has any person in the supplied role.

Parameters:
uugid - String
role - RoleType
Returns:
boolean
Throws:
ApplicationServerException - if the method fails

isServiceInRole

public boolean isServiceInRole(String uugid,
                               String uusid,
                               RoleType role)
                        throws ApplicationServerException
This returns whether the service with the supplied uusid is in the supplied role for the supplied group.

Parameters:
uugid - String
uusid - String
role - RoleType
Returns:
boolean
Throws:
ApplicationServerException - if the method fails

getContact

public Long getContact(String uugid)
                throws ApplicationServerException
This returns the contact person uid for the supplied group.

Parameters:
uugid - String
Returns:
Long uid of contact person
Throws:
ApplicationServerException - if the method fails

isGroupNestedMember

public boolean isGroupNestedMember(String parentUugid,
                                   String childUugid)
                            throws ApplicationServerException
This returns whether the child group is a nested member of the parent group.

Parameters:
parentUugid - String
childUugid - String
Returns:
boolean
Throws:
ApplicationServerException - if the method fails


Copyright © 2008 Virginia Tech. All Rights Reserved.