
org.dspace.app.bulkaccesscontrol.model.BulkAccessControlInput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dspace-api Show documentation
Show all versions of dspace-api Show documentation
DSpace core data model and service APIs.
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 org.dspace.app.bulkaccesscontrol.BulkAccessControl;
/**
* Class that model the content of the JSON file used as input for the {@link BulkAccessControl}
*
*
* {
* item: {
* mode: "replace",
* accessConditions: [
* {
* "name": "openaccess"
* }
* ]
* },
* bitstream: {
* constraints: {
* uuid: [bit-uuid1, bit-uuid2, ..., bit-uuidN],
* },
* mode: "add",
* accessConditions: [
* {
* "name": "embargo",
* "startDate": "2024-06-24T23:59:59.999+0000"
* }
* ]
* }
* }
*
*
* @author Mohamed Eskander (mohamed.eskander at 4science.it)
*/
public class BulkAccessControlInput {
AccessConditionItem item;
AccessConditionBitstream bitstream;
public BulkAccessControlInput() {
}
public BulkAccessControlInput(AccessConditionItem item,
AccessConditionBitstream bitstream) {
this.item = item;
this.bitstream = bitstream;
}
public AccessConditionItem getItem() {
return item;
}
public void setItem(AccessConditionItem item) {
this.item = item;
}
public AccessConditionBitstream getBitstream() {
return bitstream;
}
public void setBitstream(AccessConditionBitstream bitstream) {
this.bitstream = bitstream;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy