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.warehouse.common.transfer; 018 019import com.echothree.model.control.accounting.common.transfer.CurrencyTransfer; 020import com.echothree.model.control.party.common.transfer.DateTimeFormatTransfer; 021import com.echothree.model.control.party.common.transfer.LanguageTransfer; 022import com.echothree.model.control.party.common.transfer.PartyGroupTransfer; 023import com.echothree.model.control.party.common.transfer.PartyTransfer; 024import com.echothree.model.control.party.common.transfer.PartyTypeTransfer; 025import com.echothree.model.control.party.common.transfer.PersonTransfer; 026import com.echothree.model.control.party.common.transfer.TimeZoneTransfer; 027import com.echothree.util.common.transfer.ListWrapper; 028 029public class WarehouseTransfer 030 extends PartyTransfer { 031 032 private String warehouseName; 033 private WarehouseTypeTransfer warehouseType; 034 private Boolean isDefault; 035 private Integer sortOrder; 036 037 private Long locationsCount; 038 private ListWrapper<LocationTransfer> locations; 039 040 /** Creates a new instance of WarehouseTransfer */ 041 public WarehouseTransfer(String partyName, PartyTypeTransfer partyType, LanguageTransfer preferredLanguage, CurrencyTransfer preferredCurrency, 042 TimeZoneTransfer preferredTimeZone, DateTimeFormatTransfer preferredDateTimeFormat, PersonTransfer person, PartyGroupTransfer partyGroup, 043 String warehouseName, WarehouseTypeTransfer warehouseType, Boolean isDefault, Integer sortOrder) { 044 super(partyName, partyType, preferredLanguage, preferredCurrency, preferredTimeZone, preferredDateTimeFormat, person, partyGroup, null); 045 046 this.warehouseName = warehouseName; 047 this.warehouseType = warehouseType; 048 this.isDefault = isDefault; 049 this.sortOrder = sortOrder; 050 } 051 052 public String getWarehouseName() { 053 return warehouseName; 054 } 055 056 public void setWarehouseName(String warehouseName) { 057 this.warehouseName = warehouseName; 058 } 059 060 public WarehouseTypeTransfer getWarehouseType() { 061 return warehouseType; 062 } 063 064 public void setWarehouseType(WarehouseTypeTransfer warehouseType) { 065 this.warehouseType = warehouseType; 066 } 067 068 public Boolean getIsDefault() { 069 return isDefault; 070 } 071 072 public void setIsDefault(Boolean isDefault) { 073 this.isDefault = isDefault; 074 } 075 076 public Integer getSortOrder() { 077 return sortOrder; 078 } 079 080 public void setSortOrder(Integer sortOrder) { 081 this.sortOrder = sortOrder; 082 } 083 084 public Long getLocationsCount() { 085 return locationsCount; 086 } 087 088 public void setLocationsCount(final Long locationsCount) { 089 this.locationsCount = locationsCount; 090 } 091 092 public ListWrapper<LocationTransfer> getLocations() { 093 return locations; 094 } 095 096 public void setLocations(final ListWrapper<LocationTransfer> locations) { 097 this.locations = locations; 098 } 099 100}