Package org.dspace.submit.model
Class UploadConfiguration
java.lang.Object
org.dspace.submit.model.UploadConfiguration
A collection of conditions to be met when uploading Bitstreams.
- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
-
Constructor Summary
ConstructorsConstructorDescriptionUploadConfiguration(ConfigurationService configurationService) Construct a bitstream uploading configuration. -
Method Summary
Modifier and TypeMethodDescriptionLimit on the maximum size of an uploaded Bitstream.Name of the submission form to which these conditions are attached.getName()The unique name of this configuration.The list of access restriction types from which a submitter may choose.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.voidGive 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 Details
-
UploadConfiguration
Construct a bitstream uploading configuration.- Parameters:
configurationService- DSpace configuration provided by the DI container.
-
-
Method Details
-
getOptions
The list of access restriction types from which a submitter may choose.- Returns:
- choices for restricting access to Bitstreams.
-
setOptions
Set the list of access restriction types from which to choose. Required. May be empty.- Parameters:
options- choices for restricting access to Bitstreams.
-
getMetadata
Name of the submission form to which these conditions are attached.- Returns:
- the form's name.
-
setMetadata
Name the submission form to which these conditions are attached.- Parameters:
metadata- the form's name.
-
getMaxSize
Limit on the maximum size of an uploaded Bitstream.- Returns:
- maximum upload size in bytes.
-
setMaxSize
Limit the maximum size of an uploaded Bitstream.- Parameters:
maxSize- maximum upload size in bytes.
-
isRequired
Is at least one Bitstream required when submitting a new Item?- Returns:
- true if a Bitstream is required.
-
setRequired
Is at least one Bitstream required when submitting a new Item?- Parameters:
required- true if a Bitstream is required.
-
getName
The unique name of this configuration.- Returns:
- configuration's name.
-
setName
Give this configuration a unique name. Required.- Parameters:
name- configuration's name.
-