magoffin.matt.ma2.support
Class ExportItemsCommand

java.lang.Object
  extended by magoffin.matt.ma2.support.ExportItemsCommand

public class ExportItemsCommand
extends java.lang.Object

The command class.

Initially the itemIds or albumId will be requested. The work ticket will then be returned to the client, which can then request the download by supplying the ticket value. This is to allow for an a progress display of the download.

Version:
$Revision: 43 $ $Date: 2007-10-21 11:10:01 +1300 (Sun, 21 Oct 2007) $
Author:
matt.magoffin

Constructor Summary
ExportItemsCommand()
          Default constructor.
ExportItemsCommand(java.lang.Long albumId)
          Construct with album ID.
ExportItemsCommand(java.lang.Long[] itemIds)
          Construct with item IDs.
 
Method Summary
 java.lang.Long getAlbumId()
           
 java.lang.String getAlbumKey()
           
 java.lang.Long[] getItemIds()
           
 java.lang.String getMode()
           
 java.lang.String getQuality()
           
 java.lang.String getSize()
           
 java.lang.Long getTicket()
           
 java.lang.String getUserKey()
           
 boolean isDirect()
           
 boolean isDownload()
           
 boolean isOriginal()
           
 void setAlbumId(java.lang.Long albumId)
           
 void setAlbumKey(java.lang.String albumKey)
           
 void setDirect(boolean direct)
           
 void setDownload(boolean download)
           
 void setItemIds(java.lang.Long[] itemIds)
           
 void setMode(java.lang.String mode)
           
 void setOriginal(boolean original)
           
 void setQuality(java.lang.String quality)
           
 void setSize(java.lang.String size)
           
 void setTicket(java.lang.Long ticket)
           
 void setUserKey(java.lang.String userKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportItemsCommand

public ExportItemsCommand()
Default constructor.


ExportItemsCommand

public ExportItemsCommand(java.lang.Long albumId)
Construct with album ID.

Parameters:
albumId - the album ID

ExportItemsCommand

public ExportItemsCommand(java.lang.Long[] itemIds)
Construct with item IDs.

Parameters:
itemIds - the item IDs
Method Detail

getAlbumKey

public java.lang.String getAlbumKey()
Returns:
the albumKey

setAlbumKey

public void setAlbumKey(java.lang.String albumKey)
Parameters:
albumKey - the albumKey to set

getAlbumId

public java.lang.Long getAlbumId()
Returns:
the albumId

setAlbumId

public void setAlbumId(java.lang.Long albumId)
Parameters:
albumId - the albumId to set

getItemIds

public java.lang.Long[] getItemIds()
Returns:
the itemIds

setItemIds

public void setItemIds(java.lang.Long[] itemIds)
Parameters:
itemIds - the itemIds to set

getTicket

public java.lang.Long getTicket()
Returns:
the ticket

setTicket

public void setTicket(java.lang.Long ticket)
Parameters:
ticket - the ticket to set

isOriginal

public boolean isOriginal()
Returns:
the original

setOriginal

public void setOriginal(boolean original)
Parameters:
original - the original to set

getSize

public java.lang.String getSize()
Returns:
the size

setSize

public void setSize(java.lang.String size)
Parameters:
size - the size to set

getQuality

public java.lang.String getQuality()
Returns:
the quality

setQuality

public void setQuality(java.lang.String quality)
Parameters:
quality - the quality to set

isDownload

public boolean isDownload()
Returns:
the download

setDownload

public void setDownload(boolean download)
Parameters:
download - the download to set

isDirect

public boolean isDirect()
Returns:
the direct

setDirect

public void setDirect(boolean direct)
Parameters:
direct - the direct to set

getUserKey

public java.lang.String getUserKey()
Returns:
the userKey

setUserKey

public void setUserKey(java.lang.String userKey)
Parameters:
userKey - the userKey to set

getMode

public java.lang.String getMode()
Returns:
the mode

setMode

public void setMode(java.lang.String mode)
Parameters:
mode - the mode to set