|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ace.moab.api.request.CreateReservationRequest
com.ace.moab.api.request.CreateOneTimeRsvRequest
public class CreateOneTimeRsvRequest
This class represents a request to create a One Time Reservation. To use the
request, the user must specify a reservation to create. Although most
attributes may be null or empty for the reservation, a list of necessary
reservation attributes can be viewed by examining
verifyReservation().
These requirements will be checked if the user attempts to get moab commands
using getMoabCommands().
The following is a list of reservation attributes that are currently implemented:
| Field Summary |
|---|
| Fields inherited from class com.ace.moab.api.request.CreateReservationRequest |
|---|
logger, MOAB_RSV_DATE_FORMAT |
| Constructor Summary | |
|---|---|
CreateOneTimeRsvRequest(Reservation reservation)
Default constructor, needs a valid Reservation as the object of this class is to create a Reservation based on the reservation object |
|
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
getMoabCommands()
Creates a list of moab commands needed to create this reservation This method performs checks on the internal reservation object as defined by verifyReservation() in this class |
Reservation |
getReservation()
Return the current reservation object as defined in class javadocs |
boolean |
hasChanges()
Returns true if changes exist for the request. |
void |
setReservation(Reservation reservation)
Set's the reservation property. |
void |
verifyReservation()
Verifies the reservation object is complete enough to create it in Moab. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CreateOneTimeRsvRequest(Reservation reservation)
reservation - Reservation that will be created within Moab| Method Detail |
|---|
public Reservation getReservation()
public void setReservation(Reservation reservation)
reservation - the reservation to setpublic boolean hasChanges()
com.moab.api.commands.Request
public void verifyReservation()
throws com.moab.api.connect.exception.RequestException
Specifically, these values are checked:
NOTE: According to Dave Jackson as of 1/17/08, the reservation name is no longer a required field. Also, Reservations no longer need a start or end time
com.moab.api.connect.exception.RequestException
public java.util.List<java.lang.String> getMoabCommands()
throws com.moab.api.connect.exception.RequestException
verifyReservation() in this class
com.moab.api.connect.exception.RequestException - Throws this exception if verifyReservation failsverifyReservation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||