Adding global id to REST model

This commit is contained in:
Martin Stockhammer 2020-07-26 18:29:07 +02:00
parent 6868c2bcfb
commit 8e6023173d
1 changed files with 14 additions and 0 deletions

View File

@ -34,6 +34,9 @@ public class User
private static final long serialVersionUID = 7457798933140993643L;
private String id;
private String userId;
private String fullName;
@ -118,6 +121,7 @@ public class User
this.setPasswordChangeRequired( user.isPasswordChangeRequired() );
this.setPermanent( user.isPermanent() );
this.setUserManagerId( user.getUserManagerId() );
this.setId( user.getId() );
if (user.getAccountCreationDate()==null) {
setTimestampAccountCreationByInstant( Instant.EPOCH );
@ -323,6 +327,16 @@ public class User
this.validationToken = validationToken;
}
public String getId( )
{
return id;
}
public void setId( String id )
{
this.id = id;
}
@Override
public String toString()
{