Adding global id to REST model
This commit is contained in:
parent
6868c2bcfb
commit
8e6023173d
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue