All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dspace.eperson.dto.RegistrationDataPatch Maven / Gradle / Ivy

The newest version!
/**
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 * http://www.dspace.org/license/
 */
package org.dspace.eperson.dto;

import org.dspace.eperson.RegistrationData;

/**
 * This POJO encapsulates the details of the PATCH request that updates the {@link RegistrationData}.
 * 
 * @author Vincenzo Mecca (vins01-4science - vincenzo.mecca at 4science.com)
 **/
public class RegistrationDataPatch {

    private final RegistrationData oldRegistration;
    private final RegistrationDataChanges changes;

    public RegistrationDataPatch(RegistrationData oldRegistration, RegistrationDataChanges changes) {
        this.oldRegistration = oldRegistration;
        this.changes = changes;
    }

    /**
     * Returns the value of the previous registration
     *
     * @return RegistrationData
     */
    public RegistrationData getOldRegistration() {
        return oldRegistration;
    }

    /**
     * Returns the changes related to the registration
     *
     * @return RegistrationDataChanges
     */
    public RegistrationDataChanges getChanges() {
        return changes;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy