|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.sword.SWORDConfiguration
public class SWORDConfiguration
| Constructor Summary | |
|---|---|
SWORDConfiguration()
Initialise the sword configuration. |
|
| Method Summary | |
|---|---|
Map<String,Float> |
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 |
int |
getMaxUploadSize()
what is the max upload size (in bytes) for the sword interface |
String |
getSwordBundle()
Get the bundle name that sword will store its original deposit packages in, when storing them inside an item |
String |
getTempDir()
Get the temp directory for storing files during deposit |
boolean |
isAcceptableContentType(Context context,
String type,
DSpaceObject dso)
is the given content mimetype acceptable to the given dspace object |
boolean |
isKeepOriginal()
should the repository keep the original package |
boolean |
isMediated()
does the server support mediated deposit (aka on-behalf-of) |
boolean |
isNoOp()
is this a no-op deposit |
boolean |
isSupportedMediaType(String mediaType,
DSpaceObject dso)
is the given packaging/media type supported by the given dspace object |
boolean |
isVerbose()
is this a verbose deposit |
void |
setKeepOriginal(boolean keepOriginal)
set whether the repository should keep copies of the original package |
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 |
setNoOp(boolean noOp)
set whether this is a no-op deposit |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SWORDConfiguration()
| Method Detail |
|---|
public String getSwordBundle()
public void setSwordBundle(String swordBundle)
swordBundle - public boolean isNoOp()
public void setNoOp(boolean noOp)
noOp - public boolean isVerbose()
public void setVerbose(boolean verbose)
verbose - public int getMaxUploadSize()
public void setMaxUploadSize(int maxUploadSize)
maxUploadSize - public boolean isMediated()
public void setMediated(boolean mediated)
mediated - public boolean isKeepOriginal()
public void setKeepOriginal(boolean keepOriginal)
keepOriginal -
public List<String> getAccepts(Context context,
DSpaceObject dso)
throws DSpaceSWORDException
context - dso -
DSpaceSWORDExceptionpublic Map<String,Float> getAcceptPackaging(Collection col)
col -
public boolean isSupportedMediaType(String mediaType,
DSpaceObject dso)
throws DSpaceSWORDException,
SWORDErrorException
mediaType - dso -
DSpaceSWORDException
SWORDErrorException
public boolean isAcceptableContentType(Context context,
String type,
DSpaceObject dso)
throws DSpaceSWORDException
context - type - dso -
DSpaceSWORDException
public String getTempDir()
throws DSpaceSWORDException
DSpaceSWORDException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||