org.purl.sword.base
Class Deposit

java.lang.Object
  extended by org.purl.sword.base.Deposit

public class Deposit
extends Object

Represents a deposit.

Author:
Stuart Lewis

Field Summary
static int ACCEPTED
          Submission accepted.
static int CREATED
          Submission created
 
Constructor Summary
Deposit()
           
 
Method Summary
 String getContentDisposition()
          Return the content disposition value.
 int getContentLength()
           
 String getContentType()
           
 String getDepositID()
           
 InputStream getFile()
           
 String getFilename()
          Retrieve the filename that is associated with this deposit.
 String getIPAddress()
          Get the IP address of the user
 String getLocation()
          Get the location of the deposit
 String getMd5()
           
 String getOnBehalfOf()
           
 String getPackaging()
           
 String getPassword()
           
 String getSlug()
           
 String getUsername()
           
 boolean isNoOp()
           
 boolean isVerbose()
           
 void setContentDisposition(String disposition)
          Set the content disposition that is to be used for this deposit.
 void setContentLength(int contentLength)
           
 void setContentType(String contentType)
           
 void setDepositID(String depositID)
           
 void setFile(InputStream file)
           
 void setIPAddress(String IPAddress)
          Set the IP address of the user
 void setLocation(String location)
          Set the location of the deposit
 void setMd5(String md5)
           
 void setNoOp(boolean noOp)
           
 void setOnBehalfOf(String onBehalfOf)
           
 void setPackaging(String packaging)
           
 void setPassword(String password)
           
 void setSlug(String slug)
           
 void setUsername(String username)
           
 void setVerbose(boolean verbose)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATED

public static final int CREATED
Submission created

See Also:
Constant Field Values

ACCEPTED

public static final int ACCEPTED
Submission accepted.

See Also:
Constant Field Values
Constructor Detail

Deposit

public Deposit()
Method Detail

getUsername

public String getUsername()
Returns:
the authenticatedUserName

setUsername

public void setUsername(String username)
Parameters:
authenticatedUserName - the authenticatedUserName to set

getPassword

public String getPassword()
Returns:
the authenticatedUserPassword

setPassword

public void setPassword(String password)
Parameters:
password - the password to set

getContentLength

public int getContentLength()
Returns:
the contentLength

setContentLength

public void setContentLength(int contentLength)
Parameters:
contentLength - the contentLength to set

getContentType

public String getContentType()
Returns:
the contentType

setContentType

public void setContentType(String contentType)
Parameters:
contentType - the contentType to set

getDepositID

public String getDepositID()
Returns:
the depositID

setDepositID

public void setDepositID(String depositID)
Parameters:
depositID - the depositID to set

getFile

public InputStream getFile()
Returns:
the file

setFile

public void setFile(InputStream file)
Parameters:
file - the file to set

getPackaging

public String getPackaging()
Returns:
the packaging

setPackaging

public void setPackaging(String packaging)
Parameters:
packaging - the packaging to set

getMd5

public String getMd5()
Returns:
the md5

setMd5

public void setMd5(String md5)
Parameters:
md5 - the md5 to set

isNoOp

public boolean isNoOp()
Returns:
the noOp

setNoOp

public void setNoOp(boolean noOp)
Parameters:
noOp - the noOp to set

getOnBehalfOf

public String getOnBehalfOf()
Returns:
the onBehalfOf

setOnBehalfOf

public void setOnBehalfOf(String onBehalfOf)
Parameters:
onBehalfOf - the onBehalfOf to set

getSlug

public String getSlug()
Returns:
the slug

setSlug

public void setSlug(String slug)
Parameters:
slug - the slug to set

isVerbose

public boolean isVerbose()
Returns:
the verbose

setVerbose

public void setVerbose(boolean verbose)
Parameters:
verbose - the verbose to set

getIPAddress

public String getIPAddress()
Get the IP address of the user

Returns:
the IP address

setIPAddress

public void setIPAddress(String IPAddress)
Set the IP address of the user

Parameters:
String - the IP address

getLocation

public String getLocation()
Get the location of the deposit

Returns:
the location of the deposit

setLocation

public void setLocation(String location)
Set the location of the deposit

Parameters:
String - the location

getFilename

public String getFilename()
Retrieve the filename that is associated with this deposit. This is extracted from the content disposition value.

Returns:
The filename.

setContentDisposition

public void setContentDisposition(String disposition)
Set the content disposition that is to be used for this deposit. This will include the filename, if specified.

Parameters:
disposition - The content disposition value.

getContentDisposition

public String getContentDisposition()
Return the content disposition value.

Returns:
The value.


Copyright © 2009 The DSpace Foundation. All Rights Reserved.