/*
* Copyright 2000-2013 Enonic AS
* http://www.enonic.com/license
*/
package com.enonic.cms.api.plugin.ext.userstore;
public final class RemoteUser
extends RemotePrincipal
{
private String email;
private final UserFields userFields;
public RemoteUser( final String id )
{
super( id );
this.userFields = new UserFields( false );
}
public RemoteUser( final RemoteUser other )
{
super( other );
this.email = other.email;
this.userFields = other.userFields.clone();
}
public String getEmail()
{
return this.email;
}
public void setEmail( String email )
{
this.email = email;
}
public UserFields getUserFields()
{
return this.userFields;
}
public int hashCode()
{
return this.getId().hashCode();
}
public boolean equals( Object o )
{
return ( o instanceof RemoteUser ) && ( (RemoteUser) o ).getId().equals( getId() );
}
}