edu.jhu.tmaj.servlet.response.impl
Class ImagesDirectoryResponse

java.lang.Object
  extended by edu.jhu.tmaj.servlet.response.SuccessResponse
      extended by edu.jhu.tmaj.servlet.response.impl.ImagesDirectoryResponse
All Implemented Interfaces:
CommandResponse, java.io.Serializable

public final class ImagesDirectoryResponse
extends SuccessResponse
implements java.io.Serializable

Contains a list of ArrayImageBeans that will go on to be put in the database; "NumberOfImagesAlreadyInserted", represents how many images have been inserted on this ArraySlide, and "NumberOfImagesWithNoArrayCore" represents how many of the files in the directory can not be inserted because an ArrayCore could not be located.

See Also:
Serialized Form

Constructor Summary
ImagesDirectoryResponse(java.util.List<ArrayImageU> arrayImagesBeanList, int numberOfImagesWithNoArrayCore, int arraySlideID, int numberOfImagesAlreadyInserted, int arrayBlockID)
           
 
Method Summary
 int getArrayBlockID()
           
 java.util.List<ArrayImageU> getArrayImagesBeanList()
           
 int getArraySlideID()
          Gets the ArraySlideID of the directory the user is importing.
 int getNumberOfImagesAlreadyInserted()
          Gets the number of ArrayImages that the user has already imported for the directory.
 int getNumberOfImagesWithNoArrayCore()
          Gets the number of images that do not have a valid ArrayCore.
 
Methods inherited from class edu.jhu.tmaj.servlet.response.SuccessResponse
getError, isSuccessful, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImagesDirectoryResponse

public ImagesDirectoryResponse(java.util.List<ArrayImageU> arrayImagesBeanList,
                               int numberOfImagesWithNoArrayCore,
                               int arraySlideID,
                               int numberOfImagesAlreadyInserted,
                               int arrayBlockID)
Method Detail

getNumberOfImagesAlreadyInserted

public int getNumberOfImagesAlreadyInserted()
Gets the number of ArrayImages that the user has already imported for the directory. This should generally return 0 if the user wants to continue with the import, as directories should generally not be reimported.


getNumberOfImagesWithNoArrayCore

public int getNumberOfImagesWithNoArrayCore()
Gets the number of images that do not have a valid ArrayCore. Example: Lets say for image y_05_x_15_image.jpg, the coordinate is x=15 y=5. Lets say we open up ArrayBuilder and notice that spot is empty, this would be an image with no arrayCore.


getArrayImagesBeanList

public java.util.List<ArrayImageU> getArrayImagesBeanList()

getArraySlideID

public int getArraySlideID()
Gets the ArraySlideID of the directory the user is importing. This ArraySlide is guaranteed to exist, as it was either just created or already existed.


getArrayBlockID

public int getArrayBlockID()