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

org.dspace.app.bulkaccesscontrol.model.AccessConditionBitstream 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.app.bulkaccesscontrol.model;

import java.util.ArrayList;
import java.util.List;

import org.dspace.app.bulkaccesscontrol.BulkAccessControl;

/**
 * Class that model the value of bitstream node
 * from json file of the {@link BulkAccessControl}
 *
 * @author Mohamed Eskander (mohamed.eskander at 4science.it)
 */
public class AccessConditionBitstream {

    private String mode;

    private Constraint constraints;

    private List accessConditions;

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public Constraint getConstraints() {
        return constraints;
    }

    public void setConstraints(Constraint constraints) {
        this.constraints = constraints;
    }

    public List getAccessConditions() {
        if (accessConditions == null) {
            return new ArrayList<>();
        }
        return accessConditions;
    }

    public void setAccessConditions(List accessConditions) {
        this.accessConditions = accessConditions;
    }

    public class Constraint {

        private List uuid;

        public List getUuid() {
            return uuid;
        }

        public void setUuid(List uuid) {
            this.uuid = uuid;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy