Package org.dspace.submit.model
Class UploadConfiguration
- java.lang.Object
-
- org.dspace.submit.model.UploadConfiguration
-
public class UploadConfiguration extends Object
A collection of conditions to be met when uploading Bitstreams.- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
-
-
Constructor Summary
Constructors Constructor Description UploadConfiguration(ConfigurationService configurationService)Construct a bitstream uploading configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetMaxSize()Limit on the maximum size of an uploaded Bitstream.StringgetMetadata()Name of the submission form to which these conditions are attached.StringgetName()The unique name of this configuration.List<AccessConditionOption>getOptions()The list of access restriction types from which a submitter may choose.BooleanisRequired()Is at least one Bitstream required when submitting a new Item?voidsetMaxSize(Long maxSize)Limit the maximum size of an uploaded Bitstream.voidsetMetadata(String metadata)Name the submission form to which these conditions are attached.voidsetName(String name)Give this configuration a unique name.voidsetOptions(List<AccessConditionOption> options)Set the list of access restriction types from which to choose.voidsetRequired(Boolean required)Is at least one Bitstream required when submitting a new Item?
-
-
-
Constructor Detail
-
UploadConfiguration
@Inject public UploadConfiguration(ConfigurationService configurationService)
Construct a bitstream uploading configuration.- Parameters:
configurationService- DSpace configuration provided by the DI container.
-
-
Method Detail
-
getOptions
public List<AccessConditionOption> getOptions()
The list of access restriction types from which a submitter may choose.- Returns:
- choices for restricting access to Bitstreams.
-
setOptions
public void setOptions(List<AccessConditionOption> options)
Set the list of access restriction types from which to choose. Required. May be empty.- Parameters:
options- choices for restricting access to Bitstreams.
-
getMetadata
public String getMetadata()
Name of the submission form to which these conditions are attached.- Returns:
- the form's name.
-
setMetadata
public void setMetadata(String metadata)
Name the submission form to which these conditions are attached.- Parameters:
metadata- the form's name.
-
getMaxSize
public Long getMaxSize()
Limit on the maximum size of an uploaded Bitstream.- Returns:
- maximum upload size in bytes.
-
setMaxSize
public void setMaxSize(Long maxSize)
Limit the maximum size of an uploaded Bitstream.- Parameters:
maxSize- maximum upload size in bytes.
-
isRequired
public Boolean isRequired()
Is at least one Bitstream required when submitting a new Item?- Returns:
- true if a Bitstream is required.
-
setRequired
public void setRequired(Boolean required)
Is at least one Bitstream required when submitting a new Item?- Parameters:
required- true if a Bitstream is required.
-
getName
public String getName()
The unique name of this configuration.- Returns:
- configuration's name.
-
setName
public void setName(String name)
Give this configuration a unique name. Required.- Parameters:
name- configuration's name.
-
-