Example #1
0
 /**
  * Common method used by getCurrentlyResponsibleParty and related methods. This method will obtain
  * the first PartyRelationship found with the given criteria and return the PartySummaryCRMView
  * with partyId = partyRelationship.partyIdTo.
  *
  * @param partyRelationshipTypeId The party relationship (e.g., reps that are RESPONSIBLE_FOR an
  *     account)
  * @param partyIdFrom The partyId of the account/contact/lead
  * @param roleTypeIdFrom The role of the account/contact/lead (e.g., ACCOUNT, CONTACT, LEAD)
  * @param securityGroupId Optional securityGroupId of the relationship
  * @param activeDate Check only for active relationships as of this timestamp
  * @return First non-expired PartySummaryCRMView or null if none found
  */
 public static GenericValue getActivePartyByRole(
     String partyRelationshipTypeId,
     String partyIdFrom,
     String roleTypeIdFrom,
     String securityGroupId,
     Timestamp activeDate,
     Delegator delegator)
     throws GenericEntityException {
   return org.opentaps.common.party.PartyHelper.getActivePartyByRole(
       partyRelationshipTypeId,
       partyIdFrom,
       roleTypeIdFrom,
       securityGroupId,
       activeDate,
       delegator);
 }