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.user.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.MapWrapper; 022 023public class UserLoginTransfer 024 extends BaseTransfer { 025 026 // From UserLogin: 027 private PartyTransfer party; 028 private String username; 029 030 // From UserLoginStatus: 031 private Long unformattedLastLoginTime; 032 private String lastLoginTime; 033 private Integer failureCount; 034 private Long unformattedFirstFailureTime; 035 private String firstFailureTime; 036 private Long unformattedLastFailureTime; 037 private String lastFailureTime; 038 private Integer expiredCount; 039 private Boolean forceChange; 040 041 private MapWrapper<UserLoginPasswordTransfer> userLoginPasswords; 042 043 /** Creates a new instance of UserLoginTransfer */ 044 public UserLoginTransfer(PartyTransfer party, String username, Long unformattedLastLoginTime, String lastLoginTime, Integer failureCount, 045 Long unformattedFirstFailureTime, String firstFailureTime, Long unformattedLastFailureTime, String lastFailureTime, Integer expiredCount, 046 Boolean forceChange) { 047 this.party = party; 048 this.username = username; 049 this.unformattedLastLoginTime = unformattedLastLoginTime; 050 this.lastLoginTime = lastLoginTime; 051 this.failureCount = failureCount; 052 this.unformattedFirstFailureTime = unformattedFirstFailureTime; 053 this.firstFailureTime = firstFailureTime; 054 this.unformattedLastFailureTime = unformattedLastFailureTime; 055 this.lastFailureTime = lastFailureTime; 056 this.expiredCount = expiredCount; 057 this.forceChange = forceChange; 058 } 059 060 /** 061 * Returns the party. 062 * @return the party 063 */ 064 public PartyTransfer getParty() { 065 return party; 066 } 067 068 /** 069 * Sets the party. 070 * @param party the party to set 071 */ 072 public void setParty(PartyTransfer party) { 073 this.party = party; 074 } 075 076 /** 077 * Returns the username. 078 * @return the username 079 */ 080 public String getUsername() { 081 return username; 082 } 083 084 /** 085 * Sets the username. 086 * @param username the username to set 087 */ 088 public void setUsername(String username) { 089 this.username = username; 090 } 091 092 /** 093 * Returns the unformattedLastLoginTime. 094 * @return the unformattedLastLoginTime 095 */ 096 public Long getUnformattedLastLoginTime() { 097 return unformattedLastLoginTime; 098 } 099 100 /** 101 * Sets the unformattedLastLoginTime. 102 * @param unformattedLastLoginTime the unformattedLastLoginTime to set 103 */ 104 public void setUnformattedLastLoginTime(Long unformattedLastLoginTime) { 105 this.unformattedLastLoginTime = unformattedLastLoginTime; 106 } 107 108 /** 109 * Returns the lastLoginTime. 110 * @return the lastLoginTime 111 */ 112 public String getLastLoginTime() { 113 return lastLoginTime; 114 } 115 116 /** 117 * Sets the lastLoginTime. 118 * @param lastLoginTime the lastLoginTime to set 119 */ 120 public void setLastLoginTime(String lastLoginTime) { 121 this.lastLoginTime = lastLoginTime; 122 } 123 124 /** 125 * Returns the failureCount. 126 * @return the failureCount 127 */ 128 public Integer getFailureCount() { 129 return failureCount; 130 } 131 132 /** 133 * Sets the failureCount. 134 * @param failureCount the failureCount to set 135 */ 136 public void setFailureCount(Integer failureCount) { 137 this.failureCount = failureCount; 138 } 139 140 /** 141 * Returns the unformattedFirstFailureTime. 142 * @return the unformattedFirstFailureTime 143 */ 144 public Long getUnformattedFirstFailureTime() { 145 return unformattedFirstFailureTime; 146 } 147 148 /** 149 * Sets the unformattedFirstFailureTime. 150 * @param unformattedFirstFailureTime the unformattedFirstFailureTime to set 151 */ 152 public void setUnformattedFirstFailureTime(Long unformattedFirstFailureTime) { 153 this.unformattedFirstFailureTime = unformattedFirstFailureTime; 154 } 155 156 /** 157 * Returns the firstFailureTime. 158 * @return the firstFailureTime 159 */ 160 public String getFirstFailureTime() { 161 return firstFailureTime; 162 } 163 164 /** 165 * Sets the firstFailureTime. 166 * @param firstFailureTime the firstFailureTime to set 167 */ 168 public void setFirstFailureTime(String firstFailureTime) { 169 this.firstFailureTime = firstFailureTime; 170 } 171 172 /** 173 * Returns the unformattedLastFailureTime. 174 * @return the unformattedLastFailureTime 175 */ 176 public Long getUnformattedLastFailureTime() { 177 return unformattedLastFailureTime; 178 } 179 180 /** 181 * Sets the unformattedLastFailureTime. 182 * @param unformattedLastFailureTime the unformattedLastFailureTime to set 183 */ 184 public void setUnformattedLastFailureTime(Long unformattedLastFailureTime) { 185 this.unformattedLastFailureTime = unformattedLastFailureTime; 186 } 187 188 /** 189 * Returns the lastFailureTime. 190 * @return the lastFailureTime 191 */ 192 public String getLastFailureTime() { 193 return lastFailureTime; 194 } 195 196 /** 197 * Sets the lastFailureTime. 198 * @param lastFailureTime the lastFailureTime to set 199 */ 200 public void setLastFailureTime(String lastFailureTime) { 201 this.lastFailureTime = lastFailureTime; 202 } 203 204 /** 205 * Returns the expiredCount. 206 * @return the expiredCount 207 */ 208 public Integer getExpiredCount() { 209 return expiredCount; 210 } 211 212 /** 213 * Sets the expiredCount. 214 * @param expiredCount the expiredCount to set 215 */ 216 public void setExpiredCount(Integer expiredCount) { 217 this.expiredCount = expiredCount; 218 } 219 220 /** 221 * Returns the forceChange. 222 * @return the forceChange 223 */ 224 public Boolean getForceChange() { 225 return forceChange; 226 } 227 228 /** 229 * Sets the forceChange. 230 * @param forceChange the forceChange to set 231 */ 232 public void setForceChange(Boolean forceChange) { 233 this.forceChange = forceChange; 234 } 235 236 /** 237 * Returns the userLoginPasswords. 238 * @return the userLoginPasswords 239 */ 240 public MapWrapper<UserLoginPasswordTransfer> getUserLoginPasswords() { 241 return userLoginPasswords; 242 } 243 244 /** 245 * Sets the userLoginPasswords. 246 * @param userLoginPasswords the userLoginPasswords to set 247 */ 248 public void setUserLoginPasswords(MapWrapper<UserLoginPasswordTransfer> userLoginPasswords) { 249 this.userLoginPasswords = userLoginPasswords; 250 } 251 252}