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.workrequirement.common.transfer; 018 019import com.echothree.model.control.workeffort.common.transfer.WorkEffortTransfer; 020import com.echothree.model.control.workflow.common.transfer.WorkflowEntityStatusTransfer; 021import com.echothree.util.common.transfer.BaseTransfer; 022import com.echothree.util.common.transfer.ListWrapper; 023 024public class WorkRequirementTransfer 025 extends BaseTransfer { 026 027 private String workRequirementName; 028 private WorkEffortTransfer workEffort; 029 private WorkRequirementScopeTransfer workRequirementScope; 030 private Long unformattedStartTime; 031 private String startTime; 032 private Long unformattedRequiredTime; 033 private String requiredTime; 034 035 private WorkflowEntityStatusTransfer workRequirementStatus; 036 037 private ListWrapper<WorkAssignmentTransfer> workAssignments; 038 private ListWrapper<WorkTimeTransfer> workTimes; 039 040 /** Creates a new instance of WorkRequirementTransfer */ 041 public WorkRequirementTransfer(String workRequirementName, WorkEffortTransfer workEffort, WorkRequirementScopeTransfer workRequirementScope, 042 Long unformattedStartTime, String startTime, Long unformattedRequiredTime, String requiredTime, WorkflowEntityStatusTransfer workRequirementStatus) { 043 this.workRequirementName = workRequirementName; 044 this.workEffort = workEffort; 045 this.workRequirementScope = workRequirementScope; 046 this.unformattedStartTime = unformattedStartTime; 047 this.startTime = startTime; 048 this.unformattedRequiredTime = unformattedRequiredTime; 049 this.requiredTime = requiredTime; 050 this.workRequirementStatus = workRequirementStatus; 051 } 052 053 /** 054 * Returns the workRequirementName. 055 * @return the workRequirementName 056 */ 057 public String getWorkRequirementName() { 058 return workRequirementName; 059 } 060 061 /** 062 * Sets the workRequirementName. 063 * @param workRequirementName the workRequirementName to set 064 */ 065 public void setWorkRequirementName(String workRequirementName) { 066 this.workRequirementName = workRequirementName; 067 } 068 069 /** 070 * Returns the workEffort. 071 * @return the workEffort 072 */ 073 public WorkEffortTransfer getWorkEffort() { 074 return workEffort; 075 } 076 077 /** 078 * Sets the workEffort. 079 * @param workEffort the workEffort to set 080 */ 081 public void setWorkEffort(WorkEffortTransfer workEffort) { 082 this.workEffort = workEffort; 083 } 084 085 /** 086 * Returns the workRequirementScope. 087 * @return the workRequirementScope 088 */ 089 public WorkRequirementScopeTransfer getWorkRequirementScope() { 090 return workRequirementScope; 091 } 092 093 /** 094 * Sets the workRequirementScope. 095 * @param workRequirementScope the workRequirementScope to set 096 */ 097 public void setWorkRequirementScope(WorkRequirementScopeTransfer workRequirementScope) { 098 this.workRequirementScope = workRequirementScope; 099 } 100 101 /** 102 * Returns the unformattedStartTime. 103 * @return the unformattedStartTime 104 */ 105 public Long getUnformattedStartTime() { 106 return unformattedStartTime; 107 } 108 109 /** 110 * Sets the unformattedStartTime. 111 * @param unformattedStartTime the unformattedStartTime to set 112 */ 113 public void setUnformattedStartTime(Long unformattedStartTime) { 114 this.unformattedStartTime = unformattedStartTime; 115 } 116 117 /** 118 * Returns the startTime. 119 * @return the startTime 120 */ 121 public String getStartTime() { 122 return startTime; 123 } 124 125 /** 126 * Sets the startTime. 127 * @param startTime the startTime to set 128 */ 129 public void setStartTime(String startTime) { 130 this.startTime = startTime; 131 } 132 133 /** 134 * Returns the unformattedRequiredTime. 135 * @return the unformattedRequiredTime 136 */ 137 public Long getUnformattedRequiredTime() { 138 return unformattedRequiredTime; 139 } 140 141 /** 142 * Sets the unformattedRequiredTime. 143 * @param unformattedRequiredTime the unformattedRequiredTime to set 144 */ 145 public void setUnformattedRequiredTime(Long unformattedRequiredTime) { 146 this.unformattedRequiredTime = unformattedRequiredTime; 147 } 148 149 /** 150 * Returns the requiredTime. 151 * @return the requiredTime 152 */ 153 public String getRequiredTime() { 154 return requiredTime; 155 } 156 157 /** 158 * Sets the requiredTime. 159 * @param requiredTime the requiredTime to set 160 */ 161 public void setRequiredTime(String requiredTime) { 162 this.requiredTime = requiredTime; 163 } 164 165 /** 166 * Returns the workRequirementStatus. 167 * @return the workRequirementStatus 168 */ 169 public WorkflowEntityStatusTransfer getWorkRequirementStatus() { 170 return workRequirementStatus; 171 } 172 173 /** 174 * Sets the workRequirementStatus. 175 * @param workRequirementStatus the workRequirementStatus to set 176 */ 177 public void setWorkRequirementStatus(WorkflowEntityStatusTransfer workRequirementStatus) { 178 this.workRequirementStatus = workRequirementStatus; 179 } 180 181 /** 182 * Returns the workAssignments. 183 * @return the workAssignments 184 */ 185 public ListWrapper<WorkAssignmentTransfer> getWorkAssignments() { 186 return workAssignments; 187 } 188 189 /** 190 * Sets the workAssignments. 191 * @param workAssignments the workAssignments to set 192 */ 193 public void setWorkAssignments(ListWrapper<WorkAssignmentTransfer> workAssignments) { 194 this.workAssignments = workAssignments; 195 } 196 197 /** 198 * Returns the workTimes. 199 * @return the workTimes 200 */ 201 public ListWrapper<WorkTimeTransfer> getWorkTimes() { 202 return workTimes; 203 } 204 205 /** 206 * Sets the workTimes. 207 * @param workTimes the workTimes to set 208 */ 209 public void setWorkTimes(ListWrapper<WorkTimeTransfer> workTimes) { 210 this.workTimes = workTimes; 211 } 212 213}