edu.jhu.tmaj.servlet.request
Interface CommandRequest

All Known Implementing Classes:
ArrayCoreDetailsRequest, ArrayCoreReferenceRequest, ArrayCoresOpenRequest, ArrayCoresSaveRequest, ArrayImageAddRequest, ArrayImageCollectionRequest, ArrayImageCoresRequest, BadImagesUpdateRequest, BaseRequest, CellLinesReferenceRequest, ChangeLogsSaveRequest, ChangePasswordRequest, CheckIfSpecimenExistsRequest, CopyArrayBlockRequest, CopySessionRequest, DetailsRequest, DiagnosisLookupRequest, DynamicMetaDataRequest, EnumerationsRequest, ExpressEntryRequest, FileChecksumRequest, FileDeleteRequest, FileDownloadRequest, FilesGetRequest, FilesLargeGetRequest, FileUploadRequest, FolderCheckRequest, FolderCreateRequest, FolderDeleteRequest, FolderGetRequest, GrossDescriptionRequest, GrossDescriptionWipeRequest, HistoryRequest, ImageInfoRequest, InitDatabaseRequest, InvalidateMachineScoresRequest, IsArrayBlockBlankRequest, KeyValueGetRequest, KeyValueSetRequest, LoginRequest, LogoutRequest, LookupTableRequest, MachineScoresImportRequest, MachineScoresInfoRequest, ManyToManyTableRequest, ManyToManyUpdateRequest, MaskReadRequest, MaskStatsWriteRequest, MasksWriteRequest, MetaDataAddRequest, MetaDataAlterRequest, OriginalTypeRequest, ProjectsArraySlidesAddRequest, QuantityLeftRequest, RecentSessionDeleteRequest, RecentSessionGetRequest, RecentSessionUpdateRequest, ScanCheckDataRequest, ScanDeleteRequest, ScoredImageDetailsRequest, SelectRequest, SessionDescriptionsRequest, ShapesLoadRequest, ShapesSaveRequest, SpecimenIdentifiersRequest, SpecimensAssignRequest, SurgPathNumberRequest, TranslatedRowRequest, UpdateRequest, UsedTissueTypesRequest, UsersSessionsGetRequest, UsersSessionsSaveRequest

public interface CommandRequest

All Requests must implement this interface. The ServerRequest's method executeCommand() is executed on the server-side after being deserialized. The code of the server-side then can make connections to the database which outside clients may not. A username and password must be supplied with every request


Method Summary
 CommandResponse executeCommand()
          Executes code on the server side that queries the database, and returns a ServerResponse.
 java.lang.String getPassword()
          Gets the password of the user making this Request
 java.lang.String getUsername()
          Gets the username of the user making this Request
 

Method Detail

executeCommand

CommandResponse executeCommand()
                               throws java.lang.Exception
Executes code on the server side that queries the database, and returns a ServerResponse. ExecuteCommand should verify the username and password supplied with the request, and determines if the user has permission to execute the request.

Throws:
java.lang.Exception

getUsername

java.lang.String getUsername()
Gets the username of the user making this Request


getPassword

java.lang.String getPassword()
Gets the password of the user making this Request