public class SwordConfigurationDSpace extends Object implements org.swordapp.server.SwordConfiguration
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
log
logger
|
| Constructor and Description |
|---|
SwordConfigurationDSpace()
Initialise the sword configuration.
|
| Modifier and Type | Method and Description |
|---|---|
String |
administratorEmail() |
boolean |
allowCommunityDeposit() |
boolean |
allowUnauthenticatedMediaAccess() |
String |
generator() |
String |
generatorVersion() |
List<String> |
getAcceptPackaging(Collection col)
Get a map of packaging URIs to Q values for the packaging types which
the given collection will accept.
|
List<String> |
getAccepts(Context context,
DSpaceObject dso)
Get the list of MIME types that the given DSpace object will
accept as packages.
|
String |
getAlternateUrl() |
String |
getAlternateUrlContentType() |
String |
getAuthType() |
List<String> |
getCollectionAccepts()
Get the list of mime types that a Collection will accept as packages
|
List<String> |
getDisseminatePackaging() |
String |
getFailedPackageDir()
directory location of the files with original packages
for failed ingests
|
List<String> |
getItemAcceptPackaging() |
int |
getMaxUploadSize()
What is the max upload size (in bytes) for the SWORD interface?
|
String |
getStateDescription(String state) |
String |
getStateUri(String state) |
String |
getStringProperty(String module,
String propName,
String defaultValue) |
String |
getStringProperty(String module,
String propName,
String defaultValue,
String[] allowedValues) |
String |
getSwordBundle()
Get the bundle name that sword will store its original deposit packages in, when
storing them inside an item
|
String |
getTempDirectory() |
SwordUrlManager |
getUrlManager(Context context,
SwordConfigurationDSpace config) |
boolean |
isAcceptableContentType(Context context,
String type,
DSpaceObject dso)
Is the given content MIME type acceptable to the given DSpace object.
|
boolean |
isAcceptedPackaging(String packageFormat,
DSpaceObject dso)
Is the given packaging/media type supported by the given DSpace
object?
|
boolean |
isEntryFirst() |
boolean |
isKeepOriginal()
Should the repository keep the original package?
|
boolean |
isKeepPackageOnFailedIngest()
should the repository write file of the original package if ingest fails
|
boolean |
isMediated()
Does the server support mediated deposit (aka on-behalf-of)?
|
boolean |
isVerbose()
Is this a verbose deposit?
|
boolean |
returnDepositReceipt() |
boolean |
returnErrorBody() |
boolean |
returnStackTraceInError() |
void |
setFailedPackageDir(String dir)
set the directory to write file of the original package
|
void |
setKeepOriginal(boolean keepOriginal)
set whether the repository should keep copies of the original package
|
void |
setKeepPackageOnFailedIngest(boolean keepOriginalOnFail)
set whether the repository should write file of the original package if ingest fails
|
void |
setMaxUploadSize(int maxUploadSize)
Set the max uplaod size (in bytes) for the SWORD interface.
|
void |
setMediated(boolean mediated)
Set whether the server supports mediated deposit (aka on-behalf-of).
|
void |
setSwordBundle(String swordBundle)
Set the bundle name that sword will store its original deposit packages in, when
storing them inside an item
|
void |
setVerbose(boolean verbose)
Set whether this is a verbose deposit.
|
boolean |
storeAndCheckBinary() |
public SwordConfigurationDSpace()
public String getStringProperty(String module, String propName, String defaultValue, String[] allowedValues)
public String getStringProperty(String module, String propName, String defaultValue)
public boolean returnDepositReceipt()
returnDepositReceipt in interface org.swordapp.server.SwordConfigurationpublic boolean returnStackTraceInError()
returnStackTraceInError in interface org.swordapp.server.SwordConfigurationpublic boolean returnErrorBody()
returnErrorBody in interface org.swordapp.server.SwordConfigurationpublic String generator()
generator in interface org.swordapp.server.SwordConfigurationpublic String generatorVersion()
generatorVersion in interface org.swordapp.server.SwordConfigurationpublic String administratorEmail()
administratorEmail in interface org.swordapp.server.SwordConfigurationpublic String getAuthType()
getAuthType in interface org.swordapp.server.SwordConfigurationpublic boolean storeAndCheckBinary()
storeAndCheckBinary in interface org.swordapp.server.SwordConfigurationpublic String getTempDirectory()
getTempDirectory in interface org.swordapp.server.SwordConfigurationpublic String getAlternateUrl()
getAlternateUrl in interface org.swordapp.server.SwordConfigurationpublic String getAlternateUrlContentType()
getAlternateUrlContentType in interface org.swordapp.server.SwordConfigurationpublic SwordUrlManager getUrlManager(Context context, SwordConfigurationDSpace config)
public List<String> getDisseminatePackaging() throws DSpaceSwordException, org.swordapp.server.SwordError
DSpaceSwordExceptionorg.swordapp.server.SwordErrorpublic boolean isEntryFirst()
public boolean allowCommunityDeposit()
public String getSwordBundle()
public void setSwordBundle(String swordBundle)
swordBundle - public boolean isVerbose()
public void setVerbose(boolean verbose)
verbose - public int getMaxUploadSize()
getMaxUploadSize in interface org.swordapp.server.SwordConfigurationpublic void setMaxUploadSize(int maxUploadSize)
maxUploadSize - public boolean isMediated()
public void setMediated(boolean mediated)
mediated - public boolean isKeepOriginal()
public void setKeepOriginal(boolean keepOriginal)
keepOriginal - public void setKeepPackageOnFailedIngest(boolean keepOriginalOnFail)
keepOriginalOnFail - public boolean isKeepPackageOnFailedIngest()
public void setFailedPackageDir(String dir)
dir - public String getFailedPackageDir()
public List<String> getAccepts(Context context, DSpaceObject dso) throws DSpaceSwordException
context - dso - DSpaceSwordExceptionpublic List<String> getCollectionAccepts() throws DSpaceSwordException
DSpaceSwordExceptionpublic List<String> getAcceptPackaging(Collection col)
col - public boolean isAcceptedPackaging(String packageFormat, DSpaceObject dso) throws DSpaceSwordException, org.swordapp.server.SwordError
packageFormat - dso - DSpaceSwordExceptionorg.swordapp.server.SwordErrorpublic boolean isAcceptableContentType(Context context, String type, DSpaceObject dso) throws DSpaceSwordException
context - type - dso - DSpaceSwordExceptionpublic boolean allowUnauthenticatedMediaAccess()
allowUnauthenticatedMediaAccess in interface org.swordapp.server.SwordConfigurationCopyright © 2013 DuraSpace. All Rights Reserved.