<commit_before>package ca.corefacility.bioinformatics.irida.web.assembler.resource.user;

import ca.corefacility.bioinformatics.irida.model.User;
import ca.corefacility.bioinformatics.irida.web.assembler.resource.Resource;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.net.URI;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Wrapper for exposing User resources to the web with linking support.
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 */
@XmlRootElement(name = "user")
public class UserResource extends Resource<User> {

    private String password;

    public UserResource() {
        super(new User());
    }

    public UserResource(User user) {
        super(user);
    }

    @XmlElement
    public URI getURI() {
        return resource.getIdentifier().getUri();
    }

    @XmlElement
    public String getUsername() {
        return resource.getUsername();
    }

    public void setUsername(String username) {
        resource.setUsername(username);
    }

    @XmlElement
    public String getEmail() {
        return resource.getEmail();
    }

    public void setEmail(String email) {
        resource.setEmail(email);
    }

    @XmlElement
    public String getFirstName() {
        return resource.getFirstName();
    }

    public void setFirstName(String firstName) {
        resource.setFirstName(firstName);
    }

    @XmlElement
    public String getLastName() {
        return resource.getLastName();
    }

    public void setLastName(String lastName) {
        resource.setLastName(lastName);
    }

    @XmlElement
    public String getPhoneNumber() {
        return resource.getPhoneNumber();
    }

    public void setPhoneNumber(String phoneNumber) {
        resource.setPhoneNumber(phoneNumber);
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }<commit_msg>Don't expose the URI field as part of the JSON response.<commit_after>package ca.corefacility.bioinformatics.irida.web.assembler.resource.user;

import ca.corefacility.bioinformatics.irida.model.User;
import ca.corefacility.bioinformatics.irida.web.assembler.resource.Resource;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.net.URI;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Wrapper for exposing User resources to the web with linking support.
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 */
@XmlRootElement(name = "user")
public class UserResource extends Resource<User> {

    private String password;

    public UserResource() {
        super(new User());
    }

    public UserResource(User user) {
        super(user);
    }

    @XmlElement
    public String getUsername() {
        return resource.getUsername();
    }

    public void setUsername(String username) {
        resource.setUsername(username);
    }

    @XmlElement
    public String getEmail() {
        return resource.getEmail();
    }

    public void setEmail(String email) {
        resource.setEmail(email);
    }

    @XmlElement
    public String getFirstName() {
        return resource.getFirstName();
    }

    public void setFirstName(String firstName) {
        resource.setFirstName(firstName);
    }

    @XmlElement
    public String getLastName() {
        return resource.getLastName();
    }

    public void setLastName(String lastName) {
        resource.setLastName(lastName);
    }

    @XmlElement
    public String getPhoneNumber() {
        return resource.getPhoneNumber();
    }

    public void setPhoneNumber(String phoneNumber) {
        resource.setPhoneNumber(phoneNumber);
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @JsonIgnore
    public String getPassword() {
        return password;
    }
{'fraction_non_alphanumeric': 0.1029043565348022, 'fraction_numerical': 0.0, 'mean_word_length': 3.0191146881287727, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1224962', 'n_tokens_mistral': 1158, 'n_tokens_neox': 1106, 'n_words': 253}