001/*
002 * Stallion Core: A Modern Web Framework
003 *
004 * Copyright (C) 2015 - 2016 Stallion Software LLC.
005 *
006 * This program is free software: you can redistribute it and/or modify it under the terms of the
007 * GNU General Public License as published by the Free Software Foundation, either version 2 of
008 * the License, or (at your option) any later version. This program is distributed in the hope that
009 * it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
011 * License for more details. You should have received a copy of the GNU General Public License
012 * along with this program.  If not, see <http://www.gnu.org/licenses/gpl-2.0.html>.
013 *
014 *
015 *
016 */
017
018package io.stallion.users;
019
020import io.stallion.dataAccess.ModelBase;
021
022import java.util.ArrayList;
023import java.util.List;
024
025public class EmptyUser extends ModelBase implements IUser {
026    private String username = "";
027    private String displayName = "";
028    private String givenName = "";
029    private String familyName = "";
030    private String email = "";
031    private Role role = Role.ANON;
032    private Long orgId = 0L;
033    private List<IGroup> groups = new ArrayList<IGroup>();
034    private String secret = "";
035    private String timeZoneId = "";
036
037    public String getUsername() {
038        return username;
039    }
040
041    public EmptyUser setUsername(String username) {
042        this.username = username;
043        return this;
044    }
045
046    public String getDisplayName() {
047        return displayName;
048    }
049
050    @Override
051    public String getHonorific() {
052        return "";
053    }
054
055    @Override
056    public boolean isOptedOut() {
057        return true;
058    }
059
060    @Override
061    public boolean isTotallyOptedOut() {
062        return true;
063    }
064
065    @Override
066    public boolean isDisabled() {
067        return true;
068    }
069
070    public EmptyUser setDisplayName(String displayName) {
071        this.displayName = displayName;
072        return this;
073    }
074
075    public String getEmail() {
076        return email;
077    }
078
079    @Override
080    public String getBcryptedPassword() {
081        return null;
082    }
083
084    @Override
085    public EmptyUser setBcryptedPassword(String password) {
086        return null;
087    }
088
089    @Override
090    public String getResetToken() {
091        return null;
092    }
093
094    @Override
095    public EmptyUser setResetToken(String token) {
096        return null;
097    }
098
099    @Override
100    public Long getAliasForId() {
101        return 0L;
102    }
103
104    @Override
105    public Long getCreatedAt() {
106        return 0L;
107    }
108
109    @Override
110    public <U extends IUser> U setCreatedAt(Long createdAt) {
111        return null;
112    }
113
114    @Override
115    public EmptyUser setAliasForId(Long id) {
116        return this;
117    }
118
119    public EmptyUser setEmail(String email) {
120        this.email = email;
121        return this;
122    }
123
124
125    public Role getRole() {
126        return role;
127    }
128
129
130
131    public EmptyUser setRole(Role role) {
132        this.role = role;
133        return this;
134    }
135
136    public Long getOrgId() {
137        return orgId;
138    }
139
140    public EmptyUser setOrgId(Long orgId) {
141        this.orgId = orgId;
142        return this;
143    }
144
145    public List<IGroup> getGroups() {
146        return groups;
147    }
148
149    @Override
150    public <U extends IUser> U setGroups(List<IGroup> groups) {
151        this.groups = groups;
152        return (U)this;
153    }
154
155    public String getSecret() {
156        return secret;
157    }
158
159    public EmptyUser setSecret(String secret) {
160        this.secret = secret;
161        return this;
162    }
163
164    @Override
165    public String getTimeZoneId() {
166        return timeZoneId;
167    }
168
169    @Override
170    public EmptyUser setTimeZoneId(String zoneId) {
171        this.timeZoneId = zoneId;
172        return this;
173    }
174
175    @Override
176    public boolean isPredefined() {
177        return false;
178    }
179
180    @Override
181    public EmptyUser setPredefined(boolean predefined) {
182        return null;
183    }
184
185    @Override
186    public String getEncryptionSecret() {
187        return "";
188    }
189
190    @Override
191    public EmptyUser setEncryptionSecret(String secret) {
192        return null;
193    }
194
195    @Override
196    public Boolean getApproved() {
197        return false;
198    }
199
200    @Override
201    public boolean getEmailVerified() {
202        return false;
203    }
204
205    @Override
206    public <U extends IUser> U setDisabled(boolean disabled) {
207        return (U)this;
208    }
209
210    @Override
211    public EmptyUser setApproved(Boolean approved) {
212        return null;
213    }
214
215    @Override
216    public EmptyUser setEmailVerified(boolean verified) {
217        return null;
218    }
219
220    public String getGivenName() {
221        return givenName;
222    }
223
224    public EmptyUser setGivenName(String givenName) {
225        this.givenName = givenName;return this;
226    }
227
228    public String getFamilyName() {
229        return familyName;
230    }
231
232    public EmptyUser setFamilyName(String familyName) {
233        this.familyName = familyName;return this;
234    }
235
236    @Override
237    public String generateFilePath() {
238        return null;
239    }
240
241    @Override
242    public String getFilePath() {
243        return null;
244    }
245
246    @Override
247    public void setFilePath(String filePath) {
248
249    }
250
251}