001// -------------------------------------------------------------------------------- 002// Copyright 2002-2024 Echo Three, LLC 003// 004// Licensed under the Apache License, Version 2.0 (the "License"); 005// you may not use this file except in compliance with the License. 006// You may obtain a copy of the License at 007// 008// http://www.apache.org/licenses/LICENSE-2.0 009// 010// Unless required by applicable law or agreed to in writing, software 011// distributed under the License is distributed on an "AS IS" BASIS, 012// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013// See the License for the specific language governing permissions and 014// limitations under the License. 015// -------------------------------------------------------------------------------- 016 017package com.echothree.model.control.contact.common.transfer; 018 019import com.echothree.model.control.party.common.transfer.PartyTransfer; 020import com.echothree.util.common.transfer.BaseTransfer; 021import com.echothree.util.common.transfer.ListWrapper; 022 023public class PartyContactMechanismTransfer 024 extends BaseTransfer { 025 026 private PartyTransfer party; 027 private ContactMechanismTransfer contactMechanism; 028 private Boolean isDefault; 029 private Integer sortOrder; 030 private String description; 031 032 private ListWrapper<PartyContactMechanismPurposeTransfer> partyContactMechanismPurposes; 033 private ListWrapper<PartyContactMechanismRelationshipTransfer> partyContactMechanismRelationships; 034 035 /** Creates a new instance of PartyContactMechanismTransfer */ 036 public PartyContactMechanismTransfer(PartyTransfer party, ContactMechanismTransfer contactMechanism, Boolean isDefault, Integer sortOrder, 037 String description) { 038 this.party = party; 039 this.contactMechanism = contactMechanism; 040 this.isDefault = isDefault; 041 this.sortOrder = sortOrder; 042 this.description = description; 043 } 044 045 /** 046 * Returns the party. 047 * @return the party 048 */ 049 public PartyTransfer getParty() { 050 return party; 051 } 052 053 /** 054 * Sets the party. 055 * @param party the party to set 056 */ 057 public void setParty(PartyTransfer party) { 058 this.party = party; 059 } 060 061 /** 062 * Returns the contactMechanism. 063 * @return the contactMechanism 064 */ 065 public ContactMechanismTransfer getContactMechanism() { 066 return contactMechanism; 067 } 068 069 /** 070 * Sets the contactMechanism. 071 * @param contactMechanism the contactMechanism to set 072 */ 073 public void setContactMechanism(ContactMechanismTransfer contactMechanism) { 074 this.contactMechanism = contactMechanism; 075 } 076 077 /** 078 * Returns the isDefault. 079 * @return the isDefault 080 */ 081 public Boolean getIsDefault() { 082 return isDefault; 083 } 084 085 /** 086 * Sets the isDefault. 087 * @param isDefault the isDefault to set 088 */ 089 public void setIsDefault(Boolean isDefault) { 090 this.isDefault = isDefault; 091 } 092 093 /** 094 * Returns the sortOrder. 095 * @return the sortOrder 096 */ 097 public Integer getSortOrder() { 098 return sortOrder; 099 } 100 101 /** 102 * Sets the sortOrder. 103 * @param sortOrder the sortOrder to set 104 */ 105 public void setSortOrder(Integer sortOrder) { 106 this.sortOrder = sortOrder; 107 } 108 109 /** 110 * Returns the description. 111 * @return the description 112 */ 113 public String getDescription() { 114 return description; 115 } 116 117 /** 118 * Sets the description. 119 * @param description the description to set 120 */ 121 public void setDescription(String description) { 122 this.description = description; 123 } 124 125 /** 126 * Returns the partyContactMechanismPurposes. 127 * @return the partyContactMechanismPurposes 128 */ 129 public ListWrapper<PartyContactMechanismPurposeTransfer> getPartyContactMechanismPurposes() { 130 return partyContactMechanismPurposes; 131 } 132 133 /** 134 * Sets the partyContactMechanismPurposes. 135 * @param partyContactMechanismPurposes the partyContactMechanismPurposes to set 136 */ 137 public void setPartyContactMechanismPurposes(ListWrapper<PartyContactMechanismPurposeTransfer> partyContactMechanismPurposes) { 138 this.partyContactMechanismPurposes = partyContactMechanismPurposes; 139 } 140 141 /** 142 * Returns the partyContactMechanismRelationships. 143 * @return the partyContactMechanismRelationships 144 */ 145 public ListWrapper<PartyContactMechanismRelationshipTransfer> getPartyContactMechanismRelationships() { 146 return partyContactMechanismRelationships; 147 } 148 149 /** 150 * Sets the partyContactMechanismRelationships. 151 * @param partyContactMechanismRelationships the partyContactMechanismRelationships to set 152 */ 153 public void setPartyContactMechanismRelationships(ListWrapper<PartyContactMechanismRelationshipTransfer> partyContactMechanismRelationships) { 154 this.partyContactMechanismRelationships = partyContactMechanismRelationships; 155 } 156 157}