edu.jhu.tmaj.servlet.response.impl
Class ImagesDirectoryResponse
java.lang.Object
edu.jhu.tmaj.servlet.response.SuccessResponse
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ImagesDirectoryResponse
public ImagesDirectoryResponse(java.util.List<ArrayImageU> arrayImagesBeanList,
int numberOfImagesWithNoArrayCore,
int arraySlideID,
int numberOfImagesAlreadyInserted,
int arrayBlockID)
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()