Example #1
0
 /**
  * A helper method which finds the first valid roleTypeId for a partyId, using a List of possible
  * roleTypeIds.
  *
  * @param partyId
  * @param possibleRoleTypeIds a List of roleTypeIds
  * @param delegator
  * @return the first roleTypeId from possibleRoleTypeIds which is actually found in PartyRole for
  *     the given partyId
  * @throws GenericEntityException
  */
 public static String getFirstValidRoleTypeId(
     String partyId, List<String> possibleRoleTypeIds, Delegator delegator)
     throws GenericEntityException {
   return org.opentaps.common.party.PartyHelper.getFirstValidRoleTypeId(
       partyId, possibleRoleTypeIds, delegator);
 }