Exemplo n.º 1
0
  /**
   * Method to copy all "To" relationships of a From party to another From party. For instance, use
   * this method to copy all relationships of an account (or optionally a specific relationship),
   * such as the managers and reps, over to a team. NOTE: This service works on unexpired
   * relationships as of now and will need to be refactored for other Dates.
   *
   * @param partyIdFrom
   * @param roleTypeIdFrom
   * @param partyRelationshipTypeId optional
   * @param newPartyIdFrom
   * @param newRoleTypeIdFrom
   */
  public static void copyToPartyRelationships(
      String partyIdFrom,
      String roleTypeIdFrom,
      String partyRelationshipTypeId,
      String newPartyIdFrom,
      String newRoleTypeIdFrom,
      GenericValue userLogin,
      Delegator delegator,
      LocalDispatcher dispatcher)
      throws GenericEntityException, GenericServiceException {

    org.opentaps.common.party.PartyHelper.copyToPartyRelationships(
        partyIdFrom,
        roleTypeIdFrom,
        partyRelationshipTypeId,
        newPartyIdFrom,
        newRoleTypeIdFrom,
        userLogin,
        delegator,
        dispatcher);
  }